* 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>
333 lines
11 KiB
Smali
333 lines
11 KiB
Smali
.class public final Lcom/google/android/gms/common/AccountPicker;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static newChooseAccountIntent(Landroid/accounts/Account;Ljava/util/ArrayList;[Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
|
.locals 3
|
|
.param p0 # Landroid/accounts/Account;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/util/ArrayList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # [Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p5 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p6 # [Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p7 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/accounts/Account;",
|
|
"Ljava/util/ArrayList<",
|
|
"Landroid/accounts/Account;",
|
|
">;[",
|
|
"Ljava/lang/String;",
|
|
"Z",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
"[",
|
|
"Ljava/lang/String;",
|
|
"Landroid/os/Bundle;",
|
|
")",
|
|
"Landroid/content/Intent;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const-string v2, "We only support hostedDomain filter for account chip styled account picker"
|
|
|
|
.line 2
|
|
invoke-static {v1, v2}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
const-string v1, "com.google.android.gms.common.account.CHOOSE_ACCOUNT"
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v1, "com.google.android.gms"
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v1, "allowableAccounts"
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
|
|
|
|
const-string p1, "allowableAccountTypes"
|
|
|
|
.line 6
|
|
invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p1, "addAccountOptions"
|
|
|
|
.line 7
|
|
invoke-virtual {v0, p1, p7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
const-string p1, "selectedAccount"
|
|
|
|
.line 8
|
|
invoke-virtual {v0, p1, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
const-string p0, "alwaysPromptForAccount"
|
|
|
|
.line 9
|
|
invoke-virtual {v0, p0, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
const-string p0, "descriptionTextOverride"
|
|
|
|
.line 10
|
|
invoke-virtual {v0, p0, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p0, "authTokenType"
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p0, p5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p0, "addAccountRequiredFeatures"
|
|
|
|
.line 12
|
|
invoke-virtual {v0, p0, p6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 13
|
|
const-string p0, "setGmsCoreAccount"
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {v0, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
const-string p0, "overrideTheme"
|
|
|
|
.line 14
|
|
invoke-virtual {v0, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
const-string p0, "overrideCustomTheme"
|
|
|
|
.line 15
|
|
invoke-virtual {v0, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
const-string p0, "hostedDomainFilter"
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
invoke-virtual {v0, p0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static newChooseAccountIntent(Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;)Landroid/content/Intent;
|
|
.locals 4
|
|
.param p0 # Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 17
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v1, "We only support hostedDomain filter for account chip styled account picker"
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 18
|
|
invoke-static {v2, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
const-string v1, "Consent is only valid for account chip styled account picker"
|
|
|
|
.line 19
|
|
invoke-static {v2, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
const-string v1, "Making the selected account non-clickable is only supported for the THEME_DAY_NIGHT_GOOGLE_MATERIAL2, THEME_LIGHT_GOOGLE_MATERIAL3, THEME_DARK_GOOGLE_MATERIAL3 or THEME_DAY_NIGHT_GOOGLE_MATERIAL3 themes"
|
|
|
|
.line 20
|
|
invoke-static {v2, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
const-string v1, "com.google.android.gms.common.account.CHOOSE_ACCOUNT"
|
|
|
|
.line 21
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v1, "com.google.android.gms"
|
|
|
|
.line 22
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string v1, "allowableAccounts"
|
|
|
|
.line 23
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zzc()Ljava/util/ArrayList;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
|
|
|
|
.line 24
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zze()Ljava/util/ArrayList;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 25
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zze()Ljava/util/ArrayList;
|
|
|
|
move-result-object v1
|
|
|
|
new-array v3, v2, [Ljava/lang/String;
|
|
|
|
.line 26
|
|
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Ljava/lang/String;
|
|
|
|
const-string v3, "allowableAccountTypes"
|
|
|
|
.line 27
|
|
invoke-virtual {v0, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 28
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zzk()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "addAccountOptions"
|
|
|
|
invoke-virtual {v0, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
.line 29
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zza()Landroid/accounts/Account;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "selectedAccount"
|
|
|
|
invoke-virtual {v0, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
const-string v1, "selectedAccountIsNotClickable"
|
|
|
|
.line 30
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
.line 31
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zzg()Z
|
|
|
|
move-result v1
|
|
|
|
const-string v3, "alwaysPromptForAccount"
|
|
|
|
invoke-virtual {v0, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
.line 32
|
|
invoke-virtual {p0}, Lcom/google/android/gms/common/AccountPicker$AccountChooserOptions;->zzi()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v1, "descriptionTextOverride"
|
|
|
|
invoke-virtual {v0, v1, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p0, "setGmsCoreAccount"
|
|
|
|
.line 33
|
|
invoke-virtual {v0, p0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
const-string p0, "realClientPackage"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 34
|
|
invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-string p0, "overrideTheme"
|
|
|
|
.line 35
|
|
invoke-virtual {v0, p0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
const-string p0, "overrideCustomTheme"
|
|
|
|
.line 36
|
|
invoke-virtual {v0, p0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
|
|
|
|
const-string p0, "hostedDomainFilter"
|
|
|
|
.line 37
|
|
invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
new-instance p0, Landroid/os/Bundle;
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Landroid/os/BaseBundle;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const-string v1, "first_party_options_bundle"
|
|
|
|
.line 40
|
|
invoke-virtual {v0, v1, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|