* 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>
591 lines
13 KiB
Smali
591 lines
13 KiB
Smali
.class public final Lcom/google/android/gms/internal/auth/zzcg;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/auth/zzcl;
|
|
|
|
|
|
# static fields
|
|
.field public static final g:Landroidx/collection/ArrayMap;
|
|
|
|
.field public static final h:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/ContentResolver;
|
|
|
|
.field public final b:Landroid/net/Uri;
|
|
|
|
.field public final c:Landroid/database/ContentObserver;
|
|
|
|
.field public final d:Ljava/lang/Object;
|
|
|
|
.field public volatile e:Ljava/util/Map;
|
|
|
|
.field public final f:Ljava/util/ArrayList;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
invoke-direct {v0, v1}, Landroidx/collection/SimpleArrayMap;-><init>(I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
sput-object v0, Lcom/google/android/gms/internal/auth/zzcg;->g:Landroidx/collection/ArrayMap;
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v0, "key"
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string v1, "value"
|
|
|
|
.line 12
|
|
.line 13
|
|
filled-new-array {v0, v1}, [Ljava/lang/String;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v0
|
|
|
|
.line 17
|
|
sput-object v0, Lcom/google/android/gms/internal/auth/zzcg;->h:[Ljava/lang/String;
|
|
|
|
.line 18
|
|
.line 19
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/ContentResolver;Landroid/net/Uri;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Lcom/google/android/gms/internal/auth/zzcf;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/internal/auth/zzcf;-><init>(Lcom/google/android/gms/internal/auth/zzcg;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/auth/zzcg;->c:Landroid/database/ContentObserver;
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance v1, Ljava/lang/Object;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {v1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iput-object v1, p0, Lcom/google/android/gms/internal/auth/zzcg;->d:Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
iput-object v1, p0, Lcom/google/android/gms/internal/auth/zzcg;->f:Ljava/util/ArrayList;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/auth/zzcg;->a:Landroid/content/ContentResolver;
|
|
|
|
.line 32
|
|
.line 33
|
|
iput-object p2, p0, Lcom/google/android/gms/internal/auth/zzcg;->b:Landroid/net/Uri;
|
|
|
|
.line 34
|
|
.line 35
|
|
const/4 v1, 0x0
|
|
|
|
.line 36
|
|
invoke-virtual {p1, p2, v1, v0}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Landroid/content/ContentResolver;Landroid/net/Uri;)Lcom/google/android/gms/internal/auth/zzcg;
|
|
.locals 4
|
|
|
|
.line 1
|
|
const-class v0, Lcom/google/android/gms/internal/auth/zzcg;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/android/gms/internal/auth/zzcg;->g:Landroidx/collection/ArrayMap;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v1, p1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v2
|
|
|
|
.line 10
|
|
check-cast v2, Lcom/google/android/gms/internal/auth/zzcg;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 11
|
|
.line 12
|
|
if-nez v2, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
:try_start_1
|
|
new-instance v3, Lcom/google/android/gms/internal/auth/zzcg;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {v3, p0, p1}, Lcom/google/android/gms/internal/auth/zzcg;-><init>(Landroid/content/ContentResolver;Landroid/net/Uri;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/SecurityException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:try_start_2
|
|
invoke-virtual {v1, p1, v3}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_2
|
|
.catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 24
|
|
goto :goto_1
|
|
|
|
.line 25
|
|
:catch_0
|
|
:goto_0
|
|
move-object v2, v3
|
|
|
|
.line 26
|
|
:catch_1
|
|
:cond_0
|
|
:try_start_3
|
|
monitor-exit v0
|
|
|
|
.line 27
|
|
return-object v2
|
|
|
|
.line 28
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 29
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static declared-synchronized c()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
const-class v0, Lcom/google/android/gms/internal/auth/zzcg;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/android/gms/internal/auth/zzcg;->g:Landroidx/collection/ArrayMap;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {v1}, Landroidx/collection/ArrayMap;->values()Ljava/util/Collection;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v1
|
|
|
|
.line 10
|
|
invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v1
|
|
|
|
.line 14
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v2
|
|
|
|
.line 18
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v2
|
|
|
|
.line 24
|
|
check-cast v2, Lcom/google/android/gms/internal/auth/zzcg;
|
|
|
|
.line 25
|
|
.line 26
|
|
iget-object v3, v2, Lcom/google/android/gms/internal/auth/zzcg;->a:Landroid/content/ContentResolver;
|
|
|
|
.line 27
|
|
.line 28
|
|
iget-object v2, v2, Lcom/google/android/gms/internal/auth/zzcg;->c:Landroid/database/ContentObserver;
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v3, v2}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 35
|
|
goto :goto_1
|
|
|
|
.line 36
|
|
:cond_0
|
|
sget-object v1, Lcom/google/android/gms/internal/auth/zzcg;->g:Landroidx/collection/ArrayMap;
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v1}, Landroidx/collection/SimpleArrayMap;->clear()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
monitor-exit v0
|
|
|
|
.line 42
|
|
return-void
|
|
|
|
.line 43
|
|
:goto_1
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 44
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/auth/zzcg;->e:Ljava/util/Map;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, p0, Lcom/google/android/gms/internal/auth/zzcg;->d:Ljava/lang/Object;
|
|
|
|
.line 6
|
|
.line 7
|
|
monitor-enter v1
|
|
|
|
.line 8
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/android/gms/internal/auth/zzcg;->e:Ljava/util/Map;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
goto :goto_2
|
|
|
|
.line 13
|
|
:cond_0
|
|
invoke-static {}, Landroid/os/StrictMode;->allowThreadDiskReads()Landroid/os/StrictMode$ThreadPolicy;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 17
|
|
:try_start_1
|
|
new-instance v2, Lcom/google/android/gms/internal/auth/zzce;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-direct {v2, p0}, Lcom/google/android/gms/internal/auth/zzce;-><init>(Lcom/google/android/gms/internal/auth/zzcg;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/SecurityException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Landroid/database/sqlite/SQLiteException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
:try_start_2
|
|
invoke-virtual {v2}, Lcom/google/android/gms/internal/auth/zzce;->a()Ljava/lang/Object;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object v2
|
|
:try_end_2
|
|
.catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catch Landroid/database/sqlite/SQLiteException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
.line 26
|
|
goto :goto_0
|
|
|
|
.line 27
|
|
:catch_0
|
|
:try_start_3
|
|
invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-wide v3
|
|
:try_end_3
|
|
.catch Ljava/lang/SecurityException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Landroid/database/sqlite/SQLiteException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
.line 31
|
|
:try_start_4
|
|
invoke-virtual {v2}, Lcom/google/android/gms/internal/auth/zzce;->a()Ljava/lang/Object;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v2
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
.line 35
|
|
:try_start_5
|
|
invoke-static {v3, v4}, Landroid/os/Binder;->restoreCallingIdentity(J)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
:goto_0
|
|
check-cast v2, Ljava/util/Map;
|
|
:try_end_5
|
|
.catch Ljava/lang/SecurityException; {:try_start_5 .. :try_end_5} :catch_1
|
|
.catch Landroid/database/sqlite/SQLiteException; {:try_start_5 .. :try_end_5} :catch_1
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_5 .. :try_end_5} :catch_1
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_1
|
|
|
|
.line 39
|
|
.line 40
|
|
:try_start_6
|
|
invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
|
:try_end_6
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_0
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
goto :goto_1
|
|
|
|
.line 44
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 45
|
|
goto :goto_4
|
|
|
|
.line 46
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 47
|
|
goto :goto_3
|
|
|
|
.line 48
|
|
:catchall_2
|
|
move-exception v2
|
|
|
|
.line 49
|
|
:try_start_7
|
|
invoke-static {v3, v4}, Landroid/os/Binder;->restoreCallingIdentity(J)V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
throw v2
|
|
:try_end_7
|
|
.catch Ljava/lang/SecurityException; {:try_start_7 .. :try_end_7} :catch_1
|
|
.catch Landroid/database/sqlite/SQLiteException; {:try_start_7 .. :try_end_7} :catch_1
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_7 .. :try_end_7} :catch_1
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1
|
|
|
|
.line 53
|
|
:catch_1
|
|
:try_start_8
|
|
const-string v2, "ConfigurationContentLdr"
|
|
|
|
.line 54
|
|
.line 55
|
|
const-string v3, "PhenotypeFlag unable to load ContentProvider, using default values"
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
:try_end_8
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_1
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
:try_start_9
|
|
invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
const/4 v2, 0x0
|
|
|
|
.line 64
|
|
:goto_1
|
|
iput-object v2, p0, Lcom/google/android/gms/internal/auth/zzcg;->e:Ljava/util/Map;
|
|
|
|
.line 65
|
|
.line 66
|
|
move-object v0, v2
|
|
|
|
.line 67
|
|
:goto_2
|
|
monitor-exit v1
|
|
|
|
.line 68
|
|
goto :goto_5
|
|
|
|
.line 69
|
|
:goto_3
|
|
invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
throw p1
|
|
|
|
.line 73
|
|
:goto_4
|
|
monitor-exit v1
|
|
:try_end_9
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_0
|
|
|
|
.line 74
|
|
throw p1
|
|
|
|
.line 75
|
|
:cond_1
|
|
:goto_5
|
|
if-nez v0, :cond_2
|
|
|
|
.line 76
|
|
.line 77
|
|
sget-object v0, Ljava/util/Collections;->EMPTY_MAP:Ljava/util/Map;
|
|
|
|
.line 78
|
|
.line 79
|
|
:cond_2
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result-object p1
|
|
|
|
.line 83
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
.line 84
|
|
.line 85
|
|
return-object p1
|
|
.end method
|