* 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>
525 lines
11 KiB
Smali
525 lines
11 KiB
Smali
.class public final Landroidx/lifecycle/SavedStateViewModelFactoryKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0002\n\u0000\u00a8\u0006\u0000"
|
|
}
|
|
d2 = {
|
|
"lifecycle-viewmodel-savedstate_release"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Ljava/util/List;
|
|
|
|
.field public static final b:Ljava/util/List;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
const/4 v0, 0x2
|
|
|
|
.line 2
|
|
new-array v0, v0, [Ljava/lang/Class;
|
|
|
|
.line 3
|
|
.line 4
|
|
const-class v1, Landroid/app/Application;
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v2, 0x0
|
|
|
|
.line 7
|
|
aput-object v1, v0, v2
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v1, 0x1
|
|
|
|
.line 10
|
|
const-class v2, Landroidx/lifecycle/SavedStateHandle;
|
|
|
|
.line 11
|
|
.line 12
|
|
aput-object v2, v0, v1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Lkotlin/collections/CollectionsKt;->listOf([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
sput-object v0, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->a:Ljava/util/List;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-static {v2}, Lkotlin/collections/CollectionsKt;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
sput-object v0, Landroidx/lifecycle/SavedStateViewModelFactoryKt;->b:Ljava/util/List;
|
|
|
|
.line 25
|
|
.line 26
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Ljava/lang/Class;Ljava/util/List;)Ljava/lang/reflect/Constructor;
|
|
.locals 6
|
|
|
|
.line 1
|
|
const-string v0, "modelClass"
|
|
|
|
.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-string v0, "signature"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0}, Ljava/lang/Class;->getConstructors()[Ljava/lang/reflect/Constructor;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
const-string v1, "modelClass.constructors"
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
array-length v1, v0
|
|
|
|
.line 21
|
|
const/4 v2, 0x0
|
|
|
|
.line 22
|
|
:goto_0
|
|
if-ge v2, v1, :cond_3
|
|
|
|
.line 23
|
|
.line 24
|
|
aget-object v3, v0, v2
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v3}, Ljava/lang/reflect/Constructor;->getParameterTypes()[Ljava/lang/Class;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object v4
|
|
|
|
.line 30
|
|
const-string v5, "constructor.parameterTypes"
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
invoke-static {v4}, Lkotlin/collections/ArraysKt;->toList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object v4
|
|
|
|
.line 39
|
|
invoke-static {p1, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result v5
|
|
|
|
.line 43
|
|
if-eqz v5, :cond_0
|
|
|
|
.line 44
|
|
.line 45
|
|
const-string p0, "null cannot be cast to non-null type java.lang.reflect.Constructor<T of androidx.lifecycle.SavedStateViewModelFactoryKt.findMatchingConstructor>"
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-static {v3, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
return-object v3
|
|
|
|
.line 51
|
|
:cond_0
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result v3
|
|
|
|
.line 55
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result v5
|
|
|
|
.line 59
|
|
if-ne v3, v5, :cond_2
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-interface {v4, p1}, Ljava/util/List;->containsAll(Ljava/util/Collection;)Z
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result v3
|
|
|
|
.line 65
|
|
if-nez v3, :cond_1
|
|
|
|
.line 66
|
|
.line 67
|
|
goto :goto_1
|
|
|
|
.line 68
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 69
|
|
.line 70
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 71
|
|
.line 72
|
|
const-string v2, "Class "
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {p0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object p0
|
|
|
|
.line 81
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
const-string p0, " must have parameters in the proper order: "
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
move-result-object p0
|
|
|
|
.line 96
|
|
invoke-direct {v0, p0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
throw v0
|
|
|
|
.line 100
|
|
:cond_2
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 101
|
|
.line 102
|
|
goto :goto_0
|
|
|
|
.line 103
|
|
:cond_3
|
|
const/4 p0, 0x0
|
|
|
|
.line 104
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final varargs b(Ljava/lang/Class;Ljava/lang/reflect/Constructor;[Ljava/lang/Object;)Landroidx/lifecycle/ViewModel;
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "modelClass"
|
|
|
|
.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-string v0, "constructor"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
const-string v0, "params"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
:try_start_0
|
|
array-length v0, p2
|
|
|
|
.line 17
|
|
invoke-static {p2, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p2
|
|
|
|
.line 21
|
|
invoke-virtual {p1, p2}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object p1
|
|
|
|
.line 25
|
|
check-cast p1, Landroidx/lifecycle/ViewModel;
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 26
|
|
.line 27
|
|
return-object p1
|
|
|
|
.line 28
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 29
|
|
goto :goto_0
|
|
|
|
.line 30
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 31
|
|
goto :goto_1
|
|
|
|
.line 32
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
.line 33
|
|
goto :goto_2
|
|
|
|
.line 34
|
|
:goto_0
|
|
new-instance p2, Ljava/lang/RuntimeException;
|
|
|
|
.line 35
|
|
.line 36
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 37
|
|
.line 38
|
|
const-string v1, "An exception happened in constructor of "
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result-object p0
|
|
|
|
.line 50
|
|
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object p1
|
|
|
|
.line 54
|
|
invoke-direct {p2, p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
throw p2
|
|
|
|
.line 58
|
|
:goto_1
|
|
new-instance p2, Ljava/lang/RuntimeException;
|
|
|
|
.line 59
|
|
.line 60
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 61
|
|
.line 62
|
|
const-string v1, "A "
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
const-string p0, " cannot be instantiated."
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
move-result-object p0
|
|
|
|
.line 79
|
|
invoke-direct {p2, p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
throw p2
|
|
|
|
.line 83
|
|
:goto_2
|
|
new-instance p2, Ljava/lang/RuntimeException;
|
|
|
|
.line 84
|
|
.line 85
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 86
|
|
.line 87
|
|
const-string v1, "Failed to access "
|
|
|
|
.line 88
|
|
.line 89
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 93
|
|
.line 94
|
|
.line 95
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
move-result-object p0
|
|
|
|
.line 99
|
|
invoke-direct {p2, p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
throw p2
|
|
.end method
|