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

234 lines
7.5 KiB
Java

package com.google.android.gms.dynamic;
import android.content.Intent;
import android.os.Bundle;
import android.os.IInterface;
import android.os.Parcel;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.internal.common.zzc;
/* loaded from: classes.dex */
public interface IFragmentWrapper extends IInterface {
/* loaded from: classes.dex */
public static abstract class Stub extends com.google.android.gms.internal.common.zzb implements IFragmentWrapper {
public Stub() {
super("com.google.android.gms.dynamic.IFragmentWrapper");
}
@Override // com.google.android.gms.internal.common.zzb
public final boolean zza(int i, Parcel parcel, Parcel parcel2, int i2) {
switch (i) {
case 2:
ObjectWrapper zzb = zzb();
parcel2.writeNoException();
zzc.d(parcel2, zzb);
return true;
case 3:
Bundle zzc = zzc();
parcel2.writeNoException();
int i3 = zzc.f9911a;
if (zzc == null) {
parcel2.writeInt(0);
} else {
parcel2.writeInt(1);
zzc.writeToParcel(parcel2, 1);
}
return true;
case 4:
int zzd = zzd();
parcel2.writeNoException();
parcel2.writeInt(zzd);
return true;
case 5:
IFragmentWrapper zze = zze();
parcel2.writeNoException();
zzc.d(parcel2, zze);
return true;
case 6:
ObjectWrapper zzf = zzf();
parcel2.writeNoException();
zzc.d(parcel2, zzf);
return true;
case 7:
boolean zzg = zzg();
parcel2.writeNoException();
int i4 = zzc.f9911a;
parcel2.writeInt(zzg ? 1 : 0);
return true;
case 8:
String zzh = zzh();
parcel2.writeNoException();
parcel2.writeString(zzh);
return true;
case 9:
IFragmentWrapper zzi = zzi();
parcel2.writeNoException();
zzc.d(parcel2, zzi);
return true;
case 10:
int zzj = zzj();
parcel2.writeNoException();
parcel2.writeInt(zzj);
return true;
case 11:
boolean zzk = zzk();
parcel2.writeNoException();
int i5 = zzc.f9911a;
parcel2.writeInt(zzk ? 1 : 0);
return true;
case 12:
ObjectWrapper zzl = zzl();
parcel2.writeNoException();
zzc.d(parcel2, zzl);
return true;
case 13:
boolean zzm = zzm();
parcel2.writeNoException();
int i6 = zzc.f9911a;
parcel2.writeInt(zzm ? 1 : 0);
return true;
case 14:
boolean zzn = zzn();
parcel2.writeNoException();
int i7 = zzc.f9911a;
parcel2.writeInt(zzn ? 1 : 0);
return true;
case 15:
boolean zzo = zzo();
parcel2.writeNoException();
int i8 = zzc.f9911a;
parcel2.writeInt(zzo ? 1 : 0);
return true;
case 16:
boolean zzp = zzp();
parcel2.writeNoException();
int i9 = zzc.f9911a;
parcel2.writeInt(zzp ? 1 : 0);
return true;
case 17:
boolean zzq = zzq();
parcel2.writeNoException();
int i10 = zzc.f9911a;
parcel2.writeInt(zzq ? 1 : 0);
return true;
case 18:
boolean zzr = zzr();
parcel2.writeNoException();
int i11 = zzc.f9911a;
parcel2.writeInt(zzr ? 1 : 0);
return true;
case 19:
boolean zzs = zzs();
parcel2.writeNoException();
int i12 = zzc.f9911a;
parcel2.writeInt(zzs ? 1 : 0);
return true;
case 20:
IObjectWrapper I1 = IObjectWrapper.Stub.I1(parcel.readStrongBinder());
zzc.e(parcel);
q(I1);
parcel2.writeNoException();
return true;
case 21:
boolean a2 = zzc.a(parcel);
zzc.e(parcel);
zzu(a2);
parcel2.writeNoException();
return true;
case 22:
boolean a3 = zzc.a(parcel);
zzc.e(parcel);
x0(a3);
parcel2.writeNoException();
return true;
case ConnectionResult.API_DISABLED /* 23 */:
boolean a4 = zzc.a(parcel);
zzc.e(parcel);
zzw(a4);
parcel2.writeNoException();
return true;
case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
boolean a5 = zzc.a(parcel);
zzc.e(parcel);
K4(a5);
parcel2.writeNoException();
return true;
case 25:
Intent intent = (Intent) zzc.b(parcel, Intent.CREATOR);
zzc.e(parcel);
J3(intent);
parcel2.writeNoException();
return true;
case 26:
Intent intent2 = (Intent) zzc.b(parcel, Intent.CREATOR);
int readInt = parcel.readInt();
zzc.e(parcel);
M1(intent2, readInt);
parcel2.writeNoException();
return true;
case 27:
IObjectWrapper I12 = IObjectWrapper.Stub.I1(parcel.readStrongBinder());
zzc.e(parcel);
D4(I12);
parcel2.writeNoException();
return true;
default:
return false;
}
}
}
void D4(IObjectWrapper iObjectWrapper);
void J3(Intent intent);
void K4(boolean z);
void M1(Intent intent, int i);
void q(IObjectWrapper iObjectWrapper);
void x0(boolean z);
ObjectWrapper zzb();
Bundle zzc();
int zzd();
IFragmentWrapper zze();
ObjectWrapper zzf();
boolean zzg();
String zzh();
IFragmentWrapper zzi();
int zzj();
boolean zzk();
ObjectWrapper zzl();
boolean zzm();
boolean zzn();
boolean zzo();
boolean zzp();
boolean zzq();
boolean zzr();
boolean zzs();
void zzu(boolean z);
void zzw(boolean z);
}