soul-browser/app/smali/com/bumptech/glide/Registry.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

784 lines
17 KiB
Smali

.class public Lcom/bumptech/glide/Registry;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/Registry$NoResultEncoderAvailableException;,
Lcom/bumptech/glide/Registry$NoSourceEncoderAvailableException;,
Lcom/bumptech/glide/Registry$NoImageHeaderParserException;,
Lcom/bumptech/glide/Registry$MissingComponentException;,
Lcom/bumptech/glide/Registry$NoModelLoaderAvailableException;
}
.end annotation
# instance fields
.field public final a:Lcom/bumptech/glide/load/model/ModelLoaderRegistry;
.field public final b:Lcom/bumptech/glide/provider/EncoderRegistry;
.field public final c:Lcom/bumptech/glide/provider/ResourceDecoderRegistry;
.field public final d:Lcom/bumptech/glide/provider/ResourceEncoderRegistry;
.field public final e:Lcom/bumptech/glide/load/data/DataRewinderRegistry;
.field public final f:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;
.field public final g:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;
.field public final h:Lcom/bumptech/glide/provider/ModelToResourceClassCache;
.field public final i:Lcom/bumptech/glide/provider/LoadPathCache;
.field public final j:Landroidx/core/util/Pools$Pool;
# direct methods
.method public constructor <init>()V
.locals 8
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
.line 3
.line 4
new-instance v0, Lcom/bumptech/glide/provider/ModelToResourceClassCache;
.line 5
.line 6
invoke-direct {v0}, Lcom/bumptech/glide/provider/ModelToResourceClassCache;-><init>()V
.line 7
.line 8
.line 9
iput-object v0, p0, Lcom/bumptech/glide/Registry;->h:Lcom/bumptech/glide/provider/ModelToResourceClassCache;
.line 10
.line 11
new-instance v0, Lcom/bumptech/glide/provider/LoadPathCache;
.line 12
.line 13
invoke-direct {v0}, Lcom/bumptech/glide/provider/LoadPathCache;-><init>()V
.line 14
.line 15
.line 16
iput-object v0, p0, Lcom/bumptech/glide/Registry;->i:Lcom/bumptech/glide/provider/LoadPathCache;
.line 17
.line 18
invoke-static {}, Lcom/bumptech/glide/util/pool/FactoryPools;->b()Landroidx/core/util/Pools$Pool;
.line 19
.line 20
.line 21
move-result-object v0
.line 22
iput-object v0, p0, Lcom/bumptech/glide/Registry;->j:Landroidx/core/util/Pools$Pool;
.line 23
.line 24
new-instance v1, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;
.line 25
.line 26
invoke-direct {v1, v0}, Lcom/bumptech/glide/load/model/ModelLoaderRegistry;-><init>(Landroidx/core/util/Pools$Pool;)V
.line 27
.line 28
.line 29
iput-object v1, p0, Lcom/bumptech/glide/Registry;->a:Lcom/bumptech/glide/load/model/ModelLoaderRegistry;
.line 30
.line 31
new-instance v0, Lcom/bumptech/glide/provider/EncoderRegistry;
.line 32
.line 33
invoke-direct {v0}, Lcom/bumptech/glide/provider/EncoderRegistry;-><init>()V
.line 34
.line 35
.line 36
iput-object v0, p0, Lcom/bumptech/glide/Registry;->b:Lcom/bumptech/glide/provider/EncoderRegistry;
.line 37
.line 38
new-instance v0, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;
.line 39
.line 40
invoke-direct {v0}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;-><init>()V
.line 41
.line 42
.line 43
iput-object v0, p0, Lcom/bumptech/glide/Registry;->c:Lcom/bumptech/glide/provider/ResourceDecoderRegistry;
.line 44
.line 45
new-instance v0, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;
.line 46
.line 47
invoke-direct {v0}, Lcom/bumptech/glide/provider/ResourceEncoderRegistry;-><init>()V
.line 48
.line 49
.line 50
iput-object v0, p0, Lcom/bumptech/glide/Registry;->d:Lcom/bumptech/glide/provider/ResourceEncoderRegistry;
.line 51
.line 52
new-instance v0, Lcom/bumptech/glide/load/data/DataRewinderRegistry;
.line 53
.line 54
invoke-direct {v0}, Lcom/bumptech/glide/load/data/DataRewinderRegistry;-><init>()V
.line 55
.line 56
.line 57
iput-object v0, p0, Lcom/bumptech/glide/Registry;->e:Lcom/bumptech/glide/load/data/DataRewinderRegistry;
.line 58
.line 59
new-instance v0, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;
.line 60
.line 61
invoke-direct {v0}, Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;-><init>()V
.line 62
.line 63
.line 64
iput-object v0, p0, Lcom/bumptech/glide/Registry;->f:Lcom/bumptech/glide/load/resource/transcode/TranscoderRegistry;
.line 65
.line 66
new-instance v0, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;
.line 67
.line 68
invoke-direct {v0}, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;-><init>()V
.line 69
.line 70
.line 71
iput-object v0, p0, Lcom/bumptech/glide/Registry;->g:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;
.line 72
.line 73
const-string v0, "Animation"
.line 74
.line 75
const-string v1, "Bitmap"
.line 76
.line 77
const-string v2, "BitmapDrawable"
.line 78
.line 79
filled-new-array {v0, v1, v2}, [Ljava/lang/String;
.line 80
.line 81
.line 82
move-result-object v0
.line 83
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
.line 84
.line 85
.line 86
move-result-object v0
.line 87
new-instance v1, Ljava/util/ArrayList;
.line 88
.line 89
invoke-interface {v0}, Ljava/util/List;->size()I
.line 90
.line 91
.line 92
move-result v2
.line 93
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
.line 94
.line 95
.line 96
const-string v2, "legacy_prepend_all"
.line 97
.line 98
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 99
.line 100
.line 101
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
.line 102
.line 103
.line 104
move-result-object v0
.line 105
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
.line 106
.line 107
.line 108
move-result v2
.line 109
if-eqz v2, :cond_0
.line 110
.line 111
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
.line 112
.line 113
.line 114
move-result-object v2
.line 115
check-cast v2, Ljava/lang/String;
.line 116
.line 117
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 118
.line 119
.line 120
goto :goto_0
.line 121
:cond_0
const-string v0, "legacy_append"
.line 122
.line 123
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 124
.line 125
.line 126
iget-object v0, p0, Lcom/bumptech/glide/Registry;->c:Lcom/bumptech/glide/provider/ResourceDecoderRegistry;
.line 127
.line 128
monitor-enter v0
.line 129
:try_start_0
new-instance v2, Ljava/util/ArrayList;
.line 130
.line 131
iget-object v3, v0, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->a:Ljava/util/ArrayList;
.line 132
.line 133
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 134
.line 135
.line 136
iget-object v3, v0, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->a:Ljava/util/ArrayList;
.line 137
.line 138
invoke-virtual {v3}, Ljava/util/ArrayList;->clear()V
.line 139
.line 140
.line 141
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
.line 142
.line 143
.line 144
move-result v3
.line 145
const/4 v4, 0x0
.line 146
move v5, v4
.line 147
:goto_1
if-ge v5, v3, :cond_1
.line 148
.line 149
invoke-virtual {v1, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
.line 150
.line 151
.line 152
move-result-object v6
.line 153
add-int/lit8 v5, v5, 0x1
.line 154
.line 155
check-cast v6, Ljava/lang/String;
.line 156
.line 157
iget-object v7, v0, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->a:Ljava/util/ArrayList;
.line 158
.line 159
invoke-virtual {v7, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 160
.line 161
.line 162
goto :goto_1
.line 163
:catchall_0
move-exception v1
.line 164
goto :goto_3
.line 165
:cond_1
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
.line 166
.line 167
.line 168
move-result v3
.line 169
:cond_2
:goto_2
if-ge v4, v3, :cond_3
.line 170
.line 171
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
.line 172
.line 173
.line 174
move-result-object v5
.line 175
add-int/lit8 v4, v4, 0x1
.line 176
.line 177
check-cast v5, Ljava/lang/String;
.line 178
.line 179
invoke-virtual {v1, v5}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
.line 180
.line 181
.line 182
move-result v6
.line 183
if-nez v6, :cond_2
.line 184
.line 185
iget-object v6, v0, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->a:Ljava/util/ArrayList;
.line 186
.line 187
invoke-virtual {v6, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 188
.line 189
.line 190
goto :goto_2
.line 191
:cond_3
monitor-exit v0
.line 192
return-void
.line 193
:goto_3
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 194
throw v1
.end method
# virtual methods
.method public final a(Lcom/bumptech/glide/load/ResourceDecoder;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/bumptech/glide/Registry;->c:Lcom/bumptech/glide/provider/ResourceDecoderRegistry;
.line 2
.line 3
invoke-virtual {v0, p1, p2, p3, p4}, Lcom/bumptech/glide/provider/ResourceDecoderRegistry;->a(Lcom/bumptech/glide/load/ResourceDecoder;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)V
.line 4
.line 5
.line 6
return-void
.end method
.method public final b()Ljava/util/ArrayList;
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/Registry;->g:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;
.line 2
.line 3
monitor-enter v0
.line 4
:try_start_0
iget-object v1, v0, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;->a:Ljava/util/ArrayList;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
.line 6
monitor-exit v0
.line 7
invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z
.line 8
.line 9
.line 10
move-result v0
.line 11
if-nez v0, :cond_0
.line 12
.line 13
return-object v1
.line 14
:cond_0
new-instance v0, Lcom/bumptech/glide/Registry$NoImageHeaderParserException;
.line 15
.line 16
const-string v1, "Failed to find image header parser."
.line 17
.line 18
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
.line 19
.line 20
.line 21
throw v0
.line 22
:catchall_0
move-exception v1
.line 23
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 24
throw v1
.end method
.method public final c(Ljava/lang/Object;)Lcom/bumptech/glide/load/data/DataRewinder;
.locals 6
.line 1
iget-object v0, p0, Lcom/bumptech/glide/Registry;->e:Lcom/bumptech/glide/load/data/DataRewinderRegistry;
.line 2
.line 3
monitor-enter v0
.line 4
:try_start_0
invoke-static {p1}, Lcom/bumptech/glide/util/Preconditions;->b(Ljava/lang/Object;)V
.line 5
.line 6
.line 7
iget-object v1, v0, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->a:Ljava/util/HashMap;
.line 8
.line 9
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 10
.line 11
.line 12
move-result-object v2
.line 13
invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
.line 14
.line 15
.line 16
move-result-object v1
.line 17
check-cast v1, Lcom/bumptech/glide/load/data/DataRewinder$Factory;
.line 18
.line 19
if-nez v1, :cond_1
.line 20
.line 21
iget-object v2, v0, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->a:Ljava/util/HashMap;
.line 22
.line 23
invoke-virtual {v2}, Ljava/util/HashMap;->values()Ljava/util/Collection;
.line 24
.line 25
.line 26
move-result-object v2
.line 27
invoke-interface {v2}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
.line 28
.line 29
.line 30
move-result-object v2
.line 31
:cond_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
.line 32
.line 33
.line 34
move-result v3
.line 35
if-eqz v3, :cond_1
.line 36
.line 37
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
.line 38
.line 39
.line 40
move-result-object v3
.line 41
check-cast v3, Lcom/bumptech/glide/load/data/DataRewinder$Factory;
.line 42
.line 43
invoke-interface {v3}, Lcom/bumptech/glide/load/data/DataRewinder$Factory;->a()Ljava/lang/Class;
.line 44
.line 45
.line 46
move-result-object v4
.line 47
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
.line 48
.line 49
.line 50
move-result-object v5
.line 51
invoke-virtual {v4, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
.line 52
.line 53
.line 54
move-result v4
.line 55
if-eqz v4, :cond_0
.line 56
.line 57
move-object v1, v3
.line 58
goto :goto_0
.line 59
:catchall_0
move-exception p1
.line 60
goto :goto_1
.line 61
:cond_1
:goto_0
if-nez v1, :cond_2
.line 62
.line 63
sget-object v1, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->b:Lcom/bumptech/glide/load/data/DataRewinder$Factory;
.line 64
.line 65
:cond_2
invoke-interface {v1, p1}, Lcom/bumptech/glide/load/data/DataRewinder$Factory;->b(Ljava/lang/Object;)Lcom/bumptech/glide/load/data/DataRewinder;
.line 66
.line 67
.line 68
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 69
monitor-exit v0
.line 70
return-object p1
.line 71
:goto_1
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 72
throw p1
.end method
.method public final d(Lcom/bumptech/glide/load/ImageHeaderParser;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/bumptech/glide/Registry;->g:Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;
.line 2
.line 3
monitor-enter v0
.line 4
:try_start_0
iget-object v1, v0, Lcom/bumptech/glide/provider/ImageHeaderParserRegistry;->a:Ljava/util/ArrayList;
.line 5
.line 6
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
.line 8
.line 9
monitor-exit v0
.line 10
return-void
.line 11
:catchall_0
move-exception p1
.line 12
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 13
throw p1
.end method
.method public final e(Lcom/bumptech/glide/load/data/DataRewinder$Factory;)V
.locals 3
.line 1
iget-object v0, p0, Lcom/bumptech/glide/Registry;->e:Lcom/bumptech/glide/load/data/DataRewinderRegistry;
.line 2
.line 3
monitor-enter v0
.line 4
:try_start_0
iget-object v1, v0, Lcom/bumptech/glide/load/data/DataRewinderRegistry;->a:Ljava/util/HashMap;
.line 5
.line 6
invoke-interface {p1}, Lcom/bumptech/glide/load/data/DataRewinder$Factory;->a()Ljava/lang/Class;
.line 7
.line 8
.line 9
move-result-object v2
.line 10
invoke-virtual {v1, v2, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 11
.line 12
.line 13
monitor-exit v0
.line 14
return-void
.line 15
:catchall_0
move-exception p1
.line 16
:try_start_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 17
throw p1
.end method