* 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>
438 lines
10 KiB
Smali
438 lines
10 KiB
Smali
.class public final Lkotlin/sequences/SubSequence;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/sequences/Sequence;
|
|
.implements Lkotlin/sequences/DropTakeSequence;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;",
|
|
"Lkotlin/sequences/DropTakeSequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\n\n\u0002\u0010(\n\u0000\u0008\u0000\u0018\u0000*\u0004\u0008\u0000\u0010\u00012\u0008\u0012\u0004\u0012\u0002H\u00010\u00022\u0008\u0012\u0004\u0012\u0002H\u00010\u0003B%\u0012\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0002\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u00a2\u0006\u0004\u0008\u0008\u0010\tJ\u0016\u0010\r\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u0006\u0010\u000e\u001a\u00020\u0006H\u0016J\u0016\u0010\u000f\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u00022\u0006\u0010\u000e\u001a\u00020\u0006H\u0016J\u000f\u0010\u0010\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0011H\u0096\u0002R\u0014\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0002X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\n\u001a\u00020\u00068BX\u0082\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u000b\u0010\u000c\u00a8\u0006\u0012"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/sequences/SubSequence;",
|
|
"T",
|
|
"Lkotlin/sequences/Sequence;",
|
|
"Lkotlin/sequences/DropTakeSequence;",
|
|
"sequence",
|
|
"startIndex",
|
|
"",
|
|
"endIndex",
|
|
"<init>",
|
|
"(Lkotlin/sequences/Sequence;II)V",
|
|
"count",
|
|
"getCount",
|
|
"()I",
|
|
"drop",
|
|
"n",
|
|
"take",
|
|
"iterator",
|
|
"",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nSequences.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Sequences.kt\nkotlin/sequences/SubSequence\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,731:1\n1#2:732\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final endIndex:I
|
|
|
|
.field private final sequence:Lkotlin/sequences/Sequence;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final startIndex:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/sequences/Sequence;II)V
|
|
.locals 1
|
|
.param p1 # Lkotlin/sequences/Sequence;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"+TT;>;II)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "sequence"
|
|
|
|
.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-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iput-object p1, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence;
|
|
|
|
.line 10
|
|
.line 11
|
|
iput p2, p0, Lkotlin/sequences/SubSequence;->startIndex:I
|
|
|
|
.line 12
|
|
.line 13
|
|
iput p3, p0, Lkotlin/sequences/SubSequence;->endIndex:I
|
|
|
|
.line 14
|
|
.line 15
|
|
if-ltz p2, :cond_2
|
|
|
|
.line 16
|
|
.line 17
|
|
if-ltz p3, :cond_1
|
|
|
|
.line 18
|
|
.line 19
|
|
if-lt p3, p2, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
return-void
|
|
|
|
.line 22
|
|
:cond_0
|
|
const-string p1, "endIndex should be not less than startIndex, but was "
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string v0, " < "
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {p1, p3, p2, v0}, Landroidx/work/impl/workers/a;->s(Ljava/lang/String;IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p1
|
|
|
|
.line 30
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object p1
|
|
|
|
.line 36
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
throw p2
|
|
|
|
.line 40
|
|
:cond_1
|
|
const-string p1, "endIndex should be non-negative, but is "
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-static {p3, p1}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result-object p1
|
|
|
|
.line 46
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object p1
|
|
|
|
.line 52
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
throw p2
|
|
|
|
.line 56
|
|
:cond_2
|
|
const-string p1, "startIndex should be non-negative, but is "
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-static {p2, p1}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object p1
|
|
|
|
.line 62
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result-object p1
|
|
|
|
.line 68
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
throw p2
|
|
.end method
|
|
|
|
.method public static final synthetic access$getEndIndex$p(Lkotlin/sequences/SubSequence;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p0, p0, Lkotlin/sequences/SubSequence;->endIndex:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getSequence$p(Lkotlin/sequences/SubSequence;)Lkotlin/sequences/Sequence;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p0, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getStartIndex$p(Lkotlin/sequences/SubSequence;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget p0, p0, Lkotlin/sequences/SubSequence;->startIndex:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return p0
|
|
.end method
|
|
|
|
.method private final getCount()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget v0, p0, Lkotlin/sequences/SubSequence;->endIndex:I
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v1, p0, Lkotlin/sequences/SubSequence;->startIndex:I
|
|
|
|
.line 4
|
|
.line 5
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 6
|
|
return v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public drop(I)Lkotlin/sequences/Sequence;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lkotlin/sequences/SubSequence;->getCount()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {}, Lkotlin/sequences/SequencesKt__SequencesKt;->emptySequence()Lkotlin/sequences/Sequence;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
return-object p1
|
|
|
|
.line 12
|
|
:cond_0
|
|
new-instance v0, Lkotlin/sequences/SubSequence;
|
|
|
|
.line 13
|
|
.line 14
|
|
iget-object v1, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence;
|
|
|
|
.line 15
|
|
.line 16
|
|
iget v2, p0, Lkotlin/sequences/SubSequence;->startIndex:I
|
|
|
|
.line 17
|
|
.line 18
|
|
add-int/2addr v2, p1
|
|
|
|
.line 19
|
|
iget p1, p0, Lkotlin/sequences/SubSequence;->endIndex:I
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v0, v1, v2, p1}, Lkotlin/sequences/SubSequence;-><init>(Lkotlin/sequences/Sequence;II)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public iterator()Ljava/util/Iterator;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/sequences/SubSequence$iterator$1;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lkotlin/sequences/SubSequence$iterator$1;-><init>(Lkotlin/sequences/SubSequence;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public take(I)Lkotlin/sequences/Sequence;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lkotlin/sequences/Sequence<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lkotlin/sequences/SubSequence;->getCount()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object p0
|
|
|
|
.line 8
|
|
:cond_0
|
|
new-instance v0, Lkotlin/sequences/SubSequence;
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v1, p0, Lkotlin/sequences/SubSequence;->sequence:Lkotlin/sequences/Sequence;
|
|
|
|
.line 11
|
|
.line 12
|
|
iget v2, p0, Lkotlin/sequences/SubSequence;->startIndex:I
|
|
|
|
.line 13
|
|
.line 14
|
|
add-int/2addr p1, v2
|
|
|
|
.line 15
|
|
invoke-direct {v0, v1, v2, p1}, Lkotlin/sequences/SubSequence;-><init>(Lkotlin/sequences/Sequence;II)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-object v0
|
|
.end method
|