soul-browser/sources/java/com/google/android/gms/cast/zzbt.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

125 lines
5.4 KiB
Java

package com.google.android.gms.cast;
import android.os.Parcelable;
/* loaded from: classes.dex */
public final class zzbt implements Parcelable.Creator {
/* JADX WARN: Failed to find 'out' block for switch in B:6:0x002a. Please report as an issue. */
/* JADX WARN: Removed duplicated region for block: B:5:0x0022 */
@Override // android.os.Parcelable.Creator
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object createFromParcel(android.os.Parcel r24) {
/*
r23 = this;
r0 = r24
int r1 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r0)
r2 = 0
r4 = 0
r5 = 0
r11 = r2
r21 = r11
r2 = r4
r8 = r2
r9 = r8
r10 = r9
r15 = r10
r17 = r15
r18 = r17
r19 = r18
r20 = r19
L1b:
r13 = r5
L1c:
int r3 = r0.dataPosition()
if (r3 >= r1) goto L7a
int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r0)
int r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r3)
switch(r5) {
case 2: goto L70;
case 3: goto L66;
case 4: goto L61;
case 5: goto L5b;
case 6: goto L56;
case 7: goto L51;
case 8: goto L4c;
case 9: goto L47;
case 10: goto L42;
case 11: goto L3d;
case 12: goto L38;
case 13: goto L31;
default: goto L2d;
}
L2d:
com.google.android.gms.common.internal.safeparcel.SafeParcelReader.skipUnknownField(r0, r3)
goto L1c
L31:
long r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r0, r3)
r21 = r5
goto L1c
L38:
java.lang.String r20 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r0, r3)
goto L1c
L3d:
java.lang.String r19 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r0, r3)
goto L1c
L42:
java.lang.String r18 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r0, r3)
goto L1c
L47:
java.lang.String r17 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r0, r3)
goto L1c
L4c:
java.lang.String r2 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r0, r3)
goto L1c
L51:
long[] r15 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createLongArray(r0, r3)
goto L1c
L56:
double r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r0, r3)
goto L1b
L5b:
long r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r0, r3)
r11 = r5
goto L1c
L61:
java.lang.Boolean r10 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBooleanObject(r0, r3)
goto L1c
L66:
android.os.Parcelable$Creator<com.google.android.gms.cast.MediaQueueData> r5 = com.google.android.gms.cast.MediaQueueData.CREATOR
android.os.Parcelable r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelable(r0, r3, r5)
r9 = r3
com.google.android.gms.cast.MediaQueueData r9 = (com.google.android.gms.cast.MediaQueueData) r9
goto L1c
L70:
android.os.Parcelable$Creator<com.google.android.gms.cast.MediaInfo> r5 = com.google.android.gms.cast.MediaInfo.CREATOR
android.os.Parcelable r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelable(r0, r3, r5)
r8 = r3
com.google.android.gms.cast.MediaInfo r8 = (com.google.android.gms.cast.MediaInfo) r8
goto L1c
L7a:
com.google.android.gms.common.internal.safeparcel.SafeParcelReader.ensureAtEnd(r0, r1)
com.google.android.gms.cast.MediaLoadRequestData r7 = new com.google.android.gms.cast.MediaLoadRequestData
java.util.regex.Pattern r0 = com.google.android.gms.cast.internal.CastUtils.f3603a
if (r2 != 0) goto L86
L83:
r16 = r4
goto L8d
L86:
org.json.JSONObject r0 = new org.json.JSONObject // Catch: org.json.JSONException -> L83
r0.<init>(r2) // Catch: org.json.JSONException -> L83
r16 = r0
L8d:
r7.<init>(r8, r9, r10, r11, r13, r15, r16, r17, r18, r19, r20, r21)
return r7
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.cast.zzbt.createFromParcel(android.os.Parcel):java.lang.Object");
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ Object[] newArray(int i) {
return new MediaLoadRequestData[i];
}
}