soul-browser/app/smali/com/google/android/gms/common/api/CommonStatusCodes.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

309 lines
5.4 KiB
Smali

.class public Lcom/google/android/gms/common/api/CommonStatusCodes;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final API_NOT_CONNECTED:I = 0x11
.field public static final CANCELED:I = 0x10
.field public static final CONNECTION_SUSPENDED_DURING_CALL:I = 0x14
.field public static final DEVELOPER_ERROR:I = 0xa
.field public static final ERROR:I = 0xd
.field public static final INTERNAL_ERROR:I = 0x8
.field public static final INTERRUPTED:I = 0xe
.field public static final INVALID_ACCOUNT:I = 0x5
.field public static final NETWORK_ERROR:I = 0x7
.field public static final RECONNECTION_TIMED_OUT:I = 0x16
.field public static final RECONNECTION_TIMED_OUT_DURING_UPDATE:I = 0x15
.field public static final REMOTE_EXCEPTION:I = 0x13
.field public static final RESOLUTION_REQUIRED:I = 0x6
.field public static final SERVICE_DISABLED:I = 0x3
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final SERVICE_VERSION_UPDATE_REQUIRED:I = 0x2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field public static final SIGN_IN_REQUIRED:I = 0x4
.field public static final SUCCESS:I = 0x0
.field public static final SUCCESS_CACHE:I = -0x1
.field public static final TIMEOUT:I = 0xf
# direct methods
.method public constructor <init>()V
.locals 0
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getStatusCodeString(I)Ljava/lang/String;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
packed-switch p0, :pswitch_data_0
.line 2
.line 3
.line 4
:pswitch_0
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
.line 5
.line 6
.line 7
move-result-object v0
.line 8
invoke-virtual {v0}, Ljava/lang/String;->length()I
.line 9
.line 10
.line 11
move-result v0
.line 12
new-instance v1, Ljava/lang/StringBuilder;
.line 13
.line 14
add-int/lit8 v0, v0, 0x15
.line 15
.line 16
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
.line 17
.line 18
.line 19
const-string v0, "unknown status code: "
.line 20
.line 21
invoke-static {p0, v0, v1}, Landroidx/work/impl/workers/a;->r(ILjava/lang/String;Ljava/lang/StringBuilder;)Ljava/lang/String;
.line 22
.line 23
.line 24
move-result-object p0
.line 25
return-object p0
.line 26
:pswitch_1
const-string p0, "RECONNECTION_TIMED_OUT"
.line 27
.line 28
return-object p0
.line 29
:pswitch_2
const-string p0, "RECONNECTION_TIMED_OUT_DURING_UPDATE"
.line 30
.line 31
return-object p0
.line 32
:pswitch_3
const-string p0, "CONNECTION_SUSPENDED_DURING_CALL"
.line 33
.line 34
return-object p0
.line 35
:pswitch_4
const-string p0, "REMOTE_EXCEPTION"
.line 36
.line 37
return-object p0
.line 38
:pswitch_5
const-string p0, "DEAD_CLIENT"
.line 39
.line 40
return-object p0
.line 41
:pswitch_6
const-string p0, "API_NOT_CONNECTED"
.line 42
.line 43
return-object p0
.line 44
:pswitch_7
const-string p0, "CANCELED"
.line 45
.line 46
return-object p0
.line 47
:pswitch_8
const-string p0, "TIMEOUT"
.line 48
.line 49
return-object p0
.line 50
:pswitch_9
const-string p0, "INTERRUPTED"
.line 51
.line 52
return-object p0
.line 53
:pswitch_a
const-string p0, "ERROR"
.line 54
.line 55
return-object p0
.line 56
:pswitch_b
const-string p0, "DEVELOPER_ERROR"
.line 57
.line 58
return-object p0
.line 59
:pswitch_c
const-string p0, "INTERNAL_ERROR"
.line 60
.line 61
return-object p0
.line 62
:pswitch_d
const-string p0, "NETWORK_ERROR"
.line 63
.line 64
return-object p0
.line 65
:pswitch_e
const-string p0, "RESOLUTION_REQUIRED"
.line 66
.line 67
return-object p0
.line 68
:pswitch_f
const-string p0, "INVALID_ACCOUNT"
.line 69
.line 70
return-object p0
.line 71
:pswitch_10
const-string p0, "SIGN_IN_REQUIRED"
.line 72
.line 73
return-object p0
.line 74
:pswitch_11
const-string p0, "SERVICE_DISABLED"
.line 75
.line 76
return-object p0
.line 77
:pswitch_12
const-string p0, "SERVICE_VERSION_UPDATE_REQUIRED"
.line 78
.line 79
return-object p0
.line 80
:pswitch_13
const-string p0, "SUCCESS"
.line 81
.line 82
return-object p0
.line 83
:pswitch_14
const-string p0, "SUCCESS_CACHE"
.line 84
.line 85
return-object p0
.line 86
nop
.line 87
:pswitch_data_0
.packed-switch -0x1
:pswitch_14
:pswitch_13
:pswitch_0
:pswitch_12
:pswitch_11
:pswitch_10
:pswitch_f
:pswitch_e
:pswitch_d
:pswitch_c
:pswitch_0
:pswitch_b
:pswitch_0
:pswitch_0
:pswitch_a
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
.end packed-switch
.end method