* 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>
309 lines
7.5 KiB
Smali
309 lines
7.5 KiB
Smali
.class public final Lcom/android/billingclient/api/BillingClient$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/AnyThread;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/android/billingclient/api/BillingClient;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public volatile a:Lcom/android/billingclient/api/PendingPurchasesParams;
|
|
|
|
.field public final b:Landroid/content/Context;
|
|
|
|
.field public volatile c:Lcom/mycompany/app/help/PayHelper;
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->b:Landroid/content/Context;
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Lcom/android/billingclient/api/BillingClient;
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/android/billingclient/api/BillingClient$Builder;->b:Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->c:Lcom/mycompany/app/help/PayHelper;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->a:Lcom/android/billingclient/api/PendingPurchasesParams;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->a:Lcom/android/billingclient/api/PendingPurchasesParams;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->c:Lcom/mycompany/app/help/PayHelper;
|
|
|
|
.line 19
|
|
.line 20
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->a:Lcom/android/billingclient/api/PendingPurchasesParams;
|
|
|
|
.line 23
|
|
.line 24
|
|
iget-object v2, p0, Lcom/android/billingclient/api/BillingClient$Builder;->c:Lcom/mycompany/app/help/PayHelper;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0}, Lcom/android/billingclient/api/BillingClient$Builder;->b()Z
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result v3
|
|
|
|
.line 30
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 31
|
|
.line 32
|
|
new-instance v3, Lcom/android/billingclient/api/zzcv;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-direct {v3, v1, v0, v2, p0}, Lcom/android/billingclient/api/zzcv;-><init>(Lcom/android/billingclient/api/PendingPurchasesParams;Landroid/content/Context;Lcom/mycompany/app/help/PayHelper;Lcom/android/billingclient/api/BillingClient$Builder;)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
return-object v3
|
|
|
|
.line 38
|
|
:cond_0
|
|
new-instance v3, Lcom/android/billingclient/api/BillingClientImpl;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-direct {v3, v1, v0, v2, p0}, Lcom/android/billingclient/api/BillingClientImpl;-><init>(Lcom/android/billingclient/api/PendingPurchasesParams;Landroid/content/Context;Lcom/android/billingclient/api/PurchasesUpdatedListener;Lcom/android/billingclient/api/BillingClient$Builder;)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
return-object v3
|
|
|
|
.line 44
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->a:Lcom/android/billingclient/api/PendingPurchasesParams;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {p0}, Lcom/android/billingclient/api/BillingClient$Builder;->b()Z
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result v2
|
|
|
|
.line 50
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 51
|
|
.line 52
|
|
new-instance v2, Lcom/android/billingclient/api/zzcv;
|
|
|
|
.line 53
|
|
.line 54
|
|
invoke-direct {v2, v1, v0, p0}, Lcom/android/billingclient/api/zzcv;-><init>(Lcom/android/billingclient/api/PendingPurchasesParams;Landroid/content/Context;Lcom/android/billingclient/api/BillingClient$Builder;)V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
return-object v2
|
|
|
|
.line 58
|
|
:cond_2
|
|
new-instance v2, Lcom/android/billingclient/api/BillingClientImpl;
|
|
|
|
.line 59
|
|
.line 60
|
|
invoke-direct {v2, v1, v0, p0}, Lcom/android/billingclient/api/BillingClientImpl;-><init>(Lcom/android/billingclient/api/PendingPurchasesParams;Landroid/content/Context;Lcom/android/billingclient/api/BillingClient$Builder;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
return-object v2
|
|
|
|
.line 64
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 65
|
|
.line 66
|
|
const-string v1, "Pending purchases for one-time products must be supported."
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
throw v0
|
|
|
|
.line 72
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 73
|
|
.line 74
|
|
const-string v1, "Please provide a valid listener for purchases updates."
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
throw v0
|
|
|
|
.line 80
|
|
:cond_5
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 81
|
|
.line 82
|
|
const-string v1, "Please provide a valid Context."
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final b()Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/android/billingclient/api/BillingClient$Builder;->b:Landroid/content/Context;
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v2
|
|
|
|
.line 8
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v1
|
|
|
|
.line 12
|
|
const/16 v3, 0x80
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v1
|
|
|
|
.line 18
|
|
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->metaData:Landroid/os/Bundle;
|
|
|
|
.line 19
|
|
.line 20
|
|
const-string v2, "com.google.android.play.billingclient.enableBillingOverridesTesting"
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v1, v2, v0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 26
|
|
return v0
|
|
|
|
.line 27
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.line 28
|
|
const-string v2, "BillingClient"
|
|
|
|
.line 29
|
|
.line 30
|
|
const-string v3, "Unable to retrieve metadata value for enableBillingOverridesTesting."
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-static {v2, v3, v1}, Lcom/google/android/gms/internal/play_billing/zzc;->j(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
return v0
|
|
.end method
|