soul-browser/app/smali/com/bumptech/glide/RequestBuilder$1.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

327 lines
6.5 KiB
Smali

.class synthetic Lcom/bumptech/glide/RequestBuilder$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bumptech/glide/RequestBuilder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field public static final synthetic a:[I
.field public static final synthetic b:[I
# direct methods
.method static constructor <clinit>()V
.locals 6
.line 1
invoke-static {}, Lcom/bumptech/glide/Priority;->values()[Lcom/bumptech/glide/Priority;
.line 2
.line 3
.line 4
move-result-object v0
.line 5
array-length v0, v0
.line 6
new-array v0, v0, [I
.line 7
.line 8
sput-object v0, Lcom/bumptech/glide/RequestBuilder$1;->b:[I
.line 9
.line 10
const/4 v1, 0x1
.line 11
const/4 v2, 0x3
.line 12
:try_start_0
aput v1, v0, v2
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
.line 13
.line 14
:catch_0
const/4 v0, 0x2
.line 15
:try_start_1
sget-object v3, Lcom/bumptech/glide/RequestBuilder$1;->b:[I
.line 16
.line 17
aput v0, v3, v0
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
.line 18
.line 19
:catch_1
:try_start_2
sget-object v3, Lcom/bumptech/glide/RequestBuilder$1;->b:[I
.line 20
.line 21
aput v2, v3, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
.line 22
.line 23
:catch_2
const/4 v3, 0x4
.line 24
:try_start_3
sget-object v4, Lcom/bumptech/glide/RequestBuilder$1;->b:[I
.line 25
.line 26
const/4 v5, 0x0
.line 27
aput v3, v4, v5
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
.line 28
.line 29
:catch_3
invoke-static {}, Landroid/widget/ImageView$ScaleType;->values()[Landroid/widget/ImageView$ScaleType;
.line 30
.line 31
.line 32
move-result-object v4
.line 33
array-length v4, v4
.line 34
new-array v4, v4, [I
.line 35
.line 36
sput-object v4, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 37
.line 38
:try_start_4
sget-object v5, Landroid/widget/ImageView$ScaleType;->CENTER_CROP:Landroid/widget/ImageView$ScaleType;
.line 39
.line 40
invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I
.line 41
.line 42
.line 43
move-result v5
.line 44
aput v1, v4, v5
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
.line 45
.line 46
:catch_4
:try_start_5
sget-object v1, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 47
.line 48
sget-object v4, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;
.line 49
.line 50
invoke-virtual {v4}, Ljava/lang/Enum;->ordinal()I
.line 51
.line 52
.line 53
move-result v4
.line 54
aput v0, v1, v4
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
.line 55
.line 56
:catch_5
:try_start_6
sget-object v0, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 57
.line 58
sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;
.line 59
.line 60
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
.line 61
.line 62
.line 63
move-result v1
.line 64
aput v2, v0, v1
:try_end_6
.catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6
.line 65
.line 66
:catch_6
:try_start_7
sget-object v0, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 67
.line 68
sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_START:Landroid/widget/ImageView$ScaleType;
.line 69
.line 70
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
.line 71
.line 72
.line 73
move-result v1
.line 74
aput v3, v0, v1
:try_end_7
.catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_7
.line 75
.line 76
:catch_7
:try_start_8
sget-object v0, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 77
.line 78
sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_END:Landroid/widget/ImageView$ScaleType;
.line 79
.line 80
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
.line 81
.line 82
.line 83
move-result v1
.line 84
const/4 v2, 0x5
.line 85
aput v2, v0, v1
:try_end_8
.catch Ljava/lang/NoSuchFieldError; {:try_start_8 .. :try_end_8} :catch_8
.line 86
.line 87
:catch_8
:try_start_9
sget-object v0, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 88
.line 89
sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;
.line 90
.line 91
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
.line 92
.line 93
.line 94
move-result v1
.line 95
const/4 v2, 0x6
.line 96
aput v2, v0, v1
:try_end_9
.catch Ljava/lang/NoSuchFieldError; {:try_start_9 .. :try_end_9} :catch_9
.line 97
.line 98
:catch_9
:try_start_a
sget-object v0, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 99
.line 100
sget-object v1, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;
.line 101
.line 102
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
.line 103
.line 104
.line 105
move-result v1
.line 106
const/4 v2, 0x7
.line 107
aput v2, v0, v1
:try_end_a
.catch Ljava/lang/NoSuchFieldError; {:try_start_a .. :try_end_a} :catch_a
.line 108
.line 109
:catch_a
:try_start_b
sget-object v0, Lcom/bumptech/glide/RequestBuilder$1;->a:[I
.line 110
.line 111
sget-object v1, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
.line 112
.line 113
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
.line 114
.line 115
.line 116
move-result v1
.line 117
const/16 v2, 0x8
.line 118
.line 119
aput v2, v0, v1
:try_end_b
.catch Ljava/lang/NoSuchFieldError; {:try_start_b .. :try_end_b} :catch_b
.line 120
.line 121
:catch_b
return-void
.end method