* 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>
293 lines
5.8 KiB
Smali
293 lines
5.8 KiB
Smali
.class public Landroidx/appcompat/widget/ScrollingTabContainerView;
|
|
.super Landroid/widget/HorizontalScrollView;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/AdapterView$OnItemSelectedListener;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/widget/ScrollingTabContainerView$VisibilityAnimListener;,
|
|
Landroidx/appcompat/widget/ScrollingTabContainerView$TabAdapter;,
|
|
Landroidx/appcompat/widget/ScrollingTabContainerView$TabView;,
|
|
Landroidx/appcompat/widget/ScrollingTabContainerView$TabClickListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onAttachedToWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/HorizontalScrollView;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/HorizontalScrollView;->onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object p1
|
|
|
|
.line 8
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->ActionBar:[I
|
|
|
|
.line 9
|
|
.line 10
|
|
sget v1, Landroidx/appcompat/R$attr;->actionBarStyle:I
|
|
|
|
.line 11
|
|
.line 12
|
|
const/4 v2, 0x0
|
|
|
|
.line 13
|
|
const/4 v3, 0x0
|
|
|
|
.line 14
|
|
invoke-virtual {p1, v2, v0, v1, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
sget v1, Landroidx/appcompat/R$styleable;->ActionBar_height:I
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v0, v1, v3}, Landroid/content/res/TypedArray;->getLayoutDimension(II)I
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result v1
|
|
|
|
.line 24
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object v2
|
|
|
|
.line 28
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v3
|
|
|
|
.line 32
|
|
sget v4, Landroidx/appcompat/R$bool;->abc_action_bar_embed_tabs:I
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getBoolean(I)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v3
|
|
|
|
.line 38
|
|
if-nez v3, :cond_0
|
|
|
|
.line 39
|
|
.line 40
|
|
sget v3, Landroidx/appcompat/R$dimen;->abc_action_bar_stacked_max_height:I
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v2
|
|
|
|
.line 46
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result v1
|
|
|
|
.line 50
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/ScrollingTabContainerView;->setContentHeight(I)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object p1
|
|
|
|
.line 60
|
|
sget v0, Landroidx/appcompat/R$dimen;->abc_action_bar_stacked_tab_max_width:I
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onDetachedFromWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/HorizontalScrollView;->onDetachedFromWindow()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onItemSelected(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
check-cast p2, Landroidx/appcompat/widget/ScrollingTabContainerView$TabView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const/4 p1, 0x0
|
|
|
|
.line 7
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p1
|
|
|
|
.line 5
|
|
const/high16 p2, 0x40000000 # 2.0f
|
|
|
|
.line 6
|
|
.line 7
|
|
if-ne p1, p2, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 p1, 0x1
|
|
|
|
.line 10
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 12
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroid/widget/HorizontalScrollView;->setFillViewport(Z)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onNothingSelected(Landroid/widget/AdapterView;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAllowCollapse(Z)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setContentHeight(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTabSelected(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
throw p1
|
|
.end method
|