soul-browser/app/smali/androidx/recyclerview/widget/ViewBoundsCheck$BoundFlags.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

272 lines
3.8 KiB
Smali

.class Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/recyclerview/widget/ViewBoundsCheck;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "BoundFlags"
.end annotation
# instance fields
.field public a:I
.field public b:I
.field public c:I
.field public d:I
.field public e:I
# virtual methods
.method public final a()Z
.locals 6
.line 1
iget v0, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->a:I
.line 2
.line 3
and-int/lit8 v1, v0, 0x7
.line 4
.line 5
const/4 v2, 0x2
.line 6
const/4 v3, 0x4
.line 7
const/4 v4, 0x1
.line 8
if-eqz v1, :cond_2
.line 9
.line 10
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->d:I
.line 11
.line 12
iget v5, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->b:I
.line 13
.line 14
if-le v1, v5, :cond_0
.line 15
.line 16
move v1, v4
.line 17
goto :goto_0
.line 18
:cond_0
if-ne v1, v5, :cond_1
.line 19
.line 20
move v1, v2
.line 21
goto :goto_0
.line 22
:cond_1
move v1, v3
.line 23
:goto_0
and-int/2addr v1, v0
.line 24
if-nez v1, :cond_2
.line 25
.line 26
goto :goto_4
.line 27
:cond_2
and-int/lit8 v1, v0, 0x70
.line 28
.line 29
if-eqz v1, :cond_5
.line 30
.line 31
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->d:I
.line 32
.line 33
iget v5, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->c:I
.line 34
.line 35
if-le v1, v5, :cond_3
.line 36
.line 37
move v1, v4
.line 38
goto :goto_1
.line 39
:cond_3
if-ne v1, v5, :cond_4
.line 40
.line 41
move v1, v2
.line 42
goto :goto_1
.line 43
:cond_4
move v1, v3
.line 44
:goto_1
shl-int/2addr v1, v3
.line 45
and-int/2addr v1, v0
.line 46
if-nez v1, :cond_5
.line 47
.line 48
goto :goto_4
.line 49
:cond_5
and-int/lit16 v1, v0, 0x700
.line 50
.line 51
if-eqz v1, :cond_8
.line 52
.line 53
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->e:I
.line 54
.line 55
iget v5, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->b:I
.line 56
.line 57
if-le v1, v5, :cond_6
.line 58
.line 59
move v1, v4
.line 60
goto :goto_2
.line 61
:cond_6
if-ne v1, v5, :cond_7
.line 62
.line 63
move v1, v2
.line 64
goto :goto_2
.line 65
:cond_7
move v1, v3
.line 66
:goto_2
shl-int/lit8 v1, v1, 0x8
.line 67
.line 68
and-int/2addr v1, v0
.line 69
if-nez v1, :cond_8
.line 70
.line 71
goto :goto_4
.line 72
:cond_8
and-int/lit16 v1, v0, 0x7000
.line 73
.line 74
if-eqz v1, :cond_b
.line 75
.line 76
iget v1, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->e:I
.line 77
.line 78
iget v5, p0, Landroidx/recyclerview/widget/ViewBoundsCheck$BoundFlags;->c:I
.line 79
.line 80
if-le v1, v5, :cond_9
.line 81
.line 82
move v2, v4
.line 83
goto :goto_3
.line 84
:cond_9
if-ne v1, v5, :cond_a
.line 85
.line 86
goto :goto_3
.line 87
:cond_a
move v2, v3
.line 88
:goto_3
shl-int/lit8 v1, v2, 0xc
.line 89
.line 90
and-int/2addr v0, v1
.line 91
if-nez v0, :cond_b
.line 92
.line 93
:goto_4
const/4 v0, 0x0
.line 94
return v0
.line 95
:cond_b
return v4
.end method