* 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>
430 lines
10 KiB
Smali
430 lines
10 KiB
Smali
.class public Lkotlin/jvm/internal/ReflectionFactory;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static final KOTLIN_JVM_FUNCTIONS:Ljava/lang/String; = "kotlin.jvm.functions."
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/jvm/internal/ClassReference;
|
|
|
|
invoke-direct {v0, p1}, Lkotlin/jvm/internal/ClassReference;-><init>(Ljava/lang/Class;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public createKotlinClass(Ljava/lang/Class;Ljava/lang/String;)Lkotlin/reflect/KClass;
|
|
.locals 0
|
|
|
|
.line 2
|
|
new-instance p2, Lkotlin/jvm/internal/ClassReference;
|
|
|
|
invoke-direct {p2, p1}, Lkotlin/jvm/internal/ClassReference;-><init>(Ljava/lang/Class;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public function(Lkotlin/jvm/internal/FunctionReference;)Lkotlin/reflect/KFunction;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/jvm/internal/ClassReference;
|
|
|
|
invoke-direct {v0, p1}, Lkotlin/jvm/internal/ClassReference;-><init>(Ljava/lang/Class;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getOrCreateKotlinClass(Ljava/lang/Class;Ljava/lang/String;)Lkotlin/reflect/KClass;
|
|
.locals 0
|
|
|
|
.line 2
|
|
new-instance p2, Lkotlin/jvm/internal/ClassReference;
|
|
|
|
invoke-direct {p2, p1}, Lkotlin/jvm/internal/ClassReference;-><init>(Ljava/lang/Class;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method public getOrCreateKotlinPackage(Ljava/lang/Class;Ljava/lang/String;)Lkotlin/reflect/KDeclarationContainer;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/jvm/internal/PackageReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1, p2}, Lkotlin/jvm/internal/PackageReference;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public mutableCollectionType(Lkotlin/reflect/KType;)Lkotlin/reflect/KType;
|
|
.locals 4
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.6"
|
|
.end annotation
|
|
|
|
.line 1
|
|
move-object v0, p1
|
|
|
|
.line 2
|
|
check-cast v0, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 3
|
|
.line 4
|
|
new-instance v1, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p1}, Lkotlin/reflect/KType;->getClassifier()Lkotlin/reflect/KClassifier;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v2
|
|
|
|
.line 10
|
|
invoke-interface {p1}, Lkotlin/reflect/KType;->getArguments()Ljava/util/List;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
invoke-virtual {v0}, Lkotlin/jvm/internal/TypeReference;->getPlatformTypeUpperBound$kotlin_stdlib()Lkotlin/reflect/KType;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v3
|
|
|
|
.line 18
|
|
invoke-virtual {v0}, Lkotlin/jvm/internal/TypeReference;->getFlags$kotlin_stdlib()I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
or-int/lit8 v0, v0, 0x2
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-direct {v1, v2, p1, v3, v0}, Lkotlin/jvm/internal/TypeReference;-><init>(Lkotlin/reflect/KClassifier;Ljava/util/List;Lkotlin/reflect/KType;I)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public mutableProperty0(Lkotlin/jvm/internal/MutablePropertyReference0;)Lkotlin/reflect/KMutableProperty0;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public mutableProperty1(Lkotlin/jvm/internal/MutablePropertyReference1;)Lkotlin/reflect/KMutableProperty1;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public mutableProperty2(Lkotlin/jvm/internal/MutablePropertyReference2;)Lkotlin/reflect/KMutableProperty2;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public nothingType(Lkotlin/reflect/KType;)Lkotlin/reflect/KType;
|
|
.locals 4
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.6"
|
|
.end annotation
|
|
|
|
.line 1
|
|
move-object v0, p1
|
|
|
|
.line 2
|
|
check-cast v0, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 3
|
|
.line 4
|
|
new-instance v1, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p1}, Lkotlin/reflect/KType;->getClassifier()Lkotlin/reflect/KClassifier;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v2
|
|
|
|
.line 10
|
|
invoke-interface {p1}, Lkotlin/reflect/KType;->getArguments()Ljava/util/List;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
invoke-virtual {v0}, Lkotlin/jvm/internal/TypeReference;->getPlatformTypeUpperBound$kotlin_stdlib()Lkotlin/reflect/KType;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v3
|
|
|
|
.line 18
|
|
invoke-virtual {v0}, Lkotlin/jvm/internal/TypeReference;->getFlags$kotlin_stdlib()I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
or-int/lit8 v0, v0, 0x4
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-direct {v1, v2, p1, v3, v0}, Lkotlin/jvm/internal/TypeReference;-><init>(Lkotlin/reflect/KClassifier;Ljava/util/List;Lkotlin/reflect/KType;I)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public platformType(Lkotlin/reflect/KType;Lkotlin/reflect/KType;)Lkotlin/reflect/KType;
|
|
.locals 3
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.6"
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {p1}, Lkotlin/reflect/KType;->getClassifier()Lkotlin/reflect/KClassifier;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
invoke-interface {p1}, Lkotlin/reflect/KType;->getArguments()Ljava/util/List;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v2
|
|
|
|
.line 11
|
|
check-cast p1, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p1}, Lkotlin/jvm/internal/TypeReference;->getFlags$kotlin_stdlib()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result p1
|
|
|
|
.line 17
|
|
invoke-direct {v0, v1, v2, p2, p1}, Lkotlin/jvm/internal/TypeReference;-><init>(Lkotlin/reflect/KClassifier;Ljava/util/List;Lkotlin/reflect/KType;I)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public property0(Lkotlin/jvm/internal/PropertyReference0;)Lkotlin/reflect/KProperty0;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public property1(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/reflect/KProperty1;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public property2(Lkotlin/jvm/internal/PropertyReference2;)Lkotlin/reflect/KProperty2;
|
|
.locals 0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public renderLambdaToString(Lkotlin/jvm/internal/FunctionBase;)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.3"
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getGenericInterfaces()[Ljava/lang/reflect/Type;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
const-string v0, "kotlin.jvm.functions."
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/16 v0, 0x15
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public renderLambdaToString(Lkotlin/jvm/internal/Lambda;)Ljava/lang/String;
|
|
.locals 0
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.1"
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lkotlin/jvm/internal/ReflectionFactory;->renderLambdaToString(Lkotlin/jvm/internal/FunctionBase;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setUpperBounds(Lkotlin/reflect/KTypeParameter;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/reflect/KTypeParameter;",
|
|
"Ljava/util/List<",
|
|
"Lkotlin/reflect/KType;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.4"
|
|
.end annotation
|
|
|
|
.line 1
|
|
check-cast p1, Lkotlin/jvm/internal/TypeParameterReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1, p2}, Lkotlin/jvm/internal/TypeParameterReference;->setUpperBounds(Ljava/util/List;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public typeOf(Lkotlin/reflect/KClassifier;Ljava/util/List;Z)Lkotlin/reflect/KType;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/reflect/KClassifier;",
|
|
"Ljava/util/List<",
|
|
"Lkotlin/reflect/KTypeProjection;",
|
|
">;Z)",
|
|
"Lkotlin/reflect/KType;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.4"
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/jvm/internal/TypeReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1, p2, p3}, Lkotlin/jvm/internal/TypeReference;-><init>(Lkotlin/reflect/KClassifier;Ljava/util/List;Z)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public typeParameter(Ljava/lang/Object;Ljava/lang/String;Lkotlin/reflect/KVariance;Z)Lkotlin/reflect/KTypeParameter;
|
|
.locals 1
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.4"
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lkotlin/jvm/internal/TypeParameterReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1, p2, p3, p4}, Lkotlin/jvm/internal/TypeParameterReference;-><init>(Ljava/lang/Object;Ljava/lang/String;Lkotlin/reflect/KVariance;Z)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|