* 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>
531 lines
10 KiB
Smali
531 lines
10 KiB
Smali
.class public final Landroidx/appcompat/widget/ViewStubCompat;
|
|
.super Landroid/view/View;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/widget/ViewStubCompat$OnInflateListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:I
|
|
|
|
.field public f:I
|
|
|
|
.field public g:Ljava/lang/ref/WeakReference;
|
|
|
|
.field public h:Landroid/view/LayoutInflater;
|
|
|
|
.field public i:Landroidx/appcompat/widget/ViewStubCompat$OnInflateListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
.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/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
iput v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->c:I
|
|
|
|
.line 6
|
|
.line 7
|
|
sget-object v1, Landroidx/appcompat/R$styleable;->ViewStubCompat:[I
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p1, p2, v1, v0, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object p1
|
|
|
|
.line 13
|
|
sget p2, Landroidx/appcompat/R$styleable;->ViewStubCompat_android_inflatedId:I
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 v1, -0x1
|
|
|
|
.line 16
|
|
invoke-virtual {p1, p2, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result p2
|
|
|
|
.line 20
|
|
iput p2, p0, Landroidx/appcompat/widget/ViewStubCompat;->f:I
|
|
|
|
.line 21
|
|
.line 22
|
|
sget p2, Landroidx/appcompat/R$styleable;->ViewStubCompat_android_layout:I
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result p2
|
|
|
|
.line 28
|
|
iput p2, p0, Landroidx/appcompat/widget/ViewStubCompat;->c:I
|
|
|
|
.line 29
|
|
.line 30
|
|
sget p2, Landroidx/appcompat/R$styleable;->ViewStubCompat_android_id:I
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p1, p2, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result p2
|
|
|
|
.line 36
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setId(I)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
const/16 p1, 0x8
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ViewStubCompat;->setVisibility(I)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
const/4 p1, 0x1
|
|
|
|
.line 48
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setWillNotDraw(Z)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Landroid/view/View;
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
instance-of v1, v0, Landroid/view/ViewGroup;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 8
|
|
.line 9
|
|
iget v1, p0, Landroidx/appcompat/widget/ViewStubCompat;->c:I
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 12
|
|
.line 13
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v1, p0, Landroidx/appcompat/widget/ViewStubCompat;->h:Landroid/view/LayoutInflater;
|
|
|
|
.line 16
|
|
.line 17
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
goto :goto_0
|
|
|
|
.line 20
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v1
|
|
|
|
.line 24
|
|
invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object v1
|
|
|
|
.line 28
|
|
:goto_0
|
|
iget v2, p0, Landroidx/appcompat/widget/ViewStubCompat;->c:I
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v3, 0x0
|
|
|
|
.line 31
|
|
invoke-virtual {v1, v2, v0, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v1
|
|
|
|
.line 35
|
|
iget v2, p0, Landroidx/appcompat/widget/ViewStubCompat;->f:I
|
|
|
|
.line 36
|
|
.line 37
|
|
const/4 v3, -0x1
|
|
|
|
.line 38
|
|
if-eq v2, v3, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setId(I)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
:cond_1
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->indexOfChild(Landroid/view/View;)I
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result v2
|
|
|
|
.line 47
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->removeViewInLayout(Landroid/view/View;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v3
|
|
|
|
.line 54
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
goto :goto_1
|
|
|
|
.line 60
|
|
:cond_2
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
:goto_1
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-direct {v0, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
iput-object v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->g:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 69
|
|
.line 70
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->i:Landroidx/appcompat/widget/ViewStubCompat$OnInflateListener;
|
|
|
|
.line 71
|
|
.line 72
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-interface {v0}, Landroidx/appcompat/widget/ViewStubCompat$OnInflateListener;->a()V
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
:cond_3
|
|
return-object v1
|
|
|
|
.line 78
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 79
|
|
.line 80
|
|
const-string v1, "ViewStub must have a valid layoutResource"
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
throw v0
|
|
|
|
.line 86
|
|
:cond_5
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 87
|
|
.line 88
|
|
const-string v1, "ViewStub must have a non-null ViewGroup viewParent"
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final dispatchDraw(Landroid/graphics/Canvas;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final draw(Landroid/graphics/Canvas;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getInflatedId()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->f:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLayoutInflater()Landroid/view/LayoutInflater;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->h:Landroid/view/LayoutInflater;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getLayoutResource()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->c:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1, p1}, Landroid/view/View;->setMeasuredDimension(II)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInflatedId(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Landroidx/appcompat/widget/ViewStubCompat;->f:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLayoutInflater(Landroid/view/LayoutInflater;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ViewStubCompat;->h:Landroid/view/LayoutInflater;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLayoutResource(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Landroidx/appcompat/widget/ViewStubCompat;->c:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnInflateListener(Landroidx/appcompat/widget/ViewStubCompat$OnInflateListener;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/ViewStubCompat;->i:Landroidx/appcompat/widget/ViewStubCompat$OnInflateListener;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/ViewStubCompat;->g:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string v0, "setVisibility called on un-referenced view"
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
throw p1
|
|
|
|
.line 25
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v0, 0x4
|
|
|
|
.line 31
|
|
if-ne p1, v0, :cond_2
|
|
|
|
.line 32
|
|
.line 33
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 35
|
|
:cond_3
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/ViewStubCompat;->a()Landroid/view/View;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
return-void
|
|
.end method
|