soul-browser/app/smali/androidx/core/graphics/BlendModeUtils$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

526 lines
10 KiB
Smali

.class synthetic Landroidx/core/graphics/BlendModeUtils$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/graphics/BlendModeUtils;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field public static final synthetic a:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 1
invoke-static {}, Landroidx/core/graphics/BlendModeCompat;->values()[Landroidx/core/graphics/BlendModeCompat;
.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, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 9
.line 10
const/4 v1, 0x1
.line 11
const/4 v2, 0x0
.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 v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 16
.line 17
aput v0, v2, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
.line 18
.line 19
:catch_1
const/4 v1, 0x3
.line 20
:try_start_2
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 21
.line 22
aput v1, v2, v0
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
.line 23
.line 24
:catch_2
const/4 v0, 0x4
.line 25
:try_start_3
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 26
.line 27
aput v0, v2, v1
:try_end_3
.catch Ljava/lang/NoSuchFieldError; {:try_start_3 .. :try_end_3} :catch_3
.line 28
.line 29
:catch_3
const/4 v1, 0x5
.line 30
:try_start_4
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 31
.line 32
aput v1, v2, v0
:try_end_4
.catch Ljava/lang/NoSuchFieldError; {:try_start_4 .. :try_end_4} :catch_4
.line 33
.line 34
:catch_4
const/4 v0, 0x6
.line 35
:try_start_5
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 36
.line 37
aput v0, v2, v1
:try_end_5
.catch Ljava/lang/NoSuchFieldError; {:try_start_5 .. :try_end_5} :catch_5
.line 38
.line 39
:catch_5
const/4 v1, 0x7
.line 40
:try_start_6
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 41
.line 42
aput v1, v2, v0
:try_end_6
.catch Ljava/lang/NoSuchFieldError; {:try_start_6 .. :try_end_6} :catch_6
.line 43
.line 44
:catch_6
const/16 v0, 0x8
.line 45
.line 46
:try_start_7
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 47
.line 48
aput v0, v2, v1
:try_end_7
.catch Ljava/lang/NoSuchFieldError; {:try_start_7 .. :try_end_7} :catch_7
.line 49
.line 50
:catch_7
const/16 v1, 0x9
.line 51
.line 52
:try_start_8
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 53
.line 54
aput v1, v2, v0
:try_end_8
.catch Ljava/lang/NoSuchFieldError; {:try_start_8 .. :try_end_8} :catch_8
.line 55
.line 56
:catch_8
const/16 v0, 0xa
.line 57
.line 58
:try_start_9
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 59
.line 60
aput v0, v2, v1
:try_end_9
.catch Ljava/lang/NoSuchFieldError; {:try_start_9 .. :try_end_9} :catch_9
.line 61
.line 62
:catch_9
const/16 v1, 0xb
.line 63
.line 64
:try_start_a
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 65
.line 66
aput v1, v2, v0
:try_end_a
.catch Ljava/lang/NoSuchFieldError; {:try_start_a .. :try_end_a} :catch_a
.line 67
.line 68
:catch_a
const/16 v0, 0xc
.line 69
.line 70
:try_start_b
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 71
.line 72
aput v0, v2, v1
:try_end_b
.catch Ljava/lang/NoSuchFieldError; {:try_start_b .. :try_end_b} :catch_b
.line 73
.line 74
:catch_b
const/16 v1, 0xd
.line 75
.line 76
:try_start_c
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 77
.line 78
aput v1, v2, v0
:try_end_c
.catch Ljava/lang/NoSuchFieldError; {:try_start_c .. :try_end_c} :catch_c
.line 79
.line 80
:catch_c
const/16 v0, 0xe
.line 81
.line 82
:try_start_d
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 83
.line 84
aput v0, v2, v1
:try_end_d
.catch Ljava/lang/NoSuchFieldError; {:try_start_d .. :try_end_d} :catch_d
.line 85
.line 86
:catch_d
const/16 v1, 0xf
.line 87
.line 88
:try_start_e
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 89
.line 90
aput v1, v2, v0
:try_end_e
.catch Ljava/lang/NoSuchFieldError; {:try_start_e .. :try_end_e} :catch_e
.line 91
.line 92
:catch_e
const/16 v0, 0x10
.line 93
.line 94
:try_start_f
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 95
.line 96
aput v0, v2, v1
:try_end_f
.catch Ljava/lang/NoSuchFieldError; {:try_start_f .. :try_end_f} :catch_f
.line 97
.line 98
:catch_f
const/16 v1, 0x11
.line 99
.line 100
:try_start_10
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 101
.line 102
aput v1, v2, v0
:try_end_10
.catch Ljava/lang/NoSuchFieldError; {:try_start_10 .. :try_end_10} :catch_10
.line 103
.line 104
:catch_10
const/16 v0, 0x12
.line 105
.line 106
:try_start_11
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 107
.line 108
aput v0, v2, v1
:try_end_11
.catch Ljava/lang/NoSuchFieldError; {:try_start_11 .. :try_end_11} :catch_11
.line 109
.line 110
:catch_11
const/16 v1, 0x13
.line 111
.line 112
:try_start_12
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 113
.line 114
aput v1, v2, v0
:try_end_12
.catch Ljava/lang/NoSuchFieldError; {:try_start_12 .. :try_end_12} :catch_12
.line 115
.line 116
:catch_12
const/16 v0, 0x14
.line 117
.line 118
:try_start_13
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 119
.line 120
aput v0, v2, v1
:try_end_13
.catch Ljava/lang/NoSuchFieldError; {:try_start_13 .. :try_end_13} :catch_13
.line 121
.line 122
:catch_13
const/16 v1, 0x15
.line 123
.line 124
:try_start_14
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 125
.line 126
aput v1, v2, v0
:try_end_14
.catch Ljava/lang/NoSuchFieldError; {:try_start_14 .. :try_end_14} :catch_14
.line 127
.line 128
:catch_14
const/16 v0, 0x16
.line 129
.line 130
:try_start_15
sget-object v2, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 131
.line 132
aput v0, v2, v1
:try_end_15
.catch Ljava/lang/NoSuchFieldError; {:try_start_15 .. :try_end_15} :catch_15
.line 133
.line 134
:catch_15
:try_start_16
sget-object v1, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 135
.line 136
const/16 v2, 0x17
.line 137
.line 138
aput v2, v1, v0
:try_end_16
.catch Ljava/lang/NoSuchFieldError; {:try_start_16 .. :try_end_16} :catch_16
.line 139
.line 140
:catch_16
:try_start_17
sget-object v0, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 141
.line 142
const/16 v1, 0x17
.line 143
.line 144
const/16 v2, 0x18
.line 145
.line 146
aput v2, v0, v1
:try_end_17
.catch Ljava/lang/NoSuchFieldError; {:try_start_17 .. :try_end_17} :catch_17
.line 147
.line 148
:catch_17
:try_start_18
sget-object v0, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 149
.line 150
const/16 v1, 0x18
.line 151
.line 152
const/16 v2, 0x19
.line 153
.line 154
aput v2, v0, v1
:try_end_18
.catch Ljava/lang/NoSuchFieldError; {:try_start_18 .. :try_end_18} :catch_18
.line 155
.line 156
:catch_18
:try_start_19
sget-object v0, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 157
.line 158
const/16 v1, 0x19
.line 159
.line 160
const/16 v2, 0x1a
.line 161
.line 162
aput v2, v0, v1
:try_end_19
.catch Ljava/lang/NoSuchFieldError; {:try_start_19 .. :try_end_19} :catch_19
.line 163
.line 164
:catch_19
:try_start_1a
sget-object v0, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 165
.line 166
const/16 v1, 0x1a
.line 167
.line 168
const/16 v2, 0x1b
.line 169
.line 170
aput v2, v0, v1
:try_end_1a
.catch Ljava/lang/NoSuchFieldError; {:try_start_1a .. :try_end_1a} :catch_1a
.line 171
.line 172
:catch_1a
:try_start_1b
sget-object v0, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 173
.line 174
const/16 v1, 0x1b
.line 175
.line 176
const/16 v2, 0x1c
.line 177
.line 178
aput v2, v0, v1
:try_end_1b
.catch Ljava/lang/NoSuchFieldError; {:try_start_1b .. :try_end_1b} :catch_1b
.line 179
.line 180
:catch_1b
:try_start_1c
sget-object v0, Landroidx/core/graphics/BlendModeUtils$1;->a:[I
.line 181
.line 182
const/16 v1, 0x1c
.line 183
.line 184
const/16 v2, 0x1d
.line 185
.line 186
aput v2, v0, v1
:try_end_1c
.catch Ljava/lang/NoSuchFieldError; {:try_start_1c .. :try_end_1c} :catch_1c
.line 187
.line 188
:catch_1c
return-void
.end method