* 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>
142 lines
4.5 KiB
Java
142 lines
4.5 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import android.accounts.Account;
|
|
import android.os.Bundle;
|
|
import android.os.IBinder;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.common.Feature;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.api.Scope;
|
|
import com.google.android.gms.common.internal.IAccountAccessor;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
|
|
|
@KeepForSdk
|
|
@SafeParcelable.Class(creator = "GetServiceRequestCreator")
|
|
@SafeParcelable.Reserved({9, 16})
|
|
/* loaded from: classes.dex */
|
|
public class GetServiceRequest extends AbstractSafeParcelable {
|
|
|
|
@NonNull
|
|
public static final Parcelable.Creator<GetServiceRequest> CREATOR = new zzm();
|
|
static final Scope[] zza = new Scope[0];
|
|
static final Feature[] zzb = new Feature[0];
|
|
|
|
@SafeParcelable.VersionField(id = 1)
|
|
final int zzc;
|
|
|
|
@SafeParcelable.Field(id = 2)
|
|
final int zzd;
|
|
|
|
@SafeParcelable.Field(id = 3)
|
|
final int zze;
|
|
|
|
@SafeParcelable.Field(id = 4)
|
|
String zzf;
|
|
|
|
@Nullable
|
|
@SafeParcelable.Field(id = 5)
|
|
IBinder zzg;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "GetServiceRequest.EMPTY_SCOPES", id = 6)
|
|
Scope[] zzh;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "new android.os.Bundle()", id = 7)
|
|
Bundle zzi;
|
|
|
|
@Nullable
|
|
@SafeParcelable.Field(id = 8)
|
|
Account zzj;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "GetServiceRequest.EMPTY_FEATURES", id = 10)
|
|
Feature[] zzk;
|
|
|
|
@SafeParcelable.Field(defaultValueUnchecked = "GetServiceRequest.EMPTY_FEATURES", id = 11)
|
|
Feature[] zzl;
|
|
|
|
@SafeParcelable.Field(id = 12)
|
|
final boolean zzm;
|
|
|
|
@SafeParcelable.Field(defaultValue = "0", id = 13)
|
|
final int zzn;
|
|
|
|
@SafeParcelable.Field(getter = "isRequestingTelemetryConfiguration", id = 14)
|
|
boolean zzo;
|
|
|
|
@Nullable
|
|
@SafeParcelable.Field(getter = "getAttributionTag", id = 15)
|
|
private final String zzp;
|
|
|
|
@SafeParcelable.Constructor
|
|
public GetServiceRequest(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i2, @SafeParcelable.Param(id = 3) int i3, @SafeParcelable.Param(id = 4) String str, @Nullable @SafeParcelable.Param(id = 5) IBinder iBinder, @SafeParcelable.Param(id = 6) Scope[] scopeArr, @SafeParcelable.Param(id = 7) Bundle bundle, @Nullable @SafeParcelable.Param(id = 8) Account account, @SafeParcelable.Param(id = 10) Feature[] featureArr, @SafeParcelable.Param(id = 11) Feature[] featureArr2, @SafeParcelable.Param(id = 12) boolean z, @SafeParcelable.Param(id = 13) int i4, @SafeParcelable.Param(id = 14) boolean z2, @Nullable @SafeParcelable.Param(id = 15) String str2) {
|
|
Account account2;
|
|
scopeArr = scopeArr == null ? zza : scopeArr;
|
|
bundle = bundle == null ? new Bundle() : bundle;
|
|
featureArr = featureArr == null ? zzb : featureArr;
|
|
featureArr2 = featureArr2 == null ? zzb : featureArr2;
|
|
this.zzc = i;
|
|
this.zzd = i2;
|
|
this.zze = i3;
|
|
if ("com.google.android.gms".equals(str)) {
|
|
this.zzf = "com.google.android.gms";
|
|
} else {
|
|
this.zzf = str;
|
|
}
|
|
if (i < 2) {
|
|
if (iBinder != null) {
|
|
account2 = AccountAccessor.getAccountBinderSafe(IAccountAccessor.Stub.asInterface(iBinder));
|
|
} else {
|
|
account2 = null;
|
|
}
|
|
this.zzj = account2;
|
|
} else {
|
|
this.zzg = iBinder;
|
|
this.zzj = account;
|
|
}
|
|
this.zzh = scopeArr;
|
|
this.zzi = bundle;
|
|
this.zzk = featureArr;
|
|
this.zzl = featureArr2;
|
|
this.zzm = z;
|
|
this.zzn = i4;
|
|
this.zzo = z2;
|
|
this.zzp = str2;
|
|
}
|
|
|
|
@Nullable
|
|
@KeepForSdk
|
|
public String getAttributionTag() {
|
|
return this.zzp;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public String getCallingPackage() {
|
|
return this.zzf;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Feature[] getClientApiFeatures() {
|
|
return this.zzl;
|
|
}
|
|
|
|
@KeepForSdk
|
|
public int getClientLibraryVersion() {
|
|
return this.zze;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Bundle getExtraArgs() {
|
|
return this.zzi;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(@NonNull Parcel parcel, int i) {
|
|
zzm.zza(this, parcel, i);
|
|
}
|
|
}
|