* 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>
166 lines
5.2 KiB
Java
166 lines
5.2 KiB
Java
package com.google.android.gms.common.api;
|
|
|
|
import android.content.Context;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.work.impl.workers.a;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
|
|
|
@KeepForSdk
|
|
@SafeParcelable.Class(creator = "ComplianceOptionsCreator")
|
|
/* loaded from: classes.dex */
|
|
public final class ComplianceOptions extends AbstractSafeParcelable {
|
|
|
|
@NonNull
|
|
public static final Parcelable.Creator<ComplianceOptions> CREATOR;
|
|
|
|
@NonNull
|
|
public static final ComplianceOptions zza;
|
|
|
|
@SafeParcelable.Field(getter = "getCallerProductId", id = 1)
|
|
private final int zzb;
|
|
|
|
@SafeParcelable.Field(getter = "getDataOwnerProductId", id = 2)
|
|
private final int zzc;
|
|
|
|
@SafeParcelable.Field(getter = "getProcessingReason", id = 3)
|
|
private final int zzd;
|
|
|
|
@SafeParcelable.Field(defaultValue = "true", getter = "isUserData", id = 4)
|
|
private final boolean zze;
|
|
|
|
@KeepForSdk
|
|
/* loaded from: classes.dex */
|
|
public static final class Builder {
|
|
private int zza = -1;
|
|
private int zzb = -1;
|
|
private int zzc = 0;
|
|
private boolean zzd = true;
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public ComplianceOptions build() {
|
|
return new ComplianceOptions(this.zza, this.zzb, this.zzc, this.zzd);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Builder setCallerProductId(int i) {
|
|
this.zza = i;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Builder setDataOwnerProductId(int i) {
|
|
this.zzb = i;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Builder setIsUserData(boolean z) {
|
|
this.zzd = z;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Builder setProcessingReason(int i) {
|
|
this.zzc = i;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
static {
|
|
Builder newBuilder = newBuilder();
|
|
newBuilder.setCallerProductId(-1);
|
|
newBuilder.setDataOwnerProductId(-1);
|
|
newBuilder.setProcessingReason(0);
|
|
newBuilder.setIsUserData(true);
|
|
zza = newBuilder.build();
|
|
CREATOR = new zzc();
|
|
}
|
|
|
|
@SafeParcelable.Constructor
|
|
public ComplianceOptions(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) int i2, @SafeParcelable.Param(id = 3) int i3, @SafeParcelable.Param(id = 4) boolean z) {
|
|
this.zzb = i;
|
|
this.zzc = i2;
|
|
this.zzd = i3;
|
|
this.zze = z;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static Builder newBuilder() {
|
|
return new Builder();
|
|
}
|
|
|
|
public final boolean equals(@Nullable Object obj) {
|
|
if (!(obj instanceof ComplianceOptions)) {
|
|
return false;
|
|
}
|
|
ComplianceOptions complianceOptions = (ComplianceOptions) obj;
|
|
if (this.zzb != complianceOptions.zzb || this.zzc != complianceOptions.zzc || this.zzd != complianceOptions.zzd || this.zze != complianceOptions.zze) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.hashCode(Integer.valueOf(this.zzb), Integer.valueOf(this.zzc), Integer.valueOf(this.zzd), Boolean.valueOf(this.zze));
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public Builder toBuilder() {
|
|
Builder builder = new Builder();
|
|
builder.setCallerProductId(this.zzb);
|
|
builder.setDataOwnerProductId(this.zzc);
|
|
builder.setProcessingReason(this.zzd);
|
|
builder.setIsUserData(this.zze);
|
|
return builder;
|
|
}
|
|
|
|
@NonNull
|
|
public final String toString() {
|
|
int i = this.zzb;
|
|
int length = String.valueOf(i).length();
|
|
int i2 = this.zzc;
|
|
int length2 = String.valueOf(i2).length();
|
|
int i3 = this.zzd;
|
|
int length3 = String.valueOf(i3).length();
|
|
boolean z = this.zze;
|
|
StringBuilder sb = new StringBuilder(length + 55 + length2 + 19 + length3 + 13 + String.valueOf(z).length() + 1);
|
|
a.A(sb, "ComplianceOptions{callerProductId=", i, ", dataOwnerProductId=", i2);
|
|
sb.append(", processingReason=");
|
|
sb.append(i3);
|
|
sb.append(", isUserData=");
|
|
sb.append(z);
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(@NonNull Parcel parcel, int i) {
|
|
int i2 = this.zzb;
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeInt(parcel, 1, i2);
|
|
SafeParcelWriter.writeInt(parcel, 2, this.zzc);
|
|
SafeParcelWriter.writeInt(parcel, 3, this.zzd);
|
|
SafeParcelWriter.writeBoolean(parcel, 4, this.zze);
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final Builder newBuilder(@NonNull Context context) {
|
|
return newBuilder();
|
|
}
|
|
}
|