* 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>
319 lines
6.2 KiB
Smali
319 lines
6.2 KiB
Smali
.class public final Lcom/google/common/base/Throwables;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Ljava/lang/Object;
|
|
|
|
.field public static final b:Ljava/lang/reflect/Method;
|
|
|
|
.field public static final c:Ljava/lang/reflect/Method;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 9
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
:try_start_0
|
|
const-string v2, "sun.misc.SharedSecrets"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {v2, v0, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v2
|
|
|
|
.line 9
|
|
const-string v3, "getJavaLangAccess"
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v2, v3, v1}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v2
|
|
|
|
.line 15
|
|
invoke-virtual {v2, v1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catch Ljava/lang/ThreadDeath; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 19
|
|
goto :goto_0
|
|
|
|
.line 20
|
|
:catchall_0
|
|
move-object v2, v1
|
|
|
|
.line 21
|
|
:goto_0
|
|
sput-object v2, Lcom/google/common/base/Throwables;->a:Ljava/lang/Object;
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v3, 0x1
|
|
|
|
.line 24
|
|
const-string v4, "sun.misc.JavaLangAccess"
|
|
|
|
.line 25
|
|
.line 26
|
|
const-class v5, Ljava/lang/Throwable;
|
|
|
|
.line 27
|
|
.line 28
|
|
if-nez v2, :cond_0
|
|
|
|
.line 29
|
|
.line 30
|
|
:catchall_1
|
|
move-object v6, v1
|
|
|
|
.line 31
|
|
goto :goto_1
|
|
|
|
.line 32
|
|
:cond_0
|
|
const-string v6, "getStackTraceElement"
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v7, 0x2
|
|
|
|
.line 35
|
|
new-array v7, v7, [Ljava/lang/Class;
|
|
|
|
.line 36
|
|
.line 37
|
|
aput-object v5, v7, v0
|
|
|
|
.line 38
|
|
.line 39
|
|
sget-object v8, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
.line 40
|
|
.line 41
|
|
aput-object v8, v7, v3
|
|
|
|
.line 42
|
|
.line 43
|
|
:try_start_1
|
|
invoke-static {v4, v0, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object v8
|
|
|
|
.line 47
|
|
invoke-virtual {v8, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object v6
|
|
:try_end_1
|
|
.catch Ljava/lang/ThreadDeath; {:try_start_1 .. :try_end_1} :catch_2
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 51
|
|
:goto_1
|
|
sput-object v6, Lcom/google/common/base/Throwables;->b:Ljava/lang/reflect/Method;
|
|
|
|
.line 52
|
|
.line 53
|
|
if-nez v2, :cond_1
|
|
|
|
.line 54
|
|
.line 55
|
|
goto :goto_4
|
|
|
|
.line 56
|
|
:cond_1
|
|
:try_start_2
|
|
const-string v6, "getStackTraceDepth"
|
|
|
|
.line 57
|
|
.line 58
|
|
new-array v7, v3, [Ljava/lang/Class;
|
|
|
|
.line 59
|
|
.line 60
|
|
aput-object v5, v7, v0
|
|
:try_end_2
|
|
.catch Ljava/lang/UnsupportedOperationException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
.line 61
|
|
.line 62
|
|
:try_start_3
|
|
invoke-static {v4, v0, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object v4
|
|
|
|
.line 66
|
|
invoke-virtual {v4, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v4
|
|
:try_end_3
|
|
.catch Ljava/lang/ThreadDeath; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
|
|
|
.line 70
|
|
goto :goto_2
|
|
|
|
.line 71
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 72
|
|
goto :goto_3
|
|
|
|
.line 73
|
|
:catchall_2
|
|
move-object v4, v1
|
|
|
|
.line 74
|
|
:goto_2
|
|
if-nez v4, :cond_2
|
|
|
|
.line 75
|
|
.line 76
|
|
goto :goto_4
|
|
|
|
.line 77
|
|
:cond_2
|
|
:try_start_4
|
|
new-instance v5, Ljava/lang/Throwable;
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-direct {v5}, Ljava/lang/Throwable;-><init>()V
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
.line 83
|
|
.line 84
|
|
aput-object v5, v3, v0
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v4, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-object v1, v4
|
|
|
|
.line 90
|
|
goto :goto_4
|
|
|
|
.line 91
|
|
:goto_3
|
|
throw v0
|
|
:try_end_4
|
|
.catch Ljava/lang/UnsupportedOperationException; {:try_start_4 .. :try_end_4} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_4 .. :try_end_4} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_4 .. :try_end_4} :catch_1
|
|
|
|
.line 92
|
|
:catch_1
|
|
:goto_4
|
|
sput-object v1, Lcom/google/common/base/Throwables;->c:Ljava/lang/reflect/Method;
|
|
|
|
.line 93
|
|
.line 94
|
|
return-void
|
|
|
|
.line 95
|
|
:catch_2
|
|
move-exception v0
|
|
|
|
.line 96
|
|
throw v0
|
|
|
|
.line 97
|
|
:catch_3
|
|
move-exception v0
|
|
|
|
.line 98
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
instance-of v0, p0, Ljava/lang/RuntimeException;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-nez v0, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
instance-of v0, p0, Ljava/lang/Error;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-nez v0, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
|
|
.line 13
|
|
:cond_0
|
|
check-cast p0, Ljava/lang/Error;
|
|
|
|
.line 14
|
|
.line 15
|
|
throw p0
|
|
|
|
.line 16
|
|
:cond_1
|
|
check-cast p0, Ljava/lang/RuntimeException;
|
|
|
|
.line 17
|
|
.line 18
|
|
throw p0
|
|
.end method
|