soul-browser/app/smali_classes3/com/google/common/hash/HashCode$LongHashCode.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

259 lines
3.4 KiB
Smali

.class final Lcom/google/common/hash/HashCode$LongHashCode;
.super Lcom/google/common/hash/HashCode;
.source "SourceFile"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/HashCode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "LongHashCode"
.end annotation
# virtual methods
.method public final a()[B
.locals 11
.line 1
const-wide/16 v0, 0x0
.line 2
.line 3
long-to-int v2, v0
.line 4
int-to-byte v2, v2
.line 5
const/16 v3, 0x8
.line 6
.line 7
shr-long v4, v0, v3
.line 8
.line 9
long-to-int v4, v4
.line 10
int-to-byte v4, v4
.line 11
const/16 v5, 0x10
.line 12
.line 13
shr-long v5, v0, v5
.line 14
.line 15
long-to-int v5, v5
.line 16
int-to-byte v5, v5
.line 17
const/16 v6, 0x18
.line 18
.line 19
shr-long v6, v0, v6
.line 20
.line 21
long-to-int v6, v6
.line 22
int-to-byte v6, v6
.line 23
const/16 v7, 0x20
.line 24
.line 25
shr-long v7, v0, v7
.line 26
.line 27
long-to-int v7, v7
.line 28
int-to-byte v7, v7
.line 29
const/16 v8, 0x28
.line 30
.line 31
shr-long v8, v0, v8
.line 32
.line 33
long-to-int v8, v8
.line 34
int-to-byte v8, v8
.line 35
const/16 v9, 0x30
.line 36
.line 37
shr-long v9, v0, v9
.line 38
.line 39
long-to-int v9, v9
.line 40
int-to-byte v9, v9
.line 41
const/16 v10, 0x38
.line 42
.line 43
shr-long/2addr v0, v10
.line 44
long-to-int v0, v0
.line 45
int-to-byte v0, v0
.line 46
new-array v1, v3, [B
.line 47
.line 48
const/4 v3, 0x0
.line 49
aput-byte v2, v1, v3
.line 50
.line 51
const/4 v2, 0x1
.line 52
aput-byte v4, v1, v2
.line 53
.line 54
const/4 v2, 0x2
.line 55
aput-byte v5, v1, v2
.line 56
.line 57
const/4 v2, 0x3
.line 58
aput-byte v6, v1, v2
.line 59
.line 60
const/4 v2, 0x4
.line 61
aput-byte v7, v1, v2
.line 62
.line 63
const/4 v2, 0x5
.line 64
aput-byte v8, v1, v2
.line 65
.line 66
const/4 v2, 0x6
.line 67
aput-byte v9, v1, v2
.line 68
.line 69
const/4 v2, 0x7
.line 70
aput-byte v0, v1, v2
.line 71
.line 72
return-object v1
.end method
.method public final b()I
.locals 2
.line 1
const-wide/16 v0, 0x0
long-to-int v0, v0
return v0
.end method
.method public final c()J
.locals 2
.line 1
const-wide/16 v0, 0x0
return-wide v0
.end method
.method public final d()I
.locals 1
.line 1
const/16 v0, 0x40
return v0
.end method
.method public final e(Lcom/google/common/hash/HashCode;)Z
.locals 4
.line 1
const-wide/16 v0, 0x0
.line 2
.line 3
invoke-virtual {p1}, Lcom/google/common/hash/HashCode;->c()J
.line 4
.line 5
.line 6
move-result-wide v2
.line 7
cmp-long p1, v0, v2
.line 8
.line 9
if-nez p1, :cond_0
.line 10
.line 11
const/4 p1, 0x1
.line 12
return p1
.line 13
:cond_0
const/4 p1, 0x0
.line 14
return p1
.end method