* 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>
438 lines
9.7 KiB
Smali
438 lines
9.7 KiB
Smali
.class final Lcom/google/android/gms/internal/auth/zzco;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/gms/internal/auth/zzcl;
|
|
|
|
|
|
# static fields
|
|
.field public static c:Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public final b:Landroid/database/ContentObserver;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/auth/zzco;->a:Landroid/content/Context;
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/auth/zzco;->b:Landroid/database/ContentObserver;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/internal/auth/zzco;->a:Landroid/content/Context;
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/auth/zzcn;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-direct {v0, v1}, Landroid/database/ContentObserver;-><init>(Landroid/os/Handler;)V
|
|
|
|
.line 4
|
|
iput-object v0, p0, Lcom/google/android/gms/internal/auth/zzco;->b:Landroid/database/ContentObserver;
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lcom/google/android/gms/internal/auth/zzcb;->a:Landroid/net/Uri;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p1, v1, v2, v0}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Landroid/content/Context;)Lcom/google/android/gms/internal/auth/zzco;
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-class v0, Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/android/gms/internal/auth/zzco;->c:Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-nez v1, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "com.google.android.providers.gsf.permission.READ_GSERVICES"
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {p0, v1}, Landroidx/core/content/PermissionChecker;->a(Landroid/content/Context;Ljava/lang/String;)I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result v1
|
|
|
|
.line 14
|
|
if-nez v1, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
new-instance v1, Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-direct {v1, p0}, Lcom/google/android/gms/internal/auth/zzco;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
goto :goto_0
|
|
|
|
.line 22
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 23
|
|
goto :goto_1
|
|
|
|
.line 24
|
|
:cond_0
|
|
new-instance v1, Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {v1}, Lcom/google/android/gms/internal/auth/zzco;-><init>()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:goto_0
|
|
sput-object v1, Lcom/google/android/gms/internal/auth/zzco;->c:Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 30
|
|
.line 31
|
|
:cond_1
|
|
sget-object p0, Lcom/google/android/gms/internal/auth/zzco;->c:Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 32
|
|
.line 33
|
|
monitor-exit v0
|
|
|
|
.line 34
|
|
return-object p0
|
|
|
|
.line 35
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 36
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static declared-synchronized d()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
const-class v0, Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
sget-object v1, Lcom/google/android/gms/internal/auth/zzco;->c:Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-object v2, v1, Lcom/google/android/gms/internal/auth/zzco;->a:Landroid/content/Context;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v1, v1, Lcom/google/android/gms/internal/auth/zzco;->b:Landroid/database/ContentObserver;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v1
|
|
|
|
.line 20
|
|
sget-object v2, Lcom/google/android/gms/internal/auth/zzco;->c:Lcom/google/android/gms/internal/auth/zzco;
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v2, v2, Lcom/google/android/gms/internal/auth/zzco;->b:Landroid/database/ContentObserver;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v1, v2}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
goto :goto_0
|
|
|
|
.line 28
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 29
|
|
goto :goto_1
|
|
|
|
.line 30
|
|
:cond_0
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 31
|
|
sput-object v1, Lcom/google/android/gms/internal/auth/zzco;->c:Lcom/google/android/gms/internal/auth/zzco;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 32
|
|
.line 33
|
|
monitor-exit v0
|
|
|
|
.line 34
|
|
return-void
|
|
|
|
.line 35
|
|
:goto_1
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 36
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bridge synthetic a(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/android/gms/internal/auth/zzco;->c(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final c(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/google/android/gms/internal/auth/zzco;->a:Landroid/content/Context;
|
|
|
|
.line 3
|
|
.line 4
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-static {v1}, Lcom/google/android/gms/internal/auth/zzcc;->a(Landroid/content/Context;)Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v1
|
|
|
|
.line 10
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
goto :goto_2
|
|
|
|
.line 13
|
|
:cond_0
|
|
:try_start_0
|
|
new-instance v1, Lcom/google/android/gms/internal/auth/zzcm;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-direct {v1, p0, p1}, Lcom/google/android/gms/internal/auth/zzcm;-><init>(Lcom/google/android/gms/internal/auth/zzco;Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:try_start_1
|
|
invoke-virtual {v1}, Lcom/google/android/gms/internal/auth/zzcm;->a()Ljava/lang/Object;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v1
|
|
:try_end_1
|
|
.catch Ljava/lang/SecurityException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_1 .. :try_end_1} :catch_3
|
|
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Landroid/os/Binder;->clearCallingIdentity()J
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-wide v2
|
|
:try_end_2
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_2 .. :try_end_2} :catch_3
|
|
.catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_2} :catch_2
|
|
.catch Ljava/lang/NullPointerException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
.line 27
|
|
:try_start_3
|
|
invoke-virtual {v1}, Lcom/google/android/gms/internal/auth/zzcm;->a()Ljava/lang/Object;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object v1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 31
|
|
:try_start_4
|
|
invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
:goto_0
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
.line 35
|
|
.line 36
|
|
return-object v1
|
|
|
|
.line 37
|
|
:catch_1
|
|
move-exception v1
|
|
|
|
.line 38
|
|
goto :goto_1
|
|
|
|
.line 39
|
|
:catch_2
|
|
move-exception v1
|
|
|
|
.line 40
|
|
goto :goto_1
|
|
|
|
.line 41
|
|
:catch_3
|
|
move-exception v1
|
|
|
|
.line 42
|
|
goto :goto_1
|
|
|
|
.line 43
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 44
|
|
invoke-static {v2, v3}, Landroid/os/Binder;->restoreCallingIdentity(J)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
throw v1
|
|
:try_end_4
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_4 .. :try_end_4} :catch_3
|
|
.catch Ljava/lang/SecurityException; {:try_start_4 .. :try_end_4} :catch_2
|
|
.catch Ljava/lang/NullPointerException; {:try_start_4 .. :try_end_4} :catch_1
|
|
|
|
.line 48
|
|
:goto_1
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object p1
|
|
|
|
.line 52
|
|
const-string v2, "GservicesLoader"
|
|
|
|
.line 53
|
|
.line 54
|
|
const-string v3, "Unable to read GServices for: "
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v3, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object p1
|
|
|
|
.line 60
|
|
invoke-static {v2, p1, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
:cond_1
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|