* 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>
273 lines
5.7 KiB
Smali
273 lines
5.7 KiB
Smali
.class final Lcom/android/billingclient/api/zzby;
|
|
.super Lcom/google/android/gms/internal/play_billing/zzad;
|
|
.source "SourceFile"
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const-string v0, "RESPONSE_CODE"
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->containsKey(Ljava/lang/String;)Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v1
|
|
|
|
.line 10
|
|
const/4 v2, 0x0
|
|
|
|
.line 11
|
|
const-string v3, "BillingClient"
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {v3, p1}, Lcom/google/android/gms/internal/play_billing/zzc;->a(Ljava/lang/String;Landroid/os/Bundle;)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v1
|
|
|
|
.line 19
|
|
if-nez v1, :cond_2
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v1, "ALTERNATIVE_BILLING_ONLY_DIALOG_INTENT"
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object p1
|
|
|
|
.line 27
|
|
check-cast p1, Landroid/app/PendingIntent;
|
|
|
|
.line 28
|
|
.line 29
|
|
if-nez p1, :cond_0
|
|
|
|
.line 30
|
|
.line 31
|
|
const-string p1, "User has acknowledged the alternative billing only dialog before."
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-static {v3, p1}, Lcom/google/android/gms/internal/play_billing/zzc;->h(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
throw v2
|
|
|
|
.line 37
|
|
:cond_0
|
|
:try_start_0
|
|
throw v2
|
|
:try_end_0
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 38
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 39
|
|
const-string v1, "Runtime error while launching intent for alternative billing only dialog."
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-static {v3, v1, p1}, Lcom/google/android/gms/internal/play_billing/zzc;->j(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
const/4 v3, 0x6
|
|
|
|
.line 50
|
|
invoke-virtual {v1, v0, v3}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
const-string v0, "DEBUG_MESSAGE"
|
|
|
|
.line 54
|
|
.line 55
|
|
const-string v3, "An internal error occurred."
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {v1, v0, v3}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
const/16 v0, 0x4b
|
|
|
|
.line 61
|
|
.line 62
|
|
const-string v3, "INTERNAL_LOG_ERROR_REASON"
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {v1, v3, v0}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object v0
|
|
|
|
.line 71
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result-object v0
|
|
|
|
.line 75
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
move-result-object p1
|
|
|
|
.line 79
|
|
if-nez p1, :cond_1
|
|
|
|
.line 80
|
|
.line 81
|
|
const-string p1, ""
|
|
|
|
.line 82
|
|
.line 83
|
|
:cond_1
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
.line 84
|
|
.line 85
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
const-string v0, ": "
|
|
|
|
.line 92
|
|
.line 93
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
move-result-object p1
|
|
|
|
.line 103
|
|
const-string v0, "INTERNAL_LOG_ERROR_ADDITIONAL_DETAILS"
|
|
|
|
.line 104
|
|
.line 105
|
|
invoke-virtual {v1, v0, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
throw v2
|
|
|
|
.line 109
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
.line 110
|
|
.line 111
|
|
const-string v0, "Unable to launch intent for alternative billing only dialog"
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
move-result-object p1
|
|
|
|
.line 123
|
|
invoke-static {v3, p1}, Lcom/google/android/gms/internal/play_billing/zzc;->i(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
throw v2
|
|
|
|
.line 127
|
|
:cond_3
|
|
const-string p1, "Response bundle doesn\'t contain a response code"
|
|
|
|
.line 128
|
|
.line 129
|
|
invoke-static {v3, p1}, Lcom/google/android/gms/internal/play_billing/zzc;->i(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 130
|
|
.line 131
|
|
.line 132
|
|
throw v2
|
|
.end method
|