* 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>
329 lines
8.9 KiB
Smali
329 lines
8.9 KiB
Smali
.class public final Landroidx/lifecycle/ProcessLifecycleOwner$attach$1;
|
|
.super Landroidx/lifecycle/EmptyActivityLifecycleCallbacks;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u001a\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0007\u0008\n\u0018\u00002\u00020\u0001J!\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0008\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0017\u00a2\u0006\u0004\u0008\u0007\u0010\u0008J!\u0010\t\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0008\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016\u00a2\u0006\u0004\u0008\t\u0010\u0008J\u0017\u0010\n\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0002H\u0016\u00a2\u0006\u0004\u0008\n\u0010\u000bJ\u0017\u0010\u000c\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0002H\u0016\u00a2\u0006\u0004\u0008\u000c\u0010\u000b\u00a8\u0006\r"
|
|
}
|
|
d2 = {
|
|
"androidx/lifecycle/ProcessLifecycleOwner$attach$1",
|
|
"Landroidx/lifecycle/EmptyActivityLifecycleCallbacks;",
|
|
"Landroid/app/Activity;",
|
|
"activity",
|
|
"Landroid/os/Bundle;",
|
|
"savedInstanceState",
|
|
"",
|
|
"onActivityPreCreated",
|
|
"(Landroid/app/Activity;Landroid/os/Bundle;)V",
|
|
"onActivityCreated",
|
|
"onActivityPaused",
|
|
"(Landroid/app/Activity;)V",
|
|
"onActivityStopped",
|
|
"lifecycle-process_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Landroidx/lifecycle/ProcessLifecycleOwner;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/lifecycle/ProcessLifecycleOwner;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1;->this$0:Landroidx/lifecycle/ProcessLifecycleOwner;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
|
|
.locals 1
|
|
.param p1 # Landroid/app/Activity;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/os/Bundle;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const-string p2, "activity"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 7
|
|
.line 8
|
|
const/16 v0, 0x1d
|
|
|
|
.line 9
|
|
.line 10
|
|
if-ge p2, v0, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
sget p2, Landroidx/lifecycle/ReportFragment;->f:I
|
|
|
|
.line 13
|
|
.line 14
|
|
const-string p2, "<this>"
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p1}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object p1
|
|
|
|
.line 23
|
|
const-string p2, "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag"
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p1, p2}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object p1
|
|
|
|
.line 29
|
|
const-string p2, "null cannot be cast to non-null type androidx.lifecycle.ReportFragment"
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
check-cast p1, Landroidx/lifecycle/ReportFragment;
|
|
|
|
.line 35
|
|
.line 36
|
|
iget-object p2, p0, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1;->this$0:Landroidx/lifecycle/ProcessLifecycleOwner;
|
|
|
|
.line 37
|
|
.line 38
|
|
iget-object p2, p2, Landroidx/lifecycle/ProcessLifecycleOwner;->l:Landroidx/lifecycle/ProcessLifecycleOwner$initializationListener$1;
|
|
|
|
.line 39
|
|
.line 40
|
|
iput-object p2, p1, Landroidx/lifecycle/ReportFragment;->c:Landroidx/lifecycle/ProcessLifecycleOwner$initializationListener$1;
|
|
|
|
.line 41
|
|
.line 42
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onActivityPaused(Landroid/app/Activity;)V
|
|
.locals 3
|
|
.param p1 # Landroid/app/Activity;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const-string v0, "activity"
|
|
|
|
.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
|
|
iget-object p1, p0, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1;->this$0:Landroidx/lifecycle/ProcessLifecycleOwner;
|
|
|
|
.line 7
|
|
.line 8
|
|
iget v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->f:I
|
|
|
|
.line 9
|
|
.line 10
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
.line 11
|
|
.line 12
|
|
iput v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->f:I
|
|
|
|
.line 13
|
|
.line 14
|
|
if-nez v0, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->i:Landroid/os/Handler;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
iget-object p1, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->k:Landroidx/credentials/playservices/controllers/CreatePassword/a;
|
|
|
|
.line 22
|
|
.line 23
|
|
const-wide/16 v1, 0x2bc
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onActivityPreCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
|
|
.locals 1
|
|
.param p1 # Landroid/app/Activity;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/os/Bundle;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string p2, "activity"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance p2, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1$onActivityPreCreated$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-object v0, p0, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1;->this$0:Landroidx/lifecycle/ProcessLifecycleOwner;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {p2, v0}, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1$onActivityPreCreated$1;-><init>(Landroidx/lifecycle/ProcessLifecycleOwner;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p1, p2}, Landroidx/lifecycle/ProcessLifecycleOwner$Api29Impl;->a(Landroid/app/Activity;Landroid/app/Application$ActivityLifecycleCallbacks;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|
|
|
|
.method public onActivityStopped(Landroid/app/Activity;)V
|
|
.locals 2
|
|
.param p1 # Landroid/app/Activity;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const-string v0, "activity"
|
|
|
|
.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
|
|
iget-object p1, p0, Landroidx/lifecycle/ProcessLifecycleOwner$attach$1;->this$0:Landroidx/lifecycle/ProcessLifecycleOwner;
|
|
|
|
.line 7
|
|
.line 8
|
|
iget v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->c:I
|
|
|
|
.line 9
|
|
.line 10
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
.line 11
|
|
.line 12
|
|
iput v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->c:I
|
|
|
|
.line 13
|
|
.line 14
|
|
if-nez v0, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-boolean v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->g:Z
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->j:Landroidx/lifecycle/LifecycleRegistry;
|
|
|
|
.line 21
|
|
.line 22
|
|
sget-object v1, Landroidx/lifecycle/Lifecycle$Event;->ON_STOP:Landroidx/lifecycle/Lifecycle$Event;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v0, v1}, Landroidx/lifecycle/LifecycleRegistry;->f(Landroidx/lifecycle/Lifecycle$Event;)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
const/4 v0, 0x1
|
|
|
|
.line 28
|
|
iput-boolean v0, p1, Landroidx/lifecycle/ProcessLifecycleOwner;->h:Z
|
|
|
|
.line 29
|
|
.line 30
|
|
:cond_0
|
|
return-void
|
|
.end method
|