* 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>
393 lines
8.4 KiB
Smali
393 lines
8.4 KiB
Smali
.class Landroidx/core/view/ViewCompat$Api21Impl;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/view/ViewCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Api21Impl"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Landroid/view/WindowInsets;Landroid/view/View;)V
|
|
.locals 1
|
|
.param p0 # Landroid/view/WindowInsets;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget v0, Landroidx/core/R$id;->tag_window_insets_animation_callback:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
check-cast v0, Landroid/view/View$OnApplyWindowInsetsListener;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-interface {v0, p1, p0}, Landroid/view/View$OnApplyWindowInsetsListener;->onApplyWindowInsets(Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;Landroid/graphics/Rect;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 1
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->n()Landroid/view/WindowInsets;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0, v0, p2}, Landroid/view/View;->computeSystemWindowInsets(Landroid/view/WindowInsets;Landroid/graphics/Rect;)Landroid/view/WindowInsets;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-static {p0, p1}, Landroidx/core/view/WindowInsetsCompat;->o(Landroid/view/View;Landroid/view/WindowInsets;)Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p0
|
|
|
|
.line 15
|
|
return-object p0
|
|
|
|
.line 16
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroid/graphics/Rect;->setEmpty()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static c(Landroid/view/View;)Landroid/content/res/ColorStateList;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static d(Landroid/view/View;)Landroid/graphics/PorterDuff$Mode;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static e(Landroid/view/View;)F
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getElevation()F
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static f(Landroid/view/View;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getTransitionName()Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static g(Landroid/view/View;)F
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getTranslationZ()F
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static h(Landroid/view/View;)F
|
|
.locals 0
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getZ()F
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static i(Landroid/view/View;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->isNestedScrollingEnabled()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static j(Landroid/view/View;Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static k(Landroid/view/View;Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static l(Landroid/view/View;F)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setElevation(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static m(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V
|
|
.locals 2
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x1e
|
|
|
|
.line 4
|
|
.line 5
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
sget v0, Landroidx/core/R$id;->tag_on_apply_window_listener:I
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0, v0, p1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
sget p1, Landroidx/core/R$id;->tag_window_insets_animation_callback:I
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p1
|
|
|
|
.line 20
|
|
check-cast p1, Landroid/view/View$OnApplyWindowInsetsListener;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
return-void
|
|
|
|
.line 26
|
|
:cond_1
|
|
new-instance v0, Landroidx/core/view/ViewCompat$Api21Impl$1;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-direct {v0, p0, p1}, Landroidx/core/view/ViewCompat$Api21Impl$1;-><init>(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
return-void
|
|
.end method
|
|
|
|
.method public static n(Landroid/view/View;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setTransitionName(Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static o(Landroid/view/View;F)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setTranslationZ(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static p(Landroid/view/View;F)V
|
|
.locals 0
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setZ(F)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static q(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->stopNestedScroll()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|