* 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>
652 lines
14 KiB
Smali
652 lines
14 KiB
Smali
.class public Lcom/google/android/material/textfield/TextInputEditText;
|
|
.super Landroidx/appcompat/widget/AppCompatEditText;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final k:Landroid/graphics/Rect;
|
|
|
|
.field public l:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 7
|
|
.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
|
|
sget v3, Landroidx/appcompat/R$attr;->editTextStyle:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v6, 0x0
|
|
|
|
.line 4
|
|
invoke-static {p1, p2, v3, v6}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
invoke-direct {p0, v0, p2, v3}, Landroidx/appcompat/widget/AppCompatEditText;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iput-object v0, p0, Lcom/google/android/material/textfield/TextInputEditText;->k:Landroid/graphics/Rect;
|
|
|
|
.line 17
|
|
.line 18
|
|
sget-object v2, Lcom/google/android/material/R$styleable;->TextInputEditText:[I
|
|
|
|
.line 19
|
|
.line 20
|
|
sget v4, Lcom/google/android/material/R$style;->Widget_Design_TextInputEditText:I
|
|
|
|
.line 21
|
|
.line 22
|
|
new-array v5, v6, [I
|
|
|
|
.line 23
|
|
.line 24
|
|
move-object v0, p1
|
|
|
|
.line 25
|
|
move-object v1, p2
|
|
|
|
.line 26
|
|
invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->d(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p1
|
|
|
|
.line 30
|
|
sget p2, Lcom/google/android/material/R$styleable;->TextInputEditText_textInputLayoutFocusedRectEnabled:I
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p1, p2, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result p2
|
|
|
|
.line 36
|
|
invoke-virtual {p0, p2}, Lcom/google/android/material/textfield/TextInputEditText;->setTextInputLayoutFocusedRectEnabled(Z)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
return-void
|
|
.end method
|
|
|
|
.method private getHintFromLayout()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Lcom/google/android/material/textfield/TextInputLayout;->getHint()Ljava/lang/CharSequence;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
return-object v0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
:goto_0
|
|
instance-of v1, v0, Landroid/view/View;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
instance-of v1, v0, Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
check-cast v0, Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 14
|
|
.line 15
|
|
return-object v0
|
|
|
|
.line 16
|
|
:cond_0
|
|
invoke-interface {v0}, Landroid/view/ViewParent;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
goto :goto_0
|
|
|
|
.line 21
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 22
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getFocusedRect(Landroid/graphics/Rect;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/EditText;->getFocusedRect(Landroid/graphics/Rect;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-boolean v1, p0, Lcom/google/android/material/textfield/TextInputEditText;->l:Z
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v1, p0, Lcom/google/android/material/textfield/TextInputEditText;->k:Landroid/graphics/Rect;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->getFocusedRect(Landroid/graphics/Rect;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
iget v0, v1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
.line 22
|
|
.line 23
|
|
iput v0, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
.line 24
|
|
.line 25
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getGlobalVisibleRect(Landroid/graphics/Rect;Landroid/graphics/Point;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-boolean v1, p0, Lcom/google/android/material/textfield/TextInputEditText;->l:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, p1, p2}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;Landroid/graphics/Point;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p0}, Landroid/view/View;->getScrollX()I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v0
|
|
|
|
.line 23
|
|
neg-int v0, v0
|
|
|
|
.line 24
|
|
invoke-virtual {p0}, Landroid/view/View;->getScrollY()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v1
|
|
|
|
.line 28
|
|
neg-int v1, v1
|
|
|
|
.line 29
|
|
invoke-virtual {p2, v0, v1}, Landroid/graphics/Point;->offset(II)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
:cond_0
|
|
return p1
|
|
|
|
.line 33
|
|
:cond_1
|
|
invoke-super {p0, p1, p2}, Landroid/widget/EditText;->getGlobalVisibleRect(Landroid/graphics/Rect;Landroid/graphics/Point;)Z
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result p1
|
|
|
|
.line 37
|
|
return p1
|
|
.end method
|
|
|
|
.method public getHint()Ljava/lang/CharSequence;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-boolean v1, v0, Lcom/google/android/material/textfield/TextInputLayout;->J:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Lcom/google/android/material/textfield/TextInputLayout;->getHint()Ljava/lang/CharSequence;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
return-object v0
|
|
|
|
.line 16
|
|
:cond_0
|
|
invoke-super {p0}, Landroid/widget/EditText;->getHint()Ljava/lang/CharSequence;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onAttachedToWindow()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/EditText;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-boolean v0, v0, Lcom/google/android/material/textfield/TextInputLayout;->J:Z
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-super {p0}, Landroid/widget/EditText;->getHint()Ljava/lang/CharSequence;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
if-nez v0, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
sget-object v0, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
|
|
|
|
.line 21
|
|
.line 22
|
|
const-string v1, ""
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-object v2, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v0
|
|
|
|
.line 32
|
|
goto :goto_0
|
|
|
|
.line 33
|
|
:cond_0
|
|
move-object v0, v1
|
|
|
|
.line 34
|
|
:goto_0
|
|
const-string v2, "meizu"
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result v0
|
|
|
|
.line 40
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p0, v1}, Landroid/widget/TextView;->setHint(Ljava/lang/CharSequence;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatEditText;->onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v1, p1, Landroid/view/inputmethod/EditorInfo;->hintText:Ljava/lang/CharSequence;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-nez v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getHintFromLayout()Ljava/lang/CharSequence;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v1
|
|
|
|
.line 15
|
|
iput-object v1, p1, Landroid/view/inputmethod/EditorInfo;->hintText:Ljava/lang/CharSequence;
|
|
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/EditText;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public final requestRectangleOnScreen(Landroid/graphics/Rect;)Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/google/android/material/textfield/TextInputEditText;->getTextInputLayout()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-boolean v1, p0, Lcom/google/android/material/textfield/TextInputEditText;->l:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v0
|
|
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result v1
|
|
|
|
.line 21
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 22
|
|
iget v1, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
.line 23
|
|
.line 24
|
|
iget v2, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
.line 25
|
|
.line 26
|
|
iget v3, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
.line 27
|
|
.line 28
|
|
iget p1, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
.line 29
|
|
.line 30
|
|
add-int/2addr p1, v0
|
|
|
|
.line 31
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/TextInputEditText;->k:Landroid/graphics/Rect;
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {v0, v1, v2, v3, p1}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
invoke-super {p0, v0}, Landroid/widget/EditText;->requestRectangleOnScreen(Landroid/graphics/Rect;)Z
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result p1
|
|
|
|
.line 40
|
|
return p1
|
|
|
|
.line 41
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/widget/EditText;->requestRectangleOnScreen(Landroid/graphics/Rect;)Z
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result p1
|
|
|
|
.line 45
|
|
return p1
|
|
.end method
|
|
|
|
.method public setTextInputLayoutFocusedRectEnabled(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/textfield/TextInputEditText;->l:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|