* 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>
171 lines
6.3 KiB
Java
171 lines
6.3 KiB
Java
package com.google.android.gms.common.stats;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import android.text.TextUtils;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.work.impl.workers.a;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
|
import java.util.List;
|
|
import javax.annotation.Nullable;
|
|
|
|
@KeepForSdk
|
|
@SafeParcelable.Class(creator = "WakeLockEventCreator")
|
|
@Deprecated
|
|
/* loaded from: classes.dex */
|
|
public final class WakeLockEvent extends StatsEvent {
|
|
|
|
@NonNull
|
|
public static final Parcelable.Creator<WakeLockEvent> CREATOR = new zza();
|
|
|
|
@SafeParcelable.VersionField(id = 1)
|
|
final int zza;
|
|
|
|
@SafeParcelable.Field(getter = "getTimeMillis", id = 2)
|
|
private final long zzb;
|
|
|
|
@SafeParcelable.Field(getter = "getEventType", id = 11)
|
|
private final int zzc;
|
|
|
|
@SafeParcelable.Field(getter = "getWakeLockName", id = 4)
|
|
private final String zzd;
|
|
|
|
@SafeParcelable.Field(getter = "getSecondaryWakeLockName", id = 10)
|
|
private final String zze;
|
|
|
|
@SafeParcelable.Field(getter = "getCodePackage", id = 17)
|
|
private final String zzf;
|
|
|
|
@SafeParcelable.Field(getter = "getWakeLockType", id = 5)
|
|
private final int zzg;
|
|
|
|
@Nullable
|
|
@SafeParcelable.Field(getter = "getCallingPackages", id = 6)
|
|
private final List zzh;
|
|
|
|
@SafeParcelable.Field(getter = "getEventKey", id = 12)
|
|
private final String zzi;
|
|
|
|
@SafeParcelable.Field(getter = "getElapsedRealtime", id = 8)
|
|
private final long zzj;
|
|
|
|
@SafeParcelable.Field(getter = "getDeviceState", id = 14)
|
|
private final int zzk;
|
|
|
|
@SafeParcelable.Field(getter = "getHostPackage", id = 13)
|
|
private final String zzl;
|
|
|
|
@SafeParcelable.Field(getter = "getBeginPowerPercentage", id = 15)
|
|
private final float zzm;
|
|
|
|
@SafeParcelable.Field(getter = "getTimeout", id = 16)
|
|
private final long zzn;
|
|
|
|
@SafeParcelable.Field(getter = "getAcquiredWithTimeout", id = 18)
|
|
private final boolean zzo;
|
|
|
|
@SafeParcelable.Constructor
|
|
public WakeLockEvent(@SafeParcelable.Param(id = 1) int i, @SafeParcelable.Param(id = 2) long j, @SafeParcelable.Param(id = 11) int i2, @SafeParcelable.Param(id = 4) String str, @SafeParcelable.Param(id = 5) int i3, @SafeParcelable.Param(id = 6) @Nullable List list, @SafeParcelable.Param(id = 12) String str2, @SafeParcelable.Param(id = 8) long j2, @SafeParcelable.Param(id = 14) int i4, @SafeParcelable.Param(id = 10) String str3, @SafeParcelable.Param(id = 13) String str4, @SafeParcelable.Param(id = 15) float f, @SafeParcelable.Param(id = 16) long j3, @SafeParcelable.Param(id = 17) String str5, @SafeParcelable.Param(id = 18) boolean z) {
|
|
this.zza = i;
|
|
this.zzb = j;
|
|
this.zzc = i2;
|
|
this.zzd = str;
|
|
this.zze = str3;
|
|
this.zzf = str5;
|
|
this.zzg = i3;
|
|
this.zzh = list;
|
|
this.zzi = str2;
|
|
this.zzj = j2;
|
|
this.zzk = i4;
|
|
this.zzl = str4;
|
|
this.zzm = f;
|
|
this.zzn = j3;
|
|
this.zzo = z;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(@NonNull Parcel parcel, int i) {
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeInt(parcel, 1, this.zza);
|
|
SafeParcelWriter.writeLong(parcel, 2, this.zzb);
|
|
SafeParcelWriter.writeString(parcel, 4, this.zzd, false);
|
|
SafeParcelWriter.writeInt(parcel, 5, this.zzg);
|
|
SafeParcelWriter.writeStringList(parcel, 6, this.zzh, false);
|
|
SafeParcelWriter.writeLong(parcel, 8, this.zzj);
|
|
SafeParcelWriter.writeString(parcel, 10, this.zze, false);
|
|
SafeParcelWriter.writeInt(parcel, 11, this.zzc);
|
|
SafeParcelWriter.writeString(parcel, 12, this.zzi, false);
|
|
SafeParcelWriter.writeString(parcel, 13, this.zzl, false);
|
|
SafeParcelWriter.writeInt(parcel, 14, this.zzk);
|
|
SafeParcelWriter.writeFloat(parcel, 15, this.zzm);
|
|
SafeParcelWriter.writeLong(parcel, 16, this.zzn);
|
|
SafeParcelWriter.writeString(parcel, 17, this.zzf, false);
|
|
SafeParcelWriter.writeBoolean(parcel, 18, this.zzo);
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.stats.StatsEvent
|
|
public final long zza() {
|
|
return this.zzb;
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.stats.StatsEvent
|
|
public final int zzb() {
|
|
return this.zzc;
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.stats.StatsEvent
|
|
@NonNull
|
|
public final String zzc() {
|
|
String join;
|
|
List list = this.zzh;
|
|
String str = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
if (list == null) {
|
|
join = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
} else {
|
|
join = TextUtils.join(",", list);
|
|
}
|
|
int i = this.zzk;
|
|
String str2 = this.zze;
|
|
String str3 = this.zzl;
|
|
float f = this.zzm;
|
|
String str4 = this.zzf;
|
|
int i2 = this.zzg;
|
|
String str5 = this.zzd;
|
|
boolean z = this.zzo;
|
|
int length = String.valueOf(str5).length();
|
|
int length2 = String.valueOf(i2).length() + length + 2;
|
|
int length3 = String.valueOf(i).length() + length2 + 1 + String.valueOf(join).length() + 1;
|
|
if (str2 == null) {
|
|
str2 = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
int d = a.d(length3 + 1, 1, str2);
|
|
if (str3 == null) {
|
|
str3 = RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED;
|
|
}
|
|
int length4 = String.valueOf(f).length() + a.d(d, 1, str3) + 1;
|
|
if (str4 != null) {
|
|
str = str4;
|
|
}
|
|
StringBuilder sb = new StringBuilder(a.d(length4, 1, str) + String.valueOf(z).length());
|
|
sb.append("\t");
|
|
sb.append(str5);
|
|
sb.append("\t");
|
|
sb.append(i2);
|
|
sb.append("\t");
|
|
sb.append(join);
|
|
sb.append("\t");
|
|
sb.append(i);
|
|
android.support.v4.media.a.z(sb, "\t", str2, "\t", str3);
|
|
sb.append("\t");
|
|
sb.append(f);
|
|
sb.append("\t");
|
|
sb.append(str);
|
|
sb.append("\t");
|
|
sb.append(z);
|
|
return sb.toString();
|
|
}
|
|
}
|