* 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>
377 lines
6.9 KiB
Smali
377 lines
6.9 KiB
Smali
.class public Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:I
|
|
|
|
.field public f:Z
|
|
|
|
|
|
# virtual methods
|
|
.method public final onLayout(ZIIII)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-object p1, p0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p2
|
|
|
|
.line 9
|
|
iget p3, p1, Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;->c:I
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 p4, 0x0
|
|
|
|
.line 12
|
|
:goto_0
|
|
if-ge p4, p2, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0, p4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p5
|
|
|
|
.line 18
|
|
invoke-virtual {p5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p5}, Landroid/view/View;->getTop()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v1
|
|
|
|
.line 28
|
|
invoke-static {p3, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result p3
|
|
|
|
.line 32
|
|
iget v1, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 33
|
|
.line 34
|
|
add-int/2addr p3, v1
|
|
|
|
.line 35
|
|
invoke-virtual {p5}, Landroid/view/View;->getLeft()I
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result v1
|
|
|
|
.line 39
|
|
invoke-virtual {p5}, Landroid/view/View;->getRight()I
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result v2
|
|
|
|
.line 43
|
|
invoke-virtual {p5}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result v3
|
|
|
|
.line 47
|
|
add-int/2addr v3, p3
|
|
|
|
.line 48
|
|
invoke-virtual {p5, v1, p3, v2, v3}, Landroid/view/View;->layout(IIII)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p5}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result p5
|
|
|
|
.line 55
|
|
iget v0, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
|
|
|
|
.line 56
|
|
.line 57
|
|
add-int/2addr p5, v0
|
|
|
|
.line 58
|
|
add-int/2addr p3, p5
|
|
|
|
.line 59
|
|
add-int/lit8 p4, p4, 0x1
|
|
|
|
.line 60
|
|
.line 61
|
|
goto :goto_0
|
|
|
|
.line 62
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v0
|
|
|
|
.line 8
|
|
const/4 v1, 0x0
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v2
|
|
|
|
.line 13
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v3
|
|
|
|
.line 17
|
|
const/4 v4, 0x1
|
|
|
|
.line 18
|
|
if-le v0, v4, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v0
|
|
|
|
.line 24
|
|
invoke-virtual {p0, v0, p1, p2}, Landroid/view/ViewGroup;->measureChild(Landroid/view/View;II)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object v1
|
|
|
|
.line 31
|
|
check-cast v1, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result v0
|
|
|
|
.line 37
|
|
iget v2, v1, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
|
|
|
|
.line 38
|
|
.line 39
|
|
add-int/2addr v0, v2
|
|
|
|
.line 40
|
|
iget v1, v1, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 41
|
|
.line 42
|
|
add-int/2addr v1, v0
|
|
|
|
.line 43
|
|
sub-int v0, v3, v1
|
|
|
|
.line 44
|
|
.line 45
|
|
iget v2, p0, Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;->c:I
|
|
|
|
.line 46
|
|
.line 47
|
|
sub-int/2addr v0, v2
|
|
|
|
.line 48
|
|
invoke-virtual {p0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object v2
|
|
|
|
.line 52
|
|
iget-boolean v4, p0, Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;->f:Z
|
|
|
|
.line 53
|
|
.line 54
|
|
if-nez v4, :cond_0
|
|
|
|
.line 55
|
|
.line 56
|
|
const/high16 p2, -0x80000000
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-static {v0, p2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result p2
|
|
|
|
.line 62
|
|
:cond_0
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object v0
|
|
|
|
.line 66
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {p0, v2, p1, p2}, Landroid/view/ViewGroup;->measureChild(Landroid/view/View;II)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result p1
|
|
|
|
.line 75
|
|
iget p2, v0, Landroid/widget/FrameLayout$LayoutParams;->bottomMargin:I
|
|
|
|
.line 76
|
|
.line 77
|
|
add-int/2addr p1, p2
|
|
|
|
.line 78
|
|
iget p2, v0, Landroid/widget/FrameLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 79
|
|
.line 80
|
|
add-int/2addr p1, p2
|
|
|
|
.line 81
|
|
iget p2, p0, Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;->c:I
|
|
|
|
.line 82
|
|
.line 83
|
|
add-int/2addr p2, v1
|
|
|
|
.line 84
|
|
add-int/2addr p2, p1
|
|
|
|
.line 85
|
|
invoke-static {v3, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
move-result p1
|
|
|
|
.line 89
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
move-result p2
|
|
|
|
.line 93
|
|
invoke-virtual {p0, p2, p1}, Landroid/view/View;->setMeasuredDimension(II)V
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPaddingTop(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;->c:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScrollingEnabled(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Lcom/google/android/material/navigationrail/NavigationRailFrameLayout;->f:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|