* 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>
300 lines
5.8 KiB
Smali
300 lines
5.8 KiB
Smali
.class final enum Lcom/google/gson/ToNumberPolicy$3;
|
|
.super Lcom/google/gson/ToNumberPolicy;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/gson/ToNumberPolicy;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x4011
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "LONG_OR_DOUBLE"
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x2
|
|
|
|
.line 4
|
|
invoke-direct {p0, v0, v1}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Ljava/lang/String;Lcom/google/gson/stream/JsonReader;)Ljava/lang/Double;
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "; at path "
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "JSON forbids NaN and infinities: "
|
|
|
|
.line 4
|
|
.line 5
|
|
:try_start_0
|
|
invoke-static {p0}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v2
|
|
|
|
.line 9
|
|
invoke-virtual {v2}, Ljava/lang/Double;->isInfinite()Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v3
|
|
|
|
.line 13
|
|
if-nez v3, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v2}, Ljava/lang/Double;->isNaN()Z
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v3
|
|
|
|
.line 19
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 20
|
|
.line 21
|
|
goto :goto_0
|
|
|
|
.line 22
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.line 23
|
|
goto :goto_2
|
|
|
|
.line 24
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v3, p1, Lcom/google/gson/stream/JsonReader;->f:Lcom/google/gson/Strictness;
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-object v4, Lcom/google/gson/Strictness;->c:Lcom/google/gson/Strictness;
|
|
|
|
.line 27
|
|
.line 28
|
|
if-ne v3, v4, :cond_1
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v3, 0x1
|
|
|
|
.line 31
|
|
goto :goto_1
|
|
|
|
.line 32
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
.line 33
|
|
:goto_1
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 34
|
|
.line 35
|
|
:cond_2
|
|
return-object v2
|
|
|
|
.line 36
|
|
:cond_3
|
|
new-instance v3, Lcom/google/gson/stream/MalformedJsonException;
|
|
|
|
.line 37
|
|
.line 38
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-direct {v4, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->m()Ljava/lang/String;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result-object v1
|
|
|
|
.line 53
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v1
|
|
|
|
.line 60
|
|
invoke-direct {v3, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
throw v3
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 64
|
|
:goto_2
|
|
new-instance v2, Lcom/google/gson/JsonParseException;
|
|
|
|
.line 65
|
|
.line 66
|
|
const-string v3, "Cannot parse "
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-static {v3, p0, v0}, Landroid/support/v4/media/a;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object p0
|
|
|
|
.line 72
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->m()Ljava/lang/String;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object p1
|
|
|
|
.line 76
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result-object p0
|
|
|
|
.line 83
|
|
invoke-direct {v2, p0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
throw v2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Number;
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->S()Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
const/16 v1, 0x2e
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v1
|
|
|
|
.line 11
|
|
if-ltz v1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {v0, p1}, Lcom/google/gson/ToNumberPolicy$3;->b(Ljava/lang/String;Lcom/google/gson/stream/JsonReader;)Ljava/lang/Double;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object p1
|
|
|
|
.line 17
|
|
return-object p1
|
|
|
|
.line 18
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-wide v1
|
|
|
|
.line 22
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 26
|
|
return-object p1
|
|
|
|
.line 27
|
|
:catch_0
|
|
invoke-static {v0, p1}, Lcom/google/gson/ToNumberPolicy$3;->b(Ljava/lang/String;Lcom/google/gson/stream/JsonReader;)Ljava/lang/Double;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object p1
|
|
|
|
.line 31
|
|
return-object p1
|
|
.end method
|