soul-browser/app/smali/com/android/billingclient/api/zzae.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

254 lines
6.5 KiB
Smali

.class public final synthetic Lcom/android/billingclient/api/zzae;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/concurrent/Callable;
# instance fields
.field public final synthetic a:Lcom/android/billingclient/api/BillingClientImpl;
.field public final synthetic b:I
.field public final synthetic c:Ljava/lang/String;
.field public final synthetic d:Ljava/lang/String;
.field public final synthetic e:Landroid/os/Bundle;
# direct methods
.method public synthetic constructor <init>(Lcom/android/billingclient/api/BillingClientImpl;ILjava/lang/String;Ljava/lang/String;Lcom/android/billingclient/api/BillingFlowParams;Landroid/os/Bundle;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/android/billingclient/api/zzae;->a:Lcom/android/billingclient/api/BillingClientImpl;
iput p2, p0, Lcom/android/billingclient/api/zzae;->b:I
iput-object p3, p0, Lcom/android/billingclient/api/zzae;->c:Ljava/lang/String;
iput-object p4, p0, Lcom/android/billingclient/api/zzae;->d:Ljava/lang/String;
iput-object p6, p0, Lcom/android/billingclient/api/zzae;->e:Landroid/os/Bundle;
return-void
.end method
# virtual methods
.method public final call()Ljava/lang/Object;
.locals 7
.line 1
iget-object v0, p0, Lcom/android/billingclient/api/zzae;->a:Lcom/android/billingclient/api/BillingClientImpl;
.line 2
.line 3
iget v2, p0, Lcom/android/billingclient/api/zzae;->b:I
.line 4
.line 5
iget-object v4, p0, Lcom/android/billingclient/api/zzae;->c:Ljava/lang/String;
.line 6
.line 7
iget-object v5, p0, Lcom/android/billingclient/api/zzae;->d:Ljava/lang/String;
.line 8
.line 9
iget-object v6, p0, Lcom/android/billingclient/api/zzae;->e:Landroid/os/Bundle;
.line 10
.line 11
:try_start_0
iget-object v1, v0, Lcom/android/billingclient/api/BillingClientImpl;->a:Ljava/lang/Object;
.line 12
.line 13
monitor-enter v1
:try_end_0
.catch Landroid/os/DeadObjectException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 14
move-object v3, v1
.line 15
:try_start_1
iget-object v1, v0, Lcom/android/billingclient/api/BillingClientImpl;->i:Lcom/google/android/gms/internal/play_billing/zzap;
.line 16
.line 17
monitor-exit v3
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 18
if-nez v1, :cond_0
.line 19
.line 20
:try_start_2
sget-object v0, Lcom/android/billingclient/api/zzdb;->j:Lcom/android/billingclient/api/BillingResult;
.line 21
.line 22
sget-object v1, Lcom/google/android/gms/internal/play_billing/zzje;->h1:Lcom/google/android/gms/internal/play_billing/zzje;
.line 23
.line 24
invoke-static {v0, v1}, Lcom/google/android/gms/internal/play_billing/zzc;->c(Lcom/android/billingclient/api/BillingResult;Lcom/google/android/gms/internal/play_billing/zzje;)Landroid/os/Bundle;
.line 25
.line 26
.line 27
move-result-object v0
.line 28
return-object v0
.line 29
:catch_0
move-exception v0
.line 30
goto :goto_0
.line 31
:catch_1
move-exception v0
.line 32
goto :goto_1
.line 33
:cond_0
iget-object v0, v0, Lcom/android/billingclient/api/BillingClientImpl;->g:Landroid/content/Context;
.line 34
.line 35
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
.line 36
.line 37
.line 38
move-result-object v3
.line 39
invoke-interface/range {v1 .. v6}, Lcom/google/android/gms/internal/play_billing/zzap;->O(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.line 40
.line 41
.line 42
move-result-object v0
:try_end_2
.catch Landroid/os/DeadObjectException; {:try_start_2 .. :try_end_2} :catch_1
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
.line 43
return-object v0
.line 44
:catchall_0
move-exception v0
.line 45
:try_start_3
monitor-exit v3
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
.line 46
:try_start_4
throw v0
:try_end_4
.catch Landroid/os/DeadObjectException; {:try_start_4 .. :try_end_4} :catch_1
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0
.line 47
:goto_0
sget-object v1, Lcom/android/billingclient/api/zzdb;->h:Lcom/android/billingclient/api/BillingResult;
.line 48
.line 49
invoke-static {v0}, Lcom/android/billingclient/api/zzcx;->a(Ljava/lang/Exception;)Ljava/lang/String;
.line 50
.line 51
.line 52
move-result-object v0
.line 53
sget-object v2, Lcom/google/android/gms/internal/play_billing/zzje;->j:Lcom/google/android/gms/internal/play_billing/zzje;
.line 54
.line 55
invoke-static {v1, v2}, Lcom/google/android/gms/internal/play_billing/zzc;->c(Lcom/android/billingclient/api/BillingResult;Lcom/google/android/gms/internal/play_billing/zzje;)Landroid/os/Bundle;
.line 56
.line 57
.line 58
move-result-object v1
.line 59
if-eqz v0, :cond_1
.line 60
.line 61
const-string v2, "ADDITIONAL_LOG_DETAILS"
.line 62
.line 63
invoke-virtual {v1, v2, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 64
.line 65
.line 66
goto :goto_2
.line 67
:goto_1
sget-object v1, Lcom/android/billingclient/api/zzdb;->j:Lcom/android/billingclient/api/BillingResult;
.line 68
.line 69
invoke-static {v0}, Lcom/android/billingclient/api/zzcx;->a(Ljava/lang/Exception;)Ljava/lang/String;
.line 70
.line 71
.line 72
move-result-object v0
.line 73
sget-object v2, Lcom/google/android/gms/internal/play_billing/zzje;->j:Lcom/google/android/gms/internal/play_billing/zzje;
.line 74
.line 75
invoke-static {v1, v2}, Lcom/google/android/gms/internal/play_billing/zzc;->c(Lcom/android/billingclient/api/BillingResult;Lcom/google/android/gms/internal/play_billing/zzje;)Landroid/os/Bundle;
.line 76
.line 77
.line 78
move-result-object v1
.line 79
if-eqz v0, :cond_1
.line 80
.line 81
const-string v2, "ADDITIONAL_LOG_DETAILS"
.line 82
.line 83
invoke-virtual {v1, v2, v0}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 84
.line 85
.line 86
:cond_1
:goto_2
return-object v1
.end method