soul-browser/app/smali/androidx/annotation/RestrictTo$Scope.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* Decompile and recreate Soul Browser v1.4.85 with APK CI builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix CI build: include bundled google.jks and remove PR trigger

The apktool build failed in CI because app/unknown/.../google.jks was
excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files
and commit the missing resource.

Also remove the redundant pull_request workflow trigger.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Change package ID to com.github.kaki87.soulbrowser

Rename the application ID so the rebuilt APK can be installed
alongside the original Soul Browser from Google Play.

- Update AndroidManifest package, permissions, providers, and actions
- Update R class references in smali (com/github/kaki87/soulbrowser/R)
- Update shortcuts.xml targetPackage
- Rename app label to "Soul Rebuild" for easy identification

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install compatibility: remove split APK metadata and bundle native libs

The rebuilt APK still declared requiredSplitTypes and Play Store split
metadata, causing Android to reject standalone installs as incompatible.

- Remove requiredSplitTypes and split-related manifest meta-data
- Merge native libs from all ABI splits with uncompressed storage
- Page-align before signing for extractNativeLibs=false
- Add .so to apktool doNotCompress list

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install failure: use apksigner v2/v3 and bundle arm64 native libs

Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only
produces v1 signatures, causing Android to reject the install.

- Sign with apksigner (v1+v2+v3) instead of jarsigner
- Add arm64-v8a native libraries from universal Soul Browser 1.4.79
- Set extractNativeLibs=true for reliable sideload installs
- Commit stable debug keystore for consistent signatures across builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Add committed debug keystore for consistent APK signatures

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix startup crash: use original classes2.dex desugar libraries

Apktool recompiles smali_classes2 into a broken classes2.dex, causing
ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init.

Inject the original classes2.dex (Java 8+ desugar libs) after apktool
build instead of using the recompiled version.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix missing drawable resources from density split APKs

The base APK is an app bundle module; density-specific drawables like
seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild,
causing Resources$NotFoundException at runtime.

- Merge non-9-patch resources from split APKs before apktool build
- Sync public.xml IDs from R smali only when backing files exist
- Add 713 density-specific resource IDs to public.xml

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 16:07:14 +02:00

226 lines
4.6 KiB
Smali

.class public final enum Landroidx/annotation/RestrictTo$Scope;
.super Ljava/lang/Enum;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/annotation/RestrictTo;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Scope"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Landroidx/annotation/RestrictTo$Scope;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\u0008\u0086\u0081\u0002\u0018\u00002\u0008\u0012\u0004\u0012\u00020\u00000\u0001\u00a8\u0006\u0002"
}
d2 = {
"Landroidx/annotation/RestrictTo$Scope;",
"",
"annotation"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final synthetic c:[Landroidx/annotation/RestrictTo$Scope;
.field public static final synthetic f:Lkotlin/enums/EnumEntries;
# direct methods
.method static constructor <clinit>()V
.locals 13
.line 1
new-instance v0, Landroidx/annotation/RestrictTo$Scope;
.line 2
.line 3
const-string v1, "LIBRARY"
.line 4
.line 5
const/4 v2, 0x0
.line 6
invoke-direct {v0, v1, v2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 7
.line 8
.line 9
new-instance v1, Landroidx/annotation/RestrictTo$Scope;
.line 10
.line 11
const-string v3, "LIBRARY_GROUP"
.line 12
.line 13
const/4 v4, 0x1
.line 14
invoke-direct {v1, v3, v4}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 15
.line 16
.line 17
new-instance v3, Landroidx/annotation/RestrictTo$Scope;
.line 18
.line 19
const-string v5, "LIBRARY_GROUP_PREFIX"
.line 20
.line 21
const/4 v6, 0x2
.line 22
invoke-direct {v3, v5, v6}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 23
.line 24
.line 25
new-instance v5, Landroidx/annotation/RestrictTo$Scope;
.line 26
.line 27
const-string v7, "GROUP_ID"
.line 28
.line 29
const/4 v8, 0x3
.line 30
invoke-direct {v5, v7, v8}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 31
.line 32
.line 33
new-instance v7, Landroidx/annotation/RestrictTo$Scope;
.line 34
.line 35
const-string v9, "TESTS"
.line 36
.line 37
const/4 v10, 0x4
.line 38
invoke-direct {v7, v9, v10}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 39
.line 40
.line 41
new-instance v9, Landroidx/annotation/RestrictTo$Scope;
.line 42
.line 43
const-string v11, "SUBCLASSES"
.line 44
.line 45
const/4 v12, 0x5
.line 46
invoke-direct {v9, v11, v12}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 47
.line 48
.line 49
const/4 v11, 0x6
.line 50
new-array v11, v11, [Landroidx/annotation/RestrictTo$Scope;
.line 51
.line 52
aput-object v0, v11, v2
.line 53
.line 54
aput-object v1, v11, v4
.line 55
.line 56
aput-object v3, v11, v6
.line 57
.line 58
aput-object v5, v11, v8
.line 59
.line 60
aput-object v7, v11, v10
.line 61
.line 62
aput-object v9, v11, v12
.line 63
.line 64
sput-object v11, Landroidx/annotation/RestrictTo$Scope;->c:[Landroidx/annotation/RestrictTo$Scope;
.line 65
.line 66
invoke-static {v11}, Lkotlin/enums/EnumEntriesKt;->enumEntries([Ljava/lang/Enum;)Lkotlin/enums/EnumEntries;
.line 67
.line 68
.line 69
move-result-object v0
.line 70
sput-object v0, Landroidx/annotation/RestrictTo$Scope;->f:Lkotlin/enums/EnumEntries;
.line 71
.line 72
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Landroidx/annotation/RestrictTo$Scope;
.locals 1
const-class v0, Landroidx/annotation/RestrictTo$Scope;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Landroidx/annotation/RestrictTo$Scope;
return-object p0
.end method
.method public static values()[Landroidx/annotation/RestrictTo$Scope;
.locals 1
sget-object v0, Landroidx/annotation/RestrictTo$Scope;->c:[Landroidx/annotation/RestrictTo$Scope;
invoke-virtual {v0}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Landroidx/annotation/RestrictTo$Scope;
return-object v0
.end method