soul-browser/app/smali/androidx/room/InvalidationTracker$ObservedTableTracker.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

265 lines
4.3 KiB
Smali

.class Landroidx/room/InvalidationTracker$ObservedTableTracker;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/room/InvalidationTracker;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ObservedTableTracker"
.end annotation
# instance fields
.field public final a:[J
.field public final b:[Z
.field public final c:[I
.field public d:Z
.field public e:Z
# direct methods
.method public constructor <init>(I)V
.locals 4
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
new-array v0, p1, [J
.line 5
.line 6
iput-object v0, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->a:[J
.line 7
.line 8
new-array v1, p1, [Z
.line 9
.line 10
iput-object v1, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->b:[Z
.line 11
.line 12
new-array p1, p1, [I
.line 13
.line 14
iput-object p1, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->c:[I
.line 15
.line 16
const-wide/16 v2, 0x0
.line 17
.line 18
invoke-static {v0, v2, v3}, Ljava/util/Arrays;->fill([JJ)V
.line 19
.line 20
.line 21
const/4 p1, 0x0
.line 22
invoke-static {v1, p1}, Ljava/util/Arrays;->fill([ZZ)V
.line 23
.line 24
.line 25
return-void
.end method
# virtual methods
.method public final a()[I
.locals 9
.line 1
monitor-enter p0
.line 2
:try_start_0
iget-boolean v0, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->d:Z
.line 3
.line 4
if-eqz v0, :cond_5
.line 5
.line 6
iget-boolean v0, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->e:Z
.line 7
.line 8
if-eqz v0, :cond_0
.line 9
.line 10
goto :goto_4
.line 11
:cond_0
iget-object v0, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->a:[J
.line 12
.line 13
array-length v0, v0
.line 14
const/4 v1, 0x0
.line 15
move v2, v1
.line 16
:goto_0
const/4 v3, 0x1
.line 17
if-ge v2, v0, :cond_4
.line 18
.line 19
iget-object v4, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->a:[J
.line 20
.line 21
aget-wide v5, v4, v2
.line 22
.line 23
const-wide/16 v7, 0x0
.line 24
.line 25
cmp-long v4, v5, v7
.line 26
.line 27
if-lez v4, :cond_1
.line 28
.line 29
move v4, v3
.line 30
goto :goto_1
.line 31
:cond_1
move v4, v1
.line 32
:goto_1
iget-object v5, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->b:[Z
.line 33
.line 34
aget-boolean v6, v5, v2
.line 35
.line 36
if-eq v4, v6, :cond_3
.line 37
.line 38
iget-object v6, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->c:[I
.line 39
.line 40
if-eqz v4, :cond_2
.line 41
.line 42
goto :goto_2
.line 43
:cond_2
const/4 v3, 0x2
.line 44
:goto_2
aput v3, v6, v2
.line 45
.line 46
goto :goto_3
.line 47
:catchall_0
move-exception v0
.line 48
goto :goto_5
.line 49
:cond_3
iget-object v3, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->c:[I
.line 50
.line 51
aput v1, v3, v2
.line 52
.line 53
:goto_3
aput-boolean v4, v5, v2
.line 54
.line 55
add-int/lit8 v2, v2, 0x1
.line 56
.line 57
goto :goto_0
.line 58
:cond_4
iput-boolean v3, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->e:Z
.line 59
.line 60
iput-boolean v1, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->d:Z
.line 61
.line 62
iget-object v0, p0, Landroidx/room/InvalidationTracker$ObservedTableTracker;->c:[I
.line 63
.line 64
monitor-exit p0
.line 65
return-object v0
.line 66
:cond_5
:goto_4
const/4 v0, 0x0
.line 67
monitor-exit p0
.line 68
return-object v0
.line 69
:goto_5
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 70
throw v0
.end method