* 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>
301 lines
6.7 KiB
Smali
301 lines
6.7 KiB
Smali
.class final synthetic Lcom/google/firebase/components/ComponentDiscovery$$Lambda$1;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/firebase/inject/Provider;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/firebase/components/ComponentDiscovery$$Lambda$1;->a:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final get()Ljava/lang/Object;
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/firebase/components/ComponentDiscovery$$Lambda$1;->a:Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "."
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string v2, "Could not instantiate "
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v3, " is not an instance of com.google.firebase.components.ComponentRegistrar"
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v4, "Class "
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v5, 0x0
|
|
|
|
.line 12
|
|
:try_start_0
|
|
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v6
|
|
|
|
.line 16
|
|
const-class v7, Lcom/google/firebase/components/ComponentRegistrar;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v7, v6}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v7
|
|
|
|
.line 22
|
|
if-eqz v7, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v6, v5}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object v3
|
|
|
|
.line 28
|
|
invoke-virtual {v3, v5}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v3
|
|
|
|
.line 32
|
|
check-cast v3, Lcom/google/firebase/components/ComponentRegistrar;
|
|
|
|
.line 33
|
|
.line 34
|
|
return-object v3
|
|
|
|
.line 35
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.line 36
|
|
goto :goto_0
|
|
|
|
.line 37
|
|
:catch_1
|
|
move-exception v1
|
|
|
|
.line 38
|
|
goto :goto_1
|
|
|
|
.line 39
|
|
:catch_2
|
|
move-exception v3
|
|
|
|
.line 40
|
|
goto :goto_2
|
|
|
|
.line 41
|
|
:catch_3
|
|
move-exception v3
|
|
|
|
.line 42
|
|
goto :goto_3
|
|
|
|
.line 43
|
|
:cond_0
|
|
new-instance v6, Lcom/google/firebase/components/InvalidRegistrarException;
|
|
|
|
.line 44
|
|
.line 45
|
|
new-instance v7, Ljava/lang/StringBuilder;
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-direct {v7, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v3
|
|
|
|
.line 60
|
|
invoke-direct {v6, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
throw v6
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_4
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 64
|
|
:goto_0
|
|
new-instance v3, Lcom/google/firebase/components/InvalidRegistrarException;
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-static {v2, v0}, Landroid/support/v4/media/a;->C(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v0
|
|
|
|
.line 70
|
|
invoke-direct {v3, v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
throw v3
|
|
|
|
.line 74
|
|
:goto_1
|
|
new-instance v3, Lcom/google/firebase/components/InvalidRegistrarException;
|
|
|
|
.line 75
|
|
.line 76
|
|
invoke-static {v2, v0}, Landroid/support/v4/media/a;->C(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result-object v0
|
|
|
|
.line 80
|
|
invoke-direct {v3, v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
throw v3
|
|
|
|
.line 84
|
|
:goto_2
|
|
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-static {v2, v0, v1}, Landroid/support/v4/media/a;->l(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-result-object v0
|
|
|
|
.line 90
|
|
invoke-direct {v4, v0, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
throw v4
|
|
|
|
.line 94
|
|
:goto_3
|
|
new-instance v4, Lcom/google/firebase/components/InvalidRegistrarException;
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-static {v2, v0, v1}, Landroid/support/v4/media/a;->l(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-object v0
|
|
|
|
.line 100
|
|
invoke-direct {v4, v0, v3}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
throw v4
|
|
|
|
.line 104
|
|
:catch_4
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 105
|
|
.line 106
|
|
invoke-direct {v1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 107
|
|
.line 108
|
|
.line 109
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
const-string v0, " is not an found."
|
|
|
|
.line 113
|
|
.line 114
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 115
|
|
.line 116
|
|
.line 117
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 118
|
|
.line 119
|
|
.line 120
|
|
move-result-object v0
|
|
|
|
.line 121
|
|
const-string v1, "ComponentDiscovery"
|
|
|
|
.line 122
|
|
.line 123
|
|
invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
return-object v5
|
|
.end method
|