* 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>
170 lines
3.6 KiB
Smali
170 lines
3.6 KiB
Smali
.class Lcom/google/android/material/ripple/RippleUtils$RippleUtilsLollipop;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/android/material/ripple/RippleUtils;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "RippleUtilsLollipop"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private static a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
.locals 6
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/DoNotInline;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v1, Landroid/graphics/drawable/GradientDrawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v1}, Landroid/graphics/drawable/GradientDrawable;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 v0, -0x1
|
|
|
|
.line 7
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
const/4 v0, 0x1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/GradientDrawable;->setShape(I)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
new-instance v0, Landroid/graphics/drawable/InsetDrawable;
|
|
|
|
.line 15
|
|
.line 16
|
|
move v3, p1
|
|
|
|
.line 17
|
|
move v4, p1
|
|
|
|
.line 18
|
|
move v5, p1
|
|
|
|
.line 19
|
|
move v2, p1
|
|
|
|
.line 20
|
|
invoke-direct/range {v0 .. v5}, Landroid/graphics/drawable/InsetDrawable;-><init>(Landroid/graphics/drawable/Drawable;IIII)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
new-instance p1, Landroid/graphics/drawable/RippleDrawable;
|
|
|
|
.line 24
|
|
.line 25
|
|
sget v1, Landroidx/appcompat/R$attr;->colorControlHighlight:I
|
|
|
|
.line 26
|
|
.line 27
|
|
const/4 v2, 0x0
|
|
|
|
.line 28
|
|
invoke-static {v2}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v2
|
|
|
|
.line 32
|
|
invoke-static {p0, v1}, Lcom/google/android/material/resources/MaterialAttributes;->a(Landroid/content/Context;I)Landroid/util/TypedValue;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object v1
|
|
|
|
.line 36
|
|
const/4 v3, 0x0
|
|
|
|
.line 37
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 38
|
|
.line 39
|
|
iget v4, v1, Landroid/util/TypedValue;->resourceId:I
|
|
|
|
.line 40
|
|
.line 41
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-static {p0, v4}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object p0
|
|
|
|
.line 47
|
|
goto :goto_0
|
|
|
|
.line 48
|
|
:cond_0
|
|
iget p0, v1, Landroid/util/TypedValue;->data:I
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-static {p0}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object p0
|
|
|
|
.line 54
|
|
goto :goto_0
|
|
|
|
.line 55
|
|
:cond_1
|
|
move-object p0, v3
|
|
|
|
.line 56
|
|
:goto_0
|
|
if-nez p0, :cond_2
|
|
|
|
.line 57
|
|
.line 58
|
|
goto :goto_1
|
|
|
|
.line 59
|
|
:cond_2
|
|
move-object v2, p0
|
|
|
|
.line 60
|
|
:goto_1
|
|
invoke-direct {p1, v2, v3, v0}, Landroid/graphics/drawable/RippleDrawable;-><init>(Landroid/content/res/ColorStateList;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
return-object p1
|
|
.end method
|