soul-browser/app/smali_classes4/kotlin/io/path/ExceptionsCollector.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

449 lines
10 KiB
Smali

.class final Lkotlin/io/path/ExceptionsCollector;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0007\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0005\u0008\u0002\u0018\u00002\u00020\u0001B\u0011\u0012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0004\u0008\u0004\u0010\u0005J\u000e\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0011J\u000e\u0010\u0019\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u0011J\u0012\u0010\u001a\u001a\u00020\u00172\n\u0010\u001b\u001a\u00060\u000cj\u0002`\rR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001e\u0010\u0007\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0003@BX\u0086\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\tR\u001b\u0010\n\u001a\u000c\u0012\u0008\u0012\u00060\u000cj\u0002`\r0\u000b\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000e\u0010\u000fR\u001c\u0010\u0010\u001a\u0004\u0018\u00010\u0011X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0012\u0010\u0013\"\u0004\u0008\u0014\u0010\u0015\u00a8\u0006\u001c"
}
d2 = {
"Lkotlin/io/path/ExceptionsCollector;",
"",
"limit",
"",
"<init>",
"(I)V",
"value",
"totalExceptions",
"getTotalExceptions",
"()I",
"collectedExceptions",
"",
"Ljava/lang/Exception;",
"Lkotlin/Exception;",
"getCollectedExceptions",
"()Ljava/util/List;",
"path",
"Ljava/nio/file/Path;",
"getPath",
"()Ljava/nio/file/Path;",
"setPath",
"(Ljava/nio/file/Path;)V",
"enterEntry",
"",
"name",
"exitEntry",
"collect",
"exception",
"kotlin-stdlib-jdk7"
}
k = 0x1
mv = {
0x2,
0x2,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final collectedExceptions:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/Exception;",
">;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final limit:I
.field private path:Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end field
.field private totalExceptions:I
# direct methods
.method public constructor <init>()V
.locals 3
.line 1
const/4 v0, 0x1
const/4 v1, 0x0
const/4 v2, 0x0
invoke-direct {p0, v2, v0, v1}, Lkotlin/io/path/ExceptionsCollector;-><init>(IILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-void
.end method
.method public constructor <init>(I)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lkotlin/io/path/ExceptionsCollector;->limit:I
.line 3
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(IILkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
and-int/lit8 p2, p2, 0x1
if-eqz p2, :cond_0
const/16 p1, 0x40
.line 4
:cond_0
invoke-direct {p0, p1}, Lkotlin/io/path/ExceptionsCollector;-><init>(I)V
return-void
.end method
# virtual methods
.method public final collect(Ljava/lang/Exception;)V
.locals 2
.param p1 # Ljava/lang/Exception;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.line 1
const-string v0, "exception"
.line 2
.line 3
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
iget v0, p0, Lkotlin/io/path/ExceptionsCollector;->totalExceptions:I
.line 7
.line 8
add-int/lit8 v0, v0, 0x1
.line 9
.line 10
iput v0, p0, Lkotlin/io/path/ExceptionsCollector;->totalExceptions:I
.line 11
.line 12
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List;
.line 13
.line 14
invoke-interface {v0}, Ljava/util/List;->size()I
.line 15
.line 16
.line 17
move-result v0
.line 18
iget v1, p0, Lkotlin/io/path/ExceptionsCollector;->limit:I
.line 19
.line 20
if-ge v0, v1, :cond_1
.line 21
.line 22
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 23
.line 24
if-eqz v0, :cond_0
.line 25
.line 26
new-instance v0, Ljava/nio/file/FileSystemException;
.line 27
.line 28
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 29
.line 30
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
.line 31
.line 32
.line 33
move-result-object v0
.line 34
new-instance v1, Ljava/nio/file/FileSystemException;
.line 35
.line 36
invoke-direct {v1, v0}, Ljava/nio/file/FileSystemException;-><init>(Ljava/lang/String;)V
.line 37
.line 38
.line 39
invoke-virtual {v1, p1}, Ljava/nio/file/FileSystemException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
.line 40
.line 41
.line 42
move-result-object p1
.line 43
const-string v0, "null cannot be cast to non-null type java.nio.file.FileSystemException"
.line 44
.line 45
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 46
.line 47
.line 48
check-cast p1, Ljava/nio/file/FileSystemException;
.line 49
.line 50
:cond_0
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List;
.line 51
.line 52
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 53
.line 54
.line 55
:cond_1
return-void
.end method
.method public final enterEntry(Ljava/nio/file/Path;)V
.locals 1
.param p1 # Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.line 1
const-string v0, "name"
.line 2
.line 3
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 7
.line 8
if-eqz v0, :cond_0
.line 9
.line 10
invoke-interface {v0, p1}, Ljava/nio/file/Path;->resolve(Ljava/nio/file/Path;)Ljava/nio/file/Path;
.line 11
.line 12
.line 13
move-result-object p1
.line 14
goto :goto_0
.line 15
:cond_0
const/4 p1, 0x0
.line 16
:goto_0
iput-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 17
.line 18
return-void
.end method
.method public final exitEntry(Ljava/nio/file/Path;)V
.locals 2
.param p1 # Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.line 1
const-string v0, "name"
.line 2
.line 3
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 4
.line 5
.line 6
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 7
.line 8
const/4 v1, 0x0
.line 9
if-eqz v0, :cond_0
.line 10
.line 11
invoke-interface {v0}, Ljava/nio/file/Path;->getFileName()Ljava/nio/file/Path;
.line 12
.line 13
.line 14
move-result-object v0
.line 15
goto :goto_0
.line 16
:cond_0
move-object v0, v1
.line 17
:goto_0
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
.line 18
.line 19
.line 20
move-result p1
.line 21
if-eqz p1, :cond_2
.line 22
.line 23
iget-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 24
.line 25
if-eqz p1, :cond_1
.line 26
.line 27
invoke-interface {p1}, Ljava/nio/file/Path;->getParent()Ljava/nio/file/Path;
.line 28
.line 29
.line 30
move-result-object v1
.line 31
:cond_1
iput-object v1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 32
.line 33
return-void
.line 34
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
.line 35
.line 36
const-string v0, "Failed requirement."
.line 37
.line 38
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
.line 39
.line 40
.line 41
throw p1
.end method
.method public final getCollectedExceptions()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/Exception;",
">;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.line 1
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List;
.line 2
.line 3
return-object v0
.end method
.method public final getPath()Ljava/nio/file/Path;
.locals 1
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 2
.line 3
return-object v0
.end method
.method public final getTotalExceptions()I
.locals 1
.line 1
iget v0, p0, Lkotlin/io/path/ExceptionsCollector;->totalExceptions:I
.line 2
.line 3
return v0
.end method
.method public final setPath(Ljava/nio/file/Path;)V
.locals 0
.param p1 # Ljava/nio/file/Path;
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
.end param
.line 1
iput-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path;
.line 2
.line 3
return-void
.end method