* 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>
487 lines
11 KiB
Smali
487 lines
11 KiB
Smali
.class Lcom/google/android/material/timepicker/ChipTextInputComboView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/Checkable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/timepicker/ChipTextInputComboView$TextFormatter;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic i:I
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.field public final f:Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.field public final g:Landroid/widget/EditText;
|
|
|
|
.field public final h:Landroid/text/TextWatcher;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 4
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2, v0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
sget p2, Lcom/google/android/material/R$layout;->material_time_chip:I
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p1, p2, p0, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p2
|
|
|
|
.line 15
|
|
check-cast p2, Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 16
|
|
.line 17
|
|
iput-object p2, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string v1, "android.view.View"
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {p2, v1}, Lcom/google/android/material/chip/Chip;->setAccessibilityClassName(Ljava/lang/CharSequence;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
sget v1, Lcom/google/android/material/R$layout;->material_time_input:I
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p1, v1, p0, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p1
|
|
|
|
.line 30
|
|
check-cast p1, Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 31
|
|
.line 32
|
|
iput-object p1, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->f:Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p1}, Lcom/google/android/material/textfield/TextInputLayout;->getEditText()Landroid/widget/EditText;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v1
|
|
|
|
.line 38
|
|
iput-object v1, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->g:Landroid/widget/EditText;
|
|
|
|
.line 39
|
|
.line 40
|
|
const/4 v2, 0x4
|
|
|
|
.line 41
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
new-instance v2, Lcom/google/android/material/timepicker/ChipTextInputComboView$TextFormatter;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-direct {v2, p0}, Lcom/google/android/material/timepicker/ChipTextInputComboView$TextFormatter;-><init>(Lcom/google/android/material/timepicker/ChipTextInputComboView;)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
iput-object v2, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->h:Landroid/text/TextWatcher;
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {v1, v2}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 55
|
|
.line 56
|
|
const/16 v3, 0x18
|
|
|
|
.line 57
|
|
.line 58
|
|
if-lt v2, v3, :cond_0
|
|
|
|
.line 59
|
|
.line 60
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result-object v2
|
|
|
|
.line 64
|
|
invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result-object v2
|
|
|
|
.line 68
|
|
invoke-virtual {v2}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object v2
|
|
|
|
.line 72
|
|
invoke-virtual {v2}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object v2
|
|
|
|
.line 76
|
|
invoke-virtual {v1, v2}, Landroid/widget/EditText;->setImeHintLocales(Landroid/os/LocaleList;)V
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
:cond_0
|
|
invoke-virtual {p0, p2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
sget p1, Lcom/google/android/material/R$id;->material_label:I
|
|
|
|
.line 86
|
|
.line 87
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result-object p1
|
|
|
|
.line 91
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
.line 92
|
|
.line 93
|
|
invoke-static {}, Landroid/view/View;->generateViewId()I
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
move-result p2
|
|
|
|
.line 97
|
|
invoke-virtual {v1, p2}, Landroid/view/View;->setId(I)V
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {v1}, Landroid/view/View;->getId()I
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result p2
|
|
|
|
.line 104
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setLabelFor(I)V
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setSaveEnabled(Z)V
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setLongClickable(Z)V
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final isChecked()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/widget/CompoundButton;->isChecked()Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 5
|
|
.line 6
|
|
const/16 v0, 0x18
|
|
|
|
.line 7
|
|
.line 8
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
invoke-virtual {p1}, Landroid/content/res/Configuration;->getLocales()Landroid/os/LocaleList;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p1
|
|
|
|
.line 26
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->g:Landroid/widget/EditText;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v0, p1}, Landroid/widget/EditText;->setImeHintLocales(Landroid/os/LocaleList;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setChecked(Z)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/chip/Chip;->setChecked(Z)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
move v2, v1
|
|
|
|
.line 10
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
const/4 v2, 0x4
|
|
|
|
.line 12
|
|
:goto_0
|
|
iget-object v3, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->g:Landroid/widget/EditText;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v3, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 18
|
|
.line 19
|
|
const/16 v1, 0x8
|
|
|
|
.line 20
|
|
.line 21
|
|
:cond_1
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v0}, Landroid/widget/CompoundButton;->isChecked()Z
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result p1
|
|
|
|
.line 28
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v3}, Landroid/view/View;->requestFocus()Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
new-instance p1, Landroidx/core/view/c;
|
|
|
|
.line 34
|
|
.line 35
|
|
const/4 v0, 0x2
|
|
|
|
.line 36
|
|
invoke-direct {p1, v3, v0}, Landroidx/core/view/c;-><init>(Landroid/view/View;I)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {v3, p1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setTag(ILjava/lang/Object;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1, p2}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final toggle()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/ChipTextInputComboView;->c:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/widget/CompoundButton;->toggle()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|