soul-browser/sources/java/kotlinx/coroutines/DebugKt.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

88 lines
3.2 KiB
Java

package kotlinx.coroutines;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0002\n\u0000¨\u0006\u0000"}, d2 = {"kotlinx-coroutines-core"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes4.dex */
public final class DebugKt {
/* JADX WARN: Code restructure failed: missing block: B:19:0x0034, code lost:
if (r0.equals("on") != false) goto L23;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x003f, code lost:
r0 = kotlinx.coroutines.internal.SystemPropsKt.c("kotlinx.coroutines.stacktrace.recovery");
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0045, code lost:
if (r0 == null) goto L26;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x0047, code lost:
java.lang.Boolean.parseBoolean(r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x003d, code lost:
if (r0.equals(com.google.android.gms.ads.RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED) != false) goto L23;
*/
static {
/*
java.lang.String r0 = "kotlinx.coroutines.debug"
java.lang.String r0 = kotlinx.coroutines.internal.SystemPropsKt.c(r0)
if (r0 == 0) goto L6b
int r1 = r0.hashCode()
if (r1 == 0) goto L37
r2 = 3551(0xddf, float:4.976E-42)
if (r1 == r2) goto L2e
r2 = 109935(0x1ad6f, float:1.54052E-40)
if (r1 == r2) goto L25
r2 = 3005871(0x2dddaf, float:4.212122E-39)
if (r1 != r2) goto L4e
java.lang.String r1 = "auto"
boolean r1 = r0.equals(r1)
if (r1 == 0) goto L4e
goto L6b
L25:
java.lang.String r1 = "off"
boolean r1 = r0.equals(r1)
if (r1 == 0) goto L4e
goto L6b
L2e:
java.lang.String r1 = "on"
boolean r1 = r0.equals(r1)
if (r1 == 0) goto L4e
goto L3f
L37:
java.lang.String r1 = ""
boolean r1 = r0.equals(r1)
if (r1 == 0) goto L4e
L3f:
java.lang.String r0 = "kotlinx.coroutines.stacktrace.recovery"
java.lang.String r0 = kotlinx.coroutines.internal.SystemPropsKt.c(r0)
if (r0 == 0) goto L4c
boolean r0 = java.lang.Boolean.parseBoolean(r0)
goto L6b
L4c:
r0 = 1
goto L6b
L4e:
java.lang.IllegalStateException r1 = new java.lang.IllegalStateException
java.lang.StringBuilder r2 = new java.lang.StringBuilder
java.lang.String r3 = "System property 'kotlinx.coroutines.debug' has unrecognized value '"
r2.<init>(r3)
r2.append(r0)
r0 = 39
r2.append(r0)
java.lang.String r0 = r2.toString()
java.lang.String r0 = r0.toString()
r1.<init>(r0)
throw r1
L6b:
java.util.concurrent.atomic.AtomicLong r0 = new java.util.concurrent.atomic.AtomicLong
r1 = 0
r0.<init>(r1)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.DebugKt.<clinit>():void");
}
}