soul-browser/app/smali/androidx/lifecycle/LiveData$ObserverWrapper.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 abstract Landroidx/lifecycle/LiveData$ObserverWrapper;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/lifecycle/LiveData;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x401
name = "ObserverWrapper"
.end annotation
# instance fields
.field public final c:Landroidx/lifecycle/Observer;
.field public f:Z
.field public g:I
.field public final synthetic h:Landroidx/lifecycle/LiveData;
# direct methods
.method public constructor <init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
iput-object p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->h:Landroidx/lifecycle/LiveData;
.line 5
.line 6
const/4 p1, -0x1
.line 7
iput p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->g:I
.line 8
.line 9
iput-object p2, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->c:Landroidx/lifecycle/Observer;
.line 10
.line 11
return-void
.end method
# virtual methods
.method public final c(Z)V
.locals 5
.line 1
iget-boolean v0, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->f:Z
.line 2
.line 3
if-ne p1, v0, :cond_0
.line 4
.line 5
goto :goto_6
.line 6
:cond_0
iput-boolean p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->f:Z
.line 7
.line 8
const/4 v0, 0x1
.line 9
if-eqz p1, :cond_1
.line 10
.line 11
move p1, v0
.line 12
goto :goto_0
.line 13
:cond_1
const/4 p1, -0x1
.line 14
:goto_0
iget-object v1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->h:Landroidx/lifecycle/LiveData;
.line 15
.line 16
iget v2, v1, Landroidx/lifecycle/LiveData;->c:I
.line 17
.line 18
add-int/2addr p1, v2
.line 19
iput p1, v1, Landroidx/lifecycle/LiveData;->c:I
.line 20
.line 21
iget-boolean p1, v1, Landroidx/lifecycle/LiveData;->d:Z
.line 22
.line 23
if-eqz p1, :cond_2
.line 24
.line 25
goto :goto_5
.line 26
:cond_2
iput-boolean v0, v1, Landroidx/lifecycle/LiveData;->d:Z
.line 27
.line 28
:goto_1
const/4 p1, 0x0
.line 29
:try_start_0
iget v3, v1, Landroidx/lifecycle/LiveData;->c:I
.line 30
.line 31
if-eq v2, v3, :cond_7
.line 32
.line 33
if-nez v2, :cond_3
.line 34
.line 35
if-lez v3, :cond_3
.line 36
.line 37
move v4, v0
.line 38
goto :goto_2
.line 39
:cond_3
move v4, p1
.line 40
:goto_2
if-lez v2, :cond_4
.line 41
.line 42
if-nez v3, :cond_4
.line 43
.line 44
move v2, v0
.line 45
goto :goto_3
.line 46
:cond_4
move v2, p1
.line 47
:goto_3
if-eqz v4, :cond_5
.line 48
.line 49
invoke-virtual {v1}, Landroidx/lifecycle/LiveData;->f()V
.line 50
.line 51
.line 52
goto :goto_4
.line 53
:catchall_0
move-exception v0
.line 54
goto :goto_7
.line 55
:cond_5
if-eqz v2, :cond_6
.line 56
.line 57
invoke-virtual {v1}, Landroidx/lifecycle/LiveData;->g()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 58
.line 59
.line 60
:cond_6
:goto_4
move v2, v3
.line 61
goto :goto_1
.line 62
:cond_7
iput-boolean p1, v1, Landroidx/lifecycle/LiveData;->d:Z
.line 63
.line 64
:goto_5
iget-boolean p1, p0, Landroidx/lifecycle/LiveData$ObserverWrapper;->f:Z
.line 65
.line 66
if-eqz p1, :cond_8
.line 67
.line 68
invoke-virtual {v1, p0}, Landroidx/lifecycle/LiveData;->c(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
.line 69
.line 70
.line 71
:cond_8
:goto_6
return-void
.line 72
:goto_7
iput-boolean p1, v1, Landroidx/lifecycle/LiveData;->d:Z
.line 73
.line 74
throw v0
.end method
.method public e()V
.locals 0
.line 1
return-void
.end method
.method public f(Landroidx/lifecycle/LifecycleOwner;)Z
.locals 0
.line 1
const/4 p1, 0x0
return p1
.end method
.method public abstract g()Z
.end method