* 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>
609 lines
13 KiB
Smali
609 lines
13 KiB
Smali
.class public final Lkotlin/collections/AbstractList$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lkotlin/collections/AbstractList;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0013\n\u0002\u0010\u001e\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0003\u0008\u0080\u0003\u0018\u00002\u00020\u0001B\t\u0008\u0002\u00a2\u0006\u0004\u0008\u0002\u0010\u0003J\u001d\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008\tJ\u001d\u0010\n\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008\u000bJ%\u0010\u000c\u001a\u00020\u00052\u0006\u0010\r\u001a\u00020\u00072\u0006\u0010\u000e\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008\u000fJ%\u0010\u0010\u001a\u00020\u00052\u0006\u0010\u0011\u001a\u00020\u00072\u0006\u0010\u0012\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008\u0013J\u001d\u0010\u0015\u001a\u00020\u00072\u0006\u0010\u0016\u001a\u00020\u00072\u0006\u0010\u0017\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008\u0018J\u0019\u0010\u0019\u001a\u00020\u00072\n\u0010\u001a\u001a\u0006\u0012\u0002\u0008\u00030\u001bH\u0000\u00a2\u0006\u0002\u0008\u001cJ%\u0010\u001d\u001a\u00020\u001e2\n\u0010\u001a\u001a\u0006\u0012\u0002\u0008\u00030\u001b2\n\u0010\u001f\u001a\u0006\u0012\u0002\u0008\u00030\u001bH\u0000\u00a2\u0006\u0002\u0008 R\u000e\u0010\u0014\u001a\u00020\u0007X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u0006!"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/collections/AbstractList$Companion;",
|
|
"",
|
|
"<init>",
|
|
"()V",
|
|
"checkElementIndex",
|
|
"",
|
|
"index",
|
|
"",
|
|
"size",
|
|
"checkElementIndex$kotlin_stdlib",
|
|
"checkPositionIndex",
|
|
"checkPositionIndex$kotlin_stdlib",
|
|
"checkRangeIndexes",
|
|
"fromIndex",
|
|
"toIndex",
|
|
"checkRangeIndexes$kotlin_stdlib",
|
|
"checkBoundsIndexes",
|
|
"startIndex",
|
|
"endIndex",
|
|
"checkBoundsIndexes$kotlin_stdlib",
|
|
"maxArraySize",
|
|
"newCapacity",
|
|
"oldCapacity",
|
|
"minCapacity",
|
|
"newCapacity$kotlin_stdlib",
|
|
"orderedHashCode",
|
|
"c",
|
|
"",
|
|
"orderedHashCode$kotlin_stdlib",
|
|
"orderedEquals",
|
|
"",
|
|
"other",
|
|
"orderedEquals$kotlin_stdlib",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lkotlin/collections/AbstractList$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final checkBoundsIndexes$kotlin_stdlib(III)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
const-string v0, "startIndex: "
|
|
|
|
.line 2
|
|
.line 3
|
|
if-ltz p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
if-gt p2, p3, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
if-gt p1, p2, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
|
|
.line 10
|
|
:cond_0
|
|
new-instance p3, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 11
|
|
.line 12
|
|
const-string v1, " > endIndex: "
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0, p1, p2, v1}, Landroidx/work/impl/workers/a;->s(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
invoke-direct {p3, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p3
|
|
|
|
.line 22
|
|
:cond_1
|
|
new-instance v1, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string v2, ", endIndex: "
|
|
|
|
.line 25
|
|
.line 26
|
|
const-string v3, ", size: "
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-static {v0, p1, p2, v2, v3}, Landroid/support/v4/media/a;->u(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object p1
|
|
|
|
.line 32
|
|
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object p1
|
|
|
|
.line 39
|
|
invoke-direct {v1, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final checkElementIndex$kotlin_stdlib(II)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
if-ge p1, p2, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "index: "
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v2, ", size: "
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-static {v1, p1, p2, v2}, Landroidx/work/impl/workers/a;->s(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
invoke-direct {v0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final checkPositionIndex$kotlin_stdlib(II)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
if-gt p1, p2, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
.line 7
|
|
.line 8
|
|
const-string v1, "index: "
|
|
|
|
.line 9
|
|
.line 10
|
|
const-string v2, ", size: "
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-static {v1, p1, p2, v2}, Landroidx/work/impl/workers/a;->s(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
invoke-direct {v0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final checkRangeIndexes$kotlin_stdlib(III)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
const-string v0, "fromIndex: "
|
|
|
|
.line 2
|
|
.line 3
|
|
if-ltz p1, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
if-gt p2, p3, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
if-gt p1, p2, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
|
|
.line 10
|
|
:cond_0
|
|
new-instance p3, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 11
|
|
.line 12
|
|
const-string v1, " > toIndex: "
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0, p1, p2, v1}, Landroidx/work/impl/workers/a;->s(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
invoke-direct {p3, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
throw p3
|
|
|
|
.line 22
|
|
:cond_1
|
|
new-instance v1, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string v2, ", toIndex: "
|
|
|
|
.line 25
|
|
.line 26
|
|
const-string v3, ", size: "
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-static {v0, p1, p2, v2, v3}, Landroid/support/v4/media/a;->u(Ljava/lang/String;IILjava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object p1
|
|
|
|
.line 32
|
|
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object p1
|
|
|
|
.line 39
|
|
invoke-direct {v1, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final newCapacity$kotlin_stdlib(II)I
|
|
.locals 2
|
|
|
|
shr-int/lit8 v0, p1, 0x1
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
sub-int v0, p1, p2
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
move p1, p2
|
|
|
|
:cond_0
|
|
const v0, 0x7ffffff7
|
|
|
|
sub-int v1, p1, v0
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
if-le p2, v0, :cond_1
|
|
|
|
const p1, 0x7fffffff
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
return v0
|
|
|
|
:cond_2
|
|
return p1
|
|
.end method
|
|
|
|
.method public final orderedEquals$kotlin_stdlib(Ljava/util/Collection;Ljava/util/Collection;)Z
|
|
.locals 3
|
|
.param p1 # Ljava/util/Collection;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/util/Collection;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"*>;",
|
|
"Ljava/util/Collection<",
|
|
"*>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "c"
|
|
|
|
.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
|
|
const-string v0, "other"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-interface {p1}, Ljava/util/Collection;->size()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
invoke-interface {p2}, Ljava/util/Collection;->size()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v1
|
|
|
|
.line 19
|
|
const/4 v2, 0x0
|
|
|
|
.line 20
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
return v2
|
|
|
|
.line 23
|
|
:cond_0
|
|
invoke-interface {p2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object p2
|
|
|
|
.line 27
|
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object p1
|
|
|
|
.line 31
|
|
:cond_1
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result v0
|
|
|
|
.line 35
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v0
|
|
|
|
.line 41
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object v1
|
|
|
|
.line 45
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result v0
|
|
|
|
.line 49
|
|
if-nez v0, :cond_1
|
|
|
|
.line 50
|
|
.line 51
|
|
return v2
|
|
|
|
.line 52
|
|
:cond_2
|
|
const/4 p1, 0x1
|
|
|
|
.line 53
|
|
return p1
|
|
.end method
|
|
|
|
.method public final orderedHashCode$kotlin_stdlib(Ljava/util/Collection;)I
|
|
.locals 2
|
|
.param p1 # Ljava/util/Collection;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"*>;)I"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "c"
|
|
|
|
.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
|
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
const/4 v0, 0x1
|
|
|
|
.line 11
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v1
|
|
|
|
.line 15
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object v1
|
|
|
|
.line 21
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
.line 22
|
|
.line 23
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v1
|
|
|
|
.line 29
|
|
goto :goto_1
|
|
|
|
.line 30
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 31
|
|
:goto_1
|
|
add-int/2addr v0, v1
|
|
|
|
.line 32
|
|
goto :goto_0
|
|
|
|
.line 33
|
|
:cond_1
|
|
return v0
|
|
.end method
|