* 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>
445 lines
10 KiB
Smali
445 lines
10 KiB
Smali
.class Lkotlin/collections/CollectionsKt__IterablesKt;
|
|
.super Lkotlin/collections/CollectionsKt__CollectionsKt;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000*\n\u0000\n\u0002\u0010\u001c\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0010(\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0004\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a.\u0010\u0000\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\u0008\u0000\u0010\u00022\u0014\u0008\u0004\u0010\u0003\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u0002H\u00020\u00050\u0004H\u0087\u0008\u00f8\u0001\u0000\u001a\u001f\u0010\u0006\u001a\u0004\u0018\u00010\u0007\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u0001H\u0001\u00a2\u0006\u0002\u0010\u0008\u001a \u0010\t\u001a\u00020\u0007\"\u0004\u0008\u0000\u0010\u0002*\u0008\u0012\u0004\u0012\u0002H\u00020\u00012\u0006\u0010\n\u001a\u00020\u0007H\u0001\u001a\"\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u0002H\u00020\u000c\"\u0004\u0008\u0000\u0010\u0002*\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u0002H\u00020\u00010\u0001\u001a@\u0010\r\u001a\u001a\u0012\n\u0012\u0008\u0012\u0004\u0012\u0002H\u00020\u000c\u0012\n\u0012\u0008\u0012\u0004\u0012\u0002H\u000f0\u000c0\u000e\"\u0004\u0008\u0000\u0010\u0002\"\u0004\u0008\u0001\u0010\u000f*\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u000f0\u000e0\u0001\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006\u0010"
|
|
}
|
|
d2 = {
|
|
"Iterable",
|
|
"",
|
|
"T",
|
|
"iterator",
|
|
"Lkotlin/Function0;",
|
|
"",
|
|
"collectionSizeOrNull",
|
|
"",
|
|
"(Ljava/lang/Iterable;)Ljava/lang/Integer;",
|
|
"collectionSizeOrDefault",
|
|
"default",
|
|
"flatten",
|
|
"",
|
|
"unzip",
|
|
"Lkotlin/Pair;",
|
|
"R",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x5
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x31
|
|
xs = "kotlin/collections/CollectionsKt"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlin/collections/CollectionsKt__CollectionsKt;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static final Iterable(Lkotlin/jvm/functions/Function0;)Ljava/lang/Iterable;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"+",
|
|
"Ljava/util/Iterator<",
|
|
"+TT;>;>;)",
|
|
"Ljava/lang/Iterable<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/internal/InlineOnly;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "iterator"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Lkotlin/collections/CollectionsKt__IterablesKt$Iterable$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0, p0}, Lkotlin/collections/CollectionsKt__IterablesKt$Iterable$1;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
.locals 1
|
|
.param p0 # Ljava/lang/Iterable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Iterable<",
|
|
"+TT;>;I)I"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result p0
|
|
|
|
.line 16
|
|
return p0
|
|
|
|
.line 17
|
|
:cond_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public static final collectionSizeOrNull(Ljava/lang/Iterable;)Ljava/lang/Integer;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/Iterable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Iterable<",
|
|
"+TT;>;)",
|
|
"Ljava/lang/Integer;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/PublishedApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result p0
|
|
|
|
.line 16
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p0
|
|
|
|
.line 20
|
|
return-object p0
|
|
|
|
.line 21
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 22
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static flatten(Ljava/lang/Iterable;)Ljava/util/List;
|
|
.locals 2
|
|
.param p0 # Ljava/lang/Iterable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Iterable<",
|
|
"+",
|
|
"Ljava/lang/Iterable<",
|
|
"+TT;>;>;)",
|
|
"Ljava/util/List<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p0
|
|
|
|
.line 15
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v1
|
|
|
|
.line 19
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v1
|
|
|
|
.line 25
|
|
check-cast v1, Ljava/lang/Iterable;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-static {v0, v1}, Lkotlin/collections/CollectionsKt__MutableCollectionsKt;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
goto :goto_0
|
|
|
|
.line 31
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final unzip(Ljava/lang/Iterable;)Lkotlin/Pair;
|
|
.locals 4
|
|
.param p0 # Ljava/lang/Iterable;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/lang/Iterable<",
|
|
"+",
|
|
"Lkotlin/Pair<",
|
|
"+TT;+TR;>;>;)",
|
|
"Lkotlin/Pair<",
|
|
"Ljava/util/List<",
|
|
"TT;>;",
|
|
"Ljava/util/List<",
|
|
"TR;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/16 v0, 0xa
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p0, v0}, Lkotlin/collections/CollectionsKt__IterablesKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-direct {v2, v0}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p0
|
|
|
|
.line 26
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result v0
|
|
|
|
.line 30
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object v0
|
|
|
|
.line 36
|
|
check-cast v0, Lkotlin/Pair;
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v0}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result-object v3
|
|
|
|
.line 42
|
|
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v0}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result-object v0
|
|
|
|
.line 49
|
|
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
goto :goto_0
|
|
|
|
.line 53
|
|
:cond_0
|
|
invoke-static {v1, v2}, Lkotlin/TuplesKt;->to(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object p0
|
|
|
|
.line 57
|
|
return-object p0
|
|
.end method
|