soul-browser/app/smali_classes3/com/google/api/client/json/JsonParser$1.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

214 lines
4.1 KiB
Smali

.class synthetic Lcom/google/api/client/json/JsonParser$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/api/client/json/JsonParser;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field public static final synthetic a:[I
# direct methods
.method static constructor <clinit>()V
.locals 6
.line 1
invoke-static {}, Lcom/google/api/client/json/JsonToken;->values()[Lcom/google/api/client/json/JsonToken;
.line 2
.line 3
.line 4
move-result-object v0
.line 5
array-length v0, v0
.line 6
new-array v0, v0, [I
.line 7
.line 8
sput-object v0, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 9
.line 10
const/4 v1, 0x1
.line 11
const/4 v2, 0x2
.line 12
:try_start_0
aput v1, v0, v2
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
.line 13
.line 14
:catch_0
:try_start_1
sget-object v0, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 15
.line 16
const/4 v3, 0x0
.line 17
aput v2, v0, v3
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
.line 18
.line 19
:catch_1
const/4 v0, 0x3
.line 20
:try_start_2
sget-object v2, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 21
.line 22
aput v0, v2, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
.line 23
.line 24
:catch_2
:try_start_3
sget-object v1, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 25
.line 26
const/4 v2, 0x4
.line 27
aput v2, v1, v2
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
.line 28
.line 29
:catch_3
const/4 v1, 0x5
.line 30
:try_start_4
sget-object v2, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 31
.line 32
aput v1, v2, v0
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
.line 33
.line 34
:catch_4
const/4 v0, 0x6
.line 35
const/16 v2, 0x8
.line 36
.line 37
:try_start_5
sget-object v3, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 38
.line 39
aput v0, v3, v2
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
.line 40
.line 41
:catch_5
const/4 v3, 0x7
.line 42
const/16 v4, 0x9
.line 43
.line 44
:try_start_6
sget-object v5, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 45
.line 46
aput v3, v5, v4
:try_end_6
.catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6
.line 47
.line 48
:catch_6
:try_start_7
sget-object v5, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 49
.line 50
aput v2, v5, v3
:try_end_7
.catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_7
.line 51
.line 52
:catch_7
:try_start_8
sget-object v2, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 53
.line 54
aput v4, v2, v0
:try_end_8
.catch Ljava/lang/NoSuchFieldError; {:try_start_8 .. :try_end_8} :catch_8
.line 55
.line 56
:catch_8
const/16 v0, 0xa
.line 57
.line 58
:try_start_9
sget-object v2, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 59
.line 60
aput v0, v2, v1
:try_end_9
.catch Ljava/lang/NoSuchFieldError; {:try_start_9 .. :try_end_9} :catch_9
.line 61
.line 62
:catch_9
:try_start_a
sget-object v1, Lcom/google/api/client/json/JsonParser$1;->a:[I
.line 63
.line 64
const/16 v2, 0xb
.line 65
.line 66
aput v2, v1, v0
:try_end_a
.catch Ljava/lang/NoSuchFieldError; {:try_start_a .. :try_end_a} :catch_a
.line 67
.line 68
:catch_a
return-void
.end method