soul-browser/app/smali_classes4/okio/internal/d.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

353 lines
7.2 KiB
Smali

.class public final synthetic Lokio/internal/d;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# instance fields
.field public final synthetic c:Lkotlin/jvm/internal/Ref$BooleanRef;
.field public final synthetic f:J
.field public final synthetic g:Lkotlin/jvm/internal/Ref$LongRef;
.field public final synthetic h:Lokio/RealBufferedSource;
.field public final synthetic i:Lkotlin/jvm/internal/Ref$LongRef;
.field public final synthetic j:Lkotlin/jvm/internal/Ref$LongRef;
.field public final synthetic k:Lkotlin/jvm/internal/Ref$ObjectRef;
.field public final synthetic l:Lkotlin/jvm/internal/Ref$ObjectRef;
.field public final synthetic m:Lkotlin/jvm/internal/Ref$ObjectRef;
# direct methods
.method public synthetic constructor <init>(Lkotlin/jvm/internal/Ref$BooleanRef;JLkotlin/jvm/internal/Ref$LongRef;Lokio/RealBufferedSource;Lkotlin/jvm/internal/Ref$LongRef;Lkotlin/jvm/internal/Ref$LongRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokio/internal/d;->c:Lkotlin/jvm/internal/Ref$BooleanRef;
iput-wide p2, p0, Lokio/internal/d;->f:J
iput-object p4, p0, Lokio/internal/d;->g:Lkotlin/jvm/internal/Ref$LongRef;
iput-object p5, p0, Lokio/internal/d;->h:Lokio/RealBufferedSource;
iput-object p6, p0, Lokio/internal/d;->i:Lkotlin/jvm/internal/Ref$LongRef;
iput-object p7, p0, Lokio/internal/d;->j:Lkotlin/jvm/internal/Ref$LongRef;
iput-object p8, p0, Lokio/internal/d;->k:Lkotlin/jvm/internal/Ref$ObjectRef;
iput-object p9, p0, Lokio/internal/d;->l:Lkotlin/jvm/internal/Ref$ObjectRef;
iput-object p10, p0, Lokio/internal/d;->m:Lkotlin/jvm/internal/Ref$ObjectRef;
return-void
.end method
# virtual methods
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 6
.line 1
check-cast p1, Ljava/lang/Integer;
.line 2
.line 3
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
.line 4
.line 5
.line 6
move-result p1
.line 7
check-cast p2, Ljava/lang/Long;
.line 8
.line 9
invoke-virtual {p2}, Ljava/lang/Long;->longValue()J
.line 10
.line 11
.line 12
move-result-wide v0
.line 13
iget-object p2, p0, Lokio/internal/d;->h:Lokio/RealBufferedSource;
.line 14
.line 15
const/4 v2, 0x1
.line 16
if-eq p1, v2, :cond_2
.line 17
.line 18
const/16 v2, 0xa
.line 19
.line 20
if-eq p1, v2, :cond_0
.line 21
.line 22
goto :goto_1
.line 23
:cond_0
const-wide/16 v2, 0x4
.line 24
.line 25
cmp-long p1, v0, v2
.line 26
.line 27
if-ltz p1, :cond_1
.line 28
.line 29
invoke-virtual {p2, v2, v3}, Lokio/RealBufferedSource;->skip(J)V
.line 30
.line 31
.line 32
sub-long/2addr v0, v2
.line 33
long-to-int p1, v0
.line 34
new-instance v0, Lokio/internal/c;
.line 35
.line 36
iget-object v1, p0, Lokio/internal/d;->k:Lkotlin/jvm/internal/Ref$ObjectRef;
.line 37
.line 38
iget-object v2, p0, Lokio/internal/d;->l:Lkotlin/jvm/internal/Ref$ObjectRef;
.line 39
.line 40
iget-object v3, p0, Lokio/internal/d;->m:Lkotlin/jvm/internal/Ref$ObjectRef;
.line 41
.line 42
invoke-direct {v0, v1, p2, v2, v3}, Lokio/internal/c;-><init>(Lkotlin/jvm/internal/Ref$ObjectRef;Lokio/RealBufferedSource;Lkotlin/jvm/internal/Ref$ObjectRef;Lkotlin/jvm/internal/Ref$ObjectRef;)V
.line 43
.line 44
.line 45
invoke-static {p2, p1, v0}, Lokio/internal/ZipFilesKt;->d(Lokio/BufferedSource;ILkotlin/jvm/functions/Function2;)V
.line 46
.line 47
.line 48
goto :goto_1
.line 49
:cond_1
new-instance p1, Ljava/io/IOException;
.line 50
.line 51
const-string p2, "bad zip: NTFS extra too short"
.line 52
.line 53
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 54
.line 55
.line 56
throw p1
.line 57
:cond_2
iget-object p1, p0, Lokio/internal/d;->c:Lkotlin/jvm/internal/Ref$BooleanRef;
.line 58
.line 59
iget-boolean v3, p1, Lkotlin/jvm/internal/Ref$BooleanRef;->element:Z
.line 60
.line 61
if-nez v3, :cond_7
.line 62
.line 63
iput-boolean v2, p1, Lkotlin/jvm/internal/Ref$BooleanRef;->element:Z
.line 64
.line 65
iget-wide v2, p0, Lokio/internal/d;->f:J
.line 66
.line 67
cmp-long p1, v0, v2
.line 68
.line 69
if-ltz p1, :cond_6
.line 70
.line 71
iget-object p1, p0, Lokio/internal/d;->g:Lkotlin/jvm/internal/Ref$LongRef;
.line 72
.line 73
iget-wide v0, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
.line 74
.line 75
const-wide v2, 0xffffffffL
.line 76
.line 77
.line 78
.line 79
.line 80
cmp-long v4, v0, v2
.line 81
.line 82
if-nez v4, :cond_3
.line 83
.line 84
invoke-virtual {p2}, Lokio/RealBufferedSource;->b()J
.line 85
.line 86
.line 87
move-result-wide v0
.line 88
:cond_3
iput-wide v0, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
.line 89
.line 90
iget-object p1, p0, Lokio/internal/d;->i:Lkotlin/jvm/internal/Ref$LongRef;
.line 91
.line 92
iget-wide v0, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
.line 93
.line 94
cmp-long v0, v0, v2
.line 95
.line 96
const-wide/16 v4, 0x0
.line 97
.line 98
if-nez v0, :cond_4
.line 99
.line 100
invoke-virtual {p2}, Lokio/RealBufferedSource;->b()J
.line 101
.line 102
.line 103
move-result-wide v0
.line 104
goto :goto_0
.line 105
:cond_4
move-wide v0, v4
.line 106
:goto_0
iput-wide v0, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
.line 107
.line 108
iget-object p1, p0, Lokio/internal/d;->j:Lkotlin/jvm/internal/Ref$LongRef;
.line 109
.line 110
iget-wide v0, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
.line 111
.line 112
cmp-long v0, v0, v2
.line 113
.line 114
if-nez v0, :cond_5
.line 115
.line 116
invoke-virtual {p2}, Lokio/RealBufferedSource;->b()J
.line 117
.line 118
.line 119
move-result-wide v4
.line 120
:cond_5
iput-wide v4, p1, Lkotlin/jvm/internal/Ref$LongRef;->element:J
.line 121
.line 122
:goto_1
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
.line 123
.line 124
return-object p1
.line 125
:cond_6
new-instance p1, Ljava/io/IOException;
.line 126
.line 127
const-string p2, "bad zip: zip64 extra too short"
.line 128
.line 129
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 130
.line 131
.line 132
throw p1
.line 133
:cond_7
new-instance p1, Ljava/io/IOException;
.line 134
.line 135
const-string p2, "bad zip: zip64 extra repeated"
.line 136
.line 137
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
.line 138
.line 139
.line 140
throw p1
.end method