soul-browser/app/smali_classes3/com/google/common/base/FinalizableReferenceQueue.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

228 lines
4.3 KiB
Smali

.class public Lcom/google/common/base/FinalizableReferenceQueue;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation build Lcom/google/common/annotations/GwtIncompatible;
.end annotation
.annotation build Lcom/google/common/annotations/J2ktIncompatible;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/base/FinalizableReferenceQueue$FinalizerLoader;,
Lcom/google/common/base/FinalizableReferenceQueue$SystemLoader;,
Lcom/google/common/base/FinalizableReferenceQueue$DecoupledLoader;,
Lcom/google/common/base/FinalizableReferenceQueue$DirectLoader;
}
.end annotation
# static fields
.field public static final c:Ljava/util/logging/Logger;
# direct methods
.method static constructor <clinit>()V
.locals 7
.line 1
const-class v0, Lcom/google/common/base/FinalizableReferenceQueue;
.line 2
.line 3
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
.line 4
.line 5
.line 6
move-result-object v0
.line 7
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
.line 8
.line 9
.line 10
move-result-object v0
.line 11
sput-object v0, Lcom/google/common/base/FinalizableReferenceQueue;->c:Ljava/util/logging/Logger;
.line 12
.line 13
new-instance v0, Lcom/google/common/base/FinalizableReferenceQueue$SystemLoader;
.line 14
.line 15
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
.line 16
.line 17
.line 18
new-instance v1, Lcom/google/common/base/FinalizableReferenceQueue$DecoupledLoader;
.line 19
.line 20
invoke-direct {v1}, Ljava/lang/Object;-><init>()V
.line 21
.line 22
.line 23
new-instance v2, Lcom/google/common/base/FinalizableReferenceQueue$DirectLoader;
.line 24
.line 25
invoke-direct {v2}, Ljava/lang/Object;-><init>()V
.line 26
.line 27
.line 28
const/4 v3, 0x3
.line 29
new-array v4, v3, [Lcom/google/common/base/FinalizableReferenceQueue$FinalizerLoader;
.line 30
.line 31
const/4 v5, 0x0
.line 32
aput-object v0, v4, v5
.line 33
.line 34
const/4 v0, 0x1
.line 35
aput-object v1, v4, v0
.line 36
.line 37
const/4 v1, 0x2
.line 38
aput-object v2, v4, v1
.line 39
.line 40
move v2, v5
.line 41
:goto_0
if-ge v2, v3, :cond_1
.line 42
.line 43
aget-object v6, v4, v2
.line 44
.line 45
invoke-interface {v6}, Lcom/google/common/base/FinalizableReferenceQueue$FinalizerLoader;->a()Ljava/lang/Class;
.line 46
.line 47
.line 48
move-result-object v6
.line 49
if-eqz v6, :cond_0
.line 50
.line 51
:try_start_0
const-string v2, "startFinalizer"
.line 52
.line 53
new-array v3, v3, [Ljava/lang/Class;
.line 54
.line 55
const-class v4, Ljava/lang/Class;
.line 56
.line 57
aput-object v4, v3, v5
.line 58
.line 59
const-class v4, Ljava/lang/ref/ReferenceQueue;
.line 60
.line 61
aput-object v4, v3, v0
.line 62
.line 63
const-class v0, Ljava/lang/ref/PhantomReference;
.line 64
.line 65
aput-object v0, v3, v1
.line 66
.line 67
invoke-virtual {v6, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
.line 68
.line 69
.line 70
return-void
.line 71
:catch_0
move-exception v0
.line 72
new-instance v1, Ljava/lang/AssertionError;
.line 73
.line 74
invoke-direct {v1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
.line 75
.line 76
.line 77
throw v1
.line 78
:cond_0
add-int/lit8 v2, v2, 0x1
.line 79
.line 80
goto :goto_0
.line 81
:cond_1
new-instance v0, Ljava/lang/AssertionError;
.line 82
.line 83
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
.line 84
.line 85
.line 86
throw v0
.end method
# virtual methods
.method public final close()V
.locals 1
.line 1
const/4 v0, 0x0
.line 2
throw v0
.end method