* 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>
396 lines
9.6 KiB
Smali
396 lines
9.6 KiB
Smali
.class public Lcom/google/android/material/theme/MaterialComponentsViewInflater;
|
|
.super Landroidx/appcompat/app/AppCompatViewInflater;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroidx/appcompat/app/AppCompatViewInflater;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/textfield/MaterialAutoCompleteTextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1, p2}, Lcom/google/android/material/textfield/MaterialAutoCompleteTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final b(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatButton;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/button/MaterialButton;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1, p2}, Lcom/google/android/material/button/MaterialButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final c(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatCheckBox;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/checkbox/MaterialCheckBox;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1, p2}, Lcom/google/android/material/checkbox/MaterialCheckBox;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final d(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatRadioButton;
|
|
.locals 7
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/radiobutton/MaterialRadioButton;
|
|
|
|
.line 2
|
|
.line 3
|
|
sget v4, Landroidx/appcompat/R$attr;->radioButtonStyle:I
|
|
|
|
.line 4
|
|
.line 5
|
|
sget v5, Lcom/google/android/material/radiobutton/MaterialRadioButton;->k:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {p1, p2, v4, v5}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-direct {v0, p1, p2, v4}, Landroidx/appcompat/widget/AppCompatRadioButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v1
|
|
|
|
.line 18
|
|
sget-object v3, Lcom/google/android/material/R$styleable;->MaterialRadioButton:[I
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 p1, 0x0
|
|
|
|
.line 21
|
|
new-array v6, p1, [I
|
|
|
|
.line 22
|
|
.line 23
|
|
move-object v2, p2
|
|
|
|
.line 24
|
|
invoke-static/range {v1 .. v6}, Lcom/google/android/material/internal/ThemeEnforcement;->d(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object p2
|
|
|
|
.line 28
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialRadioButton_buttonTint:I
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {p2, v2}, Landroid/content/res/TypedArray;->hasValue(I)Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v2
|
|
|
|
.line 34
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 35
|
|
.line 36
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialRadioButton_buttonTint:I
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-static {v1, p2, v2}, Lcom/google/android/material/resources/MaterialResources;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result-object v1
|
|
|
|
.line 42
|
|
invoke-virtual {v0, v1}, Landroid/widget/CompoundButton;->setButtonTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
:cond_0
|
|
sget v1, Lcom/google/android/material/R$styleable;->MaterialRadioButton_useMaterialThemeColors:I
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {p2, v1, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result p1
|
|
|
|
.line 51
|
|
iput-boolean p1, v0, Lcom/google/android/material/radiobutton/MaterialRadioButton;->j:Z
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final e(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatTextView;
|
|
.locals 7
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/android/material/textview/MaterialTextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
const v1, 0x1010084
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 v2, 0x0
|
|
|
|
.line 7
|
|
invoke-static {p1, p2, v1, v2}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-direct {v0, p1, p2, v1}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
sget v3, Lcom/google/android/material/R$attr;->textAppearanceLineHeightEnabled:I
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 v4, 0x1
|
|
|
|
.line 21
|
|
invoke-static {p1, v3, v4}, Lcom/google/android/material/resources/MaterialAttributes;->b(Landroid/content/Context;IZ)Z
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result v3
|
|
|
|
.line 25
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object v3
|
|
|
|
.line 31
|
|
sget-object v4, Lcom/google/android/material/R$styleable;->MaterialTextView:[I
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {v3, p2, v4, v1, v2}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v4
|
|
|
|
.line 37
|
|
sget v5, Lcom/google/android/material/R$styleable;->MaterialTextView_android_lineHeight:I
|
|
|
|
.line 38
|
|
.line 39
|
|
sget v6, Lcom/google/android/material/R$styleable;->MaterialTextView_lineHeight:I
|
|
|
|
.line 40
|
|
.line 41
|
|
filled-new-array {v5, v6}, [I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object v5
|
|
|
|
.line 45
|
|
invoke-static {p1, v4, v5}, Lcom/google/android/material/textview/MaterialTextView;->q(Landroid/content/Context;Landroid/content/res/TypedArray;[I)I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result p1
|
|
|
|
.line 49
|
|
invoke-virtual {v4}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
const/4 v4, -0x1
|
|
|
|
.line 53
|
|
if-eq p1, v4, :cond_0
|
|
|
|
.line 54
|
|
.line 55
|
|
goto :goto_0
|
|
|
|
.line 56
|
|
:cond_0
|
|
sget-object p1, Lcom/google/android/material/R$styleable;->MaterialTextView:[I
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v3, p2, p1, v1, v2}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object p1
|
|
|
|
.line 62
|
|
sget p2, Lcom/google/android/material/R$styleable;->MaterialTextView_android_textAppearance:I
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {p1, p2, v4}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result p2
|
|
|
|
.line 68
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
if-eq p2, v4, :cond_1
|
|
|
|
.line 72
|
|
.line 73
|
|
sget-object p1, Lcom/google/android/material/R$styleable;->MaterialTextAppearance:[I
|
|
|
|
.line 74
|
|
.line 75
|
|
invoke-virtual {v3, p2, p1}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes(I[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
move-result-object p1
|
|
|
|
.line 79
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result-object p2
|
|
|
|
.line 83
|
|
sget v1, Lcom/google/android/material/R$styleable;->MaterialTextAppearance_android_lineHeight:I
|
|
|
|
.line 84
|
|
.line 85
|
|
sget v2, Lcom/google/android/material/R$styleable;->MaterialTextAppearance_lineHeight:I
|
|
|
|
.line 86
|
|
.line 87
|
|
filled-new-array {v1, v2}, [I
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result-object v1
|
|
|
|
.line 91
|
|
invoke-static {p2, p1, v1}, Lcom/google/android/material/textview/MaterialTextView;->q(Landroid/content/Context;Landroid/content/res/TypedArray;[I)I
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
move-result p2
|
|
|
|
.line 95
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
if-ltz p2, :cond_1
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {v0, p2}, Landroidx/appcompat/widget/AppCompatTextView;->setLineHeight(I)V
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
:cond_1
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|