* 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>
382 lines
8 KiB
Smali
382 lines
8 KiB
Smali
.class final Lcom/bumptech/glide/load/resource/bitmap/DrawableToBitmapConverter;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/DrawableToBitmapConverter$1;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sput-object v0, Lcom/bumptech/glide/load/resource/bitmap/DrawableToBitmapConverter;->a:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
|
|
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Landroid/graphics/drawable/Drawable;II)Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getCurrent()Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
instance-of v0, p1, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v1, 0x0
|
|
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
check-cast p1, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
goto/16 :goto_2
|
|
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/graphics/drawable/Animatable;
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 v2, 0x0
|
|
|
|
.line 21
|
|
if-nez v0, :cond_6
|
|
|
|
.line 22
|
|
.line 23
|
|
const-string v0, "Unable to draw "
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 v3, 0x5
|
|
|
|
.line 26
|
|
const-string v4, "DrawableToBitmap"
|
|
|
|
.line 27
|
|
.line 28
|
|
const/high16 v5, -0x80000000
|
|
|
|
.line 29
|
|
.line 30
|
|
if-ne p2, v5, :cond_2
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result v6
|
|
|
|
.line 36
|
|
if-gtz v6, :cond_2
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-static {v4, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result p2
|
|
|
|
.line 42
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 43
|
|
.line 44
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
const-string p1, " to Bitmap with Target.SIZE_ORIGINAL because the Drawable has no intrinsic width"
|
|
|
|
.line 53
|
|
.line 54
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
move-result-object p1
|
|
|
|
.line 61
|
|
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
:cond_1
|
|
:goto_0
|
|
move-object p1, v2
|
|
|
|
.line 65
|
|
goto :goto_1
|
|
|
|
.line 66
|
|
:cond_2
|
|
if-ne p3, v5, :cond_3
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result v5
|
|
|
|
.line 72
|
|
if-gtz v5, :cond_3
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-static {v4, v3}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result p2
|
|
|
|
.line 78
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 79
|
|
.line 80
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
const-string p1, " to Bitmap with Target.SIZE_ORIGINAL because the Drawable has no intrinsic height"
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
move-result-object p1
|
|
|
|
.line 97
|
|
invoke-static {v4, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
goto :goto_0
|
|
|
|
.line 101
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
move-result v0
|
|
|
|
.line 105
|
|
if-lez v0, :cond_4
|
|
|
|
.line 106
|
|
.line 107
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result p2
|
|
|
|
.line 111
|
|
:cond_4
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
move-result v0
|
|
|
|
.line 115
|
|
if-lez v0, :cond_5
|
|
|
|
.line 116
|
|
.line 117
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
.line 118
|
|
.line 119
|
|
.line 120
|
|
move-result p3
|
|
|
|
.line 121
|
|
:cond_5
|
|
sget-object v0, Lcom/bumptech/glide/load/resource/bitmap/TransformationUtils;->d:Ljava/util/concurrent/locks/Lock;
|
|
|
|
.line 122
|
|
.line 123
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
|
|
|
|
.line 127
|
|
.line 128
|
|
invoke-interface {p0, p2, p3, v3}, Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;->e(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
move-result-object v3
|
|
|
|
.line 132
|
|
:try_start_0
|
|
new-instance v4, Landroid/graphics/Canvas;
|
|
|
|
.line 133
|
|
.line 134
|
|
invoke-direct {v4, v3}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
.line 135
|
|
.line 136
|
|
.line 137
|
|
invoke-virtual {p1, v1, v1, p2, p3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
.line 138
|
|
.line 139
|
|
.line 140
|
|
invoke-virtual {p1, v4}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 141
|
|
.line 142
|
|
.line 143
|
|
invoke-virtual {v4, v2}, Landroid/graphics/Canvas;->setBitmap(Landroid/graphics/Bitmap;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 144
|
|
.line 145
|
|
.line 146
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
|
|
|
|
.line 147
|
|
.line 148
|
|
.line 149
|
|
move-object p1, v3
|
|
|
|
.line 150
|
|
:goto_1
|
|
const/4 v1, 0x1
|
|
|
|
.line 151
|
|
goto :goto_2
|
|
|
|
.line 152
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 153
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
|
|
|
|
.line 154
|
|
.line 155
|
|
.line 156
|
|
throw p0
|
|
|
|
.line 157
|
|
:cond_6
|
|
move-object p1, v2
|
|
|
|
.line 158
|
|
:goto_2
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 159
|
|
.line 160
|
|
goto :goto_3
|
|
|
|
.line 161
|
|
:cond_7
|
|
sget-object p0, Lcom/bumptech/glide/load/resource/bitmap/DrawableToBitmapConverter;->a:Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
|
|
|
|
.line 162
|
|
.line 163
|
|
:goto_3
|
|
invoke-static {p1, p0}, Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;->b(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;
|
|
|
|
.line 164
|
|
.line 165
|
|
.line 166
|
|
move-result-object p0
|
|
|
|
.line 167
|
|
return-object p0
|
|
.end method
|