* 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>
245 lines
4.6 KiB
Smali
245 lines
4.6 KiB
Smali
.class Lcom/google/gson/Gson$5;
|
|
.super Lcom/google/gson/TypeAdapter;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/gson/TypeAdapter<",
|
|
"Ljava/util/concurrent/atomic/AtomicLongArray;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Lcom/google/gson/TypeAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/gson/TypeAdapter;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p1, p0, Lcom/google/gson/Gson$5;->a:Lcom/google/gson/TypeAdapter;
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
|
|
.locals 5
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->a()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
:goto_0
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->n()Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v1
|
|
|
|
.line 13
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v1, p0, Lcom/google/gson/Gson$5;->a:Lcom/google/gson/TypeAdapter;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {v1, p1}, Lcom/google/gson/TypeAdapter;->b(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v1
|
|
|
|
.line 21
|
|
check-cast v1, Ljava/lang/Number;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v1}, Ljava/lang/Number;->longValue()J
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-wide v1
|
|
|
|
.line 27
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object v1
|
|
|
|
.line 31
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
goto :goto_0
|
|
|
|
.line 35
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->f()V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result p1
|
|
|
|
.line 42
|
|
new-instance v1, Ljava/util/concurrent/atomic/AtomicLongArray;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-direct {v1, p1}, Ljava/util/concurrent/atomic/AtomicLongArray;-><init>(I)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
const/4 v2, 0x0
|
|
|
|
.line 48
|
|
:goto_1
|
|
if-ge v2, p1, :cond_1
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v3
|
|
|
|
.line 54
|
|
check-cast v3, Ljava/lang/Long;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-wide v3
|
|
|
|
.line 60
|
|
invoke-virtual {v1, v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicLongArray;->set(IJ)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 64
|
|
.line 65
|
|
goto :goto_1
|
|
|
|
.line 66
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final c(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
check-cast p2, Ljava/util/concurrent/atomic/AtomicLongArray;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->b()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
const/4 v1, 0x0
|
|
|
|
.line 11
|
|
:goto_0
|
|
if-ge v1, v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p2, v1}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-wide v2
|
|
|
|
.line 17
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v2
|
|
|
|
.line 21
|
|
iget-object v3, p0, Lcom/google/gson/Gson$5;->a:Lcom/google/gson/TypeAdapter;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v3, p1, v2}, Lcom/google/gson/TypeAdapter;->c(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->f()V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
return-void
|
|
.end method
|