* 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>
672 lines
13 KiB
Smali
672 lines
13 KiB
Smali
.class public Lcom/google/android/material/imageview/ShapeableImageView;
|
|
.super Landroidx/appcompat/widget/AppCompatImageView;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/shape/Shapeable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/material/imageview/ShapeableImageView$OutlineProvider;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public h:Landroid/content/res/ColorStateList;
|
|
|
|
.field public i:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.field public j:F
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentPaddingBottom()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getContentPaddingEnd()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentPaddingLeft()I
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x1
|
|
|
|
.line 6
|
|
const/4 v2, 0x0
|
|
|
|
.line 7
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
return v2
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return v2
|
|
.end method
|
|
|
|
.method public getContentPaddingRight()I
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x1
|
|
|
|
.line 6
|
|
const/4 v2, 0x0
|
|
|
|
.line 7
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
return v2
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return v2
|
|
.end method
|
|
|
|
.method public final getContentPaddingStart()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getContentPaddingTop()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPaddingBottom()I
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->getPaddingBottom()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingBottom()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPaddingEnd()I
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->getPaddingEnd()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingEnd()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPaddingLeft()I
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->getPaddingLeft()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingLeft()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPaddingRight()I
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->getPaddingRight()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingRight()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPaddingStart()I
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->getPaddingStart()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingStart()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPaddingTop()I
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/ImageView;->getPaddingTop()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingTop()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v1
|
|
|
|
.line 9
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 10
|
|
return v0
|
|
.end method
|
|
|
|
.method public getShapeAppearanceModel()Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/imageview/ShapeableImageView;->i:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getStrokeColor()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/imageview/ShapeableImageView;->h:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getStrokeWidth()F
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/imageview/ShapeableImageView;->j:F
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0, v0}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
iget-object p1, p0, Lcom/google/android/material/imageview/ShapeableImageView;->h:Landroid/content/res/ColorStateList;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-nez p1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
|
|
.line 13
|
|
:cond_0
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final onMeasure(II)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/widget/ImageView;->onMeasure(II)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onSizeChanged(IIII)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ImageView;->onSizeChanged(IIII)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getPaddingLeft()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getPaddingTop()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getPaddingRight()I
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getPaddingBottom()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
const/4 p1, 0x0
|
|
|
|
.line 17
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setPadding(IIII)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingLeft()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
add-int/2addr v0, p1
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingTop()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result p1
|
|
|
|
.line 10
|
|
add-int/2addr p1, p2
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingRight()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p2
|
|
|
|
.line 15
|
|
add-int/2addr p2, p3
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingBottom()I
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result p3
|
|
|
|
.line 20
|
|
add-int/2addr p3, p4
|
|
|
|
.line 21
|
|
invoke-super {p0, v0, p1, p2, p3}, Landroid/widget/ImageView;->setPadding(IIII)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setPaddingRelative(IIII)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingStart()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
add-int/2addr v0, p1
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingTop()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result p1
|
|
|
|
.line 10
|
|
add-int/2addr p1, p2
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingEnd()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p2
|
|
|
|
.line 15
|
|
add-int/2addr p2, p3
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Lcom/google/android/material/imageview/ShapeableImageView;->getContentPaddingBottom()I
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result p3
|
|
|
|
.line 20
|
|
add-int/2addr p3, p4
|
|
|
|
.line 21
|
|
invoke-super {p0, v0, p1, p2, p3}, Landroid/widget/ImageView;->setPaddingRelative(IIII)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
.end method
|
|
|
|
.method public setShapeAppearanceModel(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
|
|
.locals 0
|
|
.param p1 # Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/imageview/ShapeableImageView;->i:Lcom/google/android/material/shape/ShapeAppearanceModel;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
throw p1
|
|
.end method
|
|
|
|
.method public setStrokeColor(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/imageview/ShapeableImageView;->h:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeColorResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/imageview/ShapeableImageView;->setStrokeColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeWidth(F)V
|
|
.locals 1
|
|
.param p1 # F
|
|
.annotation build Landroidx/annotation/Dimension;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/imageview/ShapeableImageView;->j:F
|
|
|
|
.line 2
|
|
.line 3
|
|
cmpl-float v0, v0, p1
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iput p1, p0, Lcom/google/android/material/imageview/ShapeableImageView;->j:F
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeWidthResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DimenRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
int-to-float p1, p1
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/imageview/ShapeableImageView;->setStrokeWidth(F)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-void
|
|
.end method
|