soul-browser/sources/java/androidx/palette/graphics/Target.java
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

84 lines
2.3 KiB
Java

package androidx.palette.graphics;
/* loaded from: classes.dex */
public final class Target {
public static final Target d;
public static final Target e;
public static final Target f;
public static final Target g;
public static final Target h;
public static final Target i;
/* renamed from: a, reason: collision with root package name */
public final float[] f1435a;
public final float[] b;
/* renamed from: c, reason: collision with root package name */
public final float[] f1436c;
/* loaded from: classes.dex */
public static final class Builder {
}
static {
Target target = new Target();
d = target;
float[] fArr = target.b;
fArr[0] = 0.55f;
fArr[1] = 0.74f;
float[] fArr2 = target.f1435a;
fArr2[0] = 0.35f;
fArr2[1] = 1.0f;
Target target2 = new Target();
e = target2;
float[] fArr3 = target2.b;
fArr3[0] = 0.3f;
fArr3[1] = 0.5f;
fArr3[2] = 0.7f;
float[] fArr4 = target2.f1435a;
fArr4[0] = 0.35f;
fArr4[1] = 1.0f;
Target target3 = new Target();
f = target3;
float[] fArr5 = target3.b;
fArr5[1] = 0.26f;
fArr5[2] = 0.45f;
float[] fArr6 = target3.f1435a;
fArr6[0] = 0.35f;
fArr6[1] = 1.0f;
Target target4 = new Target();
g = target4;
float[] fArr7 = target4.b;
fArr7[0] = 0.55f;
fArr7[1] = 0.74f;
float[] fArr8 = target4.f1435a;
fArr8[1] = 0.3f;
fArr8[2] = 0.4f;
Target target5 = new Target();
h = target5;
float[] fArr9 = target5.b;
fArr9[0] = 0.3f;
fArr9[1] = 0.5f;
fArr9[2] = 0.7f;
float[] fArr10 = target5.f1435a;
fArr10[1] = 0.3f;
fArr10[2] = 0.4f;
Target target6 = new Target();
i = target6;
float[] fArr11 = target6.b;
fArr11[1] = 0.26f;
fArr11[2] = 0.45f;
float[] fArr12 = target6.f1435a;
fArr12[1] = 0.3f;
fArr12[2] = 0.4f;
}
public Target() {
this.f1435a = r1;
this.b = r2;
this.f1436c = r0;
float[] fArr = {0.0f, 0.5f, 1.0f};
float[] fArr2 = {0.0f, 0.5f, 1.0f};
float[] fArr3 = {0.24f, 0.52f, 0.24f};
}
}