* 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>
199 lines
3.9 KiB
Smali
199 lines
3.9 KiB
Smali
.class abstract Lcom/google/common/hash/Striped64;
|
|
.super Ljava/lang/Number;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtIncompatible;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/hash/Striped64$Cell;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public volatile transient c:J
|
|
|
|
.field public volatile transient f:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/ThreadLocal;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Ljava/util/Random;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0}, Ljava/util/Random;-><init>()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
:try_start_0
|
|
invoke-static {}, Lcom/google/common/hash/Striped64;->a()Lsun/misc/Unsafe;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
const-class v1, Lcom/google/common/hash/Striped64;
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string v2, "c"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v2
|
|
|
|
.line 30
|
|
invoke-virtual {v0, v2}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
const-string v2, "f"
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object v1
|
|
|
|
.line 39
|
|
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
return-void
|
|
|
|
.line 43
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 44
|
|
new-instance v1, Ljava/lang/Error;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-direct {v1, v0}, Ljava/lang/Error;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static a()Lsun/misc/Unsafe;
|
|
.locals 3
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-static {}, Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 5
|
|
return-object v0
|
|
|
|
.line 6
|
|
:catch_0
|
|
:try_start_1
|
|
new-instance v0, Lcom/google/common/hash/Striped64$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-static {v0}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
check-cast v0, Lsun/misc/Unsafe;
|
|
:try_end_1
|
|
.catch Ljava/security/PrivilegedActionException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 16
|
|
.line 17
|
|
return-object v0
|
|
|
|
.line 18
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
.line 19
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v2, "Could not initialize intrinsics"
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Ljava/security/PrivilegedActionException;->getCause()Ljava/lang/Throwable;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object v0
|
|
|
|
.line 27
|
|
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
throw v1
|
|
.end method
|