* 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>
248 lines
8.8 KiB
Java
248 lines
8.8 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzaoz implements zzapv {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final zzaog f4302a;
|
|
public final zzeq b = new zzeq(new byte[10], 10);
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public int f4303c = 0;
|
|
public int d;
|
|
public zzfg e;
|
|
public boolean f;
|
|
public boolean g;
|
|
public boolean h;
|
|
public int i;
|
|
public int j;
|
|
public boolean k;
|
|
|
|
public zzaoz(zzaog zzaogVar) {
|
|
this.f4302a = zzaogVar;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzapv
|
|
public final void a(zzfg zzfgVar, zzaer zzaerVar, zzapu zzapuVar) {
|
|
this.e = zzfgVar;
|
|
this.f4302a.y(zzaerVar, zzapuVar);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/* JADX WARN: Type inference failed for: r10v0, types: [com.google.android.gms.internal.ads.zzeq] */
|
|
/* JADX WARN: Type inference failed for: r3v0, types: [com.google.android.gms.internal.ads.zzaog] */
|
|
/* JADX WARN: Type inference failed for: r7v0 */
|
|
/* JADX WARN: Type inference failed for: r7v1, types: [int, boolean] */
|
|
/* JADX WARN: Type inference failed for: r7v16 */
|
|
/* JADX WARN: Type inference failed for: r7v4 */
|
|
/* JADX WARN: Type inference failed for: r7v5 */
|
|
@Override // com.google.android.gms.internal.ads.zzapv
|
|
public final void b(int i, zzer zzerVar) {
|
|
int i2;
|
|
int i3;
|
|
int i4;
|
|
int i5;
|
|
int i6;
|
|
long j;
|
|
int i7;
|
|
long j2;
|
|
boolean z;
|
|
this.e.getClass();
|
|
int i8 = i & 1;
|
|
?? r3 = this.f4302a;
|
|
int i9 = -1;
|
|
int i10 = 2;
|
|
?? r7 = 0;
|
|
int i11 = 1;
|
|
if (i8 != 0) {
|
|
int i12 = this.f4303c;
|
|
if (i12 != 0 && i12 != 1) {
|
|
if (i12 != 2) {
|
|
int i13 = this.j;
|
|
if (i13 != -1) {
|
|
StringBuilder sb = new StringBuilder(String.valueOf(i13).length() + 48);
|
|
sb.append("Unexpected start indicator: expected ");
|
|
sb.append(i13);
|
|
sb.append(" more bytes");
|
|
zzee.c("PesReader", sb.toString());
|
|
}
|
|
if (zzerVar.f6835c == 0) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
r3.v(z);
|
|
} else {
|
|
zzee.c("PesReader", "Unexpected start indicator reading extended header");
|
|
}
|
|
}
|
|
this.f4303c = 1;
|
|
this.d = 0;
|
|
}
|
|
int i14 = i;
|
|
while (zzerVar.B() > 0) {
|
|
int i15 = this.f4303c;
|
|
if (i15 != 0) {
|
|
?? r10 = this.b;
|
|
if (i15 != i11) {
|
|
if (i15 != i10) {
|
|
int B = zzerVar.B();
|
|
int i16 = this.j;
|
|
if (i16 == i9) {
|
|
i6 = r7;
|
|
} else {
|
|
i6 = B - i16;
|
|
}
|
|
if (i6 > 0) {
|
|
B -= i6;
|
|
zzerVar.C(zzerVar.b + B);
|
|
}
|
|
r3.x(zzerVar);
|
|
int i17 = this.j;
|
|
if (i17 != i9) {
|
|
int i18 = i17 - B;
|
|
this.j = i18;
|
|
if (i18 == 0) {
|
|
r3.v(r7);
|
|
this.f4303c = i11;
|
|
this.d = r7;
|
|
}
|
|
}
|
|
} else {
|
|
if (c(zzerVar, r10.f6806a, Math.min(10, this.i)) && c(zzerVar, null, this.i)) {
|
|
r10.d(r7);
|
|
if (this.f) {
|
|
r10.f(4);
|
|
long h = r10.h(3);
|
|
r10.f(i11);
|
|
int h2 = r10.h(15) << 15;
|
|
r10.f(i11);
|
|
long h3 = r10.h(15);
|
|
r10.f(i11);
|
|
if (!this.h && this.g) {
|
|
r10.f(4);
|
|
j2 = h;
|
|
r10.f(i11);
|
|
int h4 = r10.h(15) << 15;
|
|
r10.f(i11);
|
|
long h5 = r10.h(15);
|
|
r10.f(i11);
|
|
this.e.d((r10.h(3) << 30) | h4 | h5);
|
|
this.h = true;
|
|
} else {
|
|
j2 = h;
|
|
}
|
|
j = this.e.d(h3 | (j2 << 30) | h2);
|
|
} else {
|
|
j = -9223372036854775807L;
|
|
}
|
|
if (true != this.k) {
|
|
i7 = 0;
|
|
} else {
|
|
i7 = 4;
|
|
}
|
|
i14 |= i7;
|
|
r3.w(i14, j);
|
|
this.f4303c = 3;
|
|
this.d = 0;
|
|
r7 = 0;
|
|
i9 = -1;
|
|
i10 = 2;
|
|
i11 = 1;
|
|
}
|
|
}
|
|
int i19 = r7;
|
|
i2 = i10;
|
|
i3 = i19;
|
|
i4 = i11;
|
|
} else {
|
|
int i20 = r7;
|
|
if (c(zzerVar, r10.f6806a, 9)) {
|
|
r10.d(i20);
|
|
int h6 = r10.h(24);
|
|
i4 = 1;
|
|
if (h6 != 1) {
|
|
a.i(new StringBuilder(String.valueOf(h6).length() + 30), "Unexpected start code prefix: ", h6, "PesReader");
|
|
i9 = -1;
|
|
this.j = -1;
|
|
i5 = 0;
|
|
i2 = 2;
|
|
} else {
|
|
r10.f(8);
|
|
int h7 = r10.h(16);
|
|
r10.f(5);
|
|
this.k = r10.g();
|
|
i2 = 2;
|
|
r10.f(2);
|
|
this.f = r10.g();
|
|
this.g = r10.g();
|
|
r10.f(6);
|
|
int h8 = r10.h(8);
|
|
this.i = h8;
|
|
if (h7 == 0) {
|
|
this.j = -1;
|
|
i5 = 2;
|
|
i9 = -1;
|
|
} else {
|
|
int i21 = (h7 - 3) - h8;
|
|
this.j = i21;
|
|
if (i21 < 0) {
|
|
a.i(new StringBuilder(String.valueOf(i21).length() + 36), "Found negative packet payload size: ", i21, "PesReader");
|
|
i9 = -1;
|
|
this.j = -1;
|
|
} else {
|
|
i9 = -1;
|
|
}
|
|
i5 = 2;
|
|
}
|
|
}
|
|
this.f4303c = i5;
|
|
i3 = 0;
|
|
this.d = 0;
|
|
} else {
|
|
i3 = i20;
|
|
i9 = -1;
|
|
i2 = 2;
|
|
i4 = 1;
|
|
}
|
|
}
|
|
} else {
|
|
int i22 = r7;
|
|
i2 = i10;
|
|
i3 = i22;
|
|
i4 = i11;
|
|
zzerVar.G(zzerVar.B());
|
|
}
|
|
int i23 = i2;
|
|
r7 = i3;
|
|
i10 = i23;
|
|
i11 = i4;
|
|
}
|
|
}
|
|
|
|
public final boolean c(zzer zzerVar, byte[] bArr, int i) {
|
|
int min = Math.min(zzerVar.B(), i - this.d);
|
|
if (min <= 0) {
|
|
return true;
|
|
}
|
|
if (bArr == null) {
|
|
zzerVar.G(min);
|
|
} else {
|
|
zzerVar.H(bArr, this.d, min);
|
|
}
|
|
int i2 = this.d + min;
|
|
this.d = i2;
|
|
if (i2 == i) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.ads.zzapv
|
|
public final void zzb() {
|
|
this.f4303c = 0;
|
|
this.d = 0;
|
|
this.h = false;
|
|
this.f4302a.zza();
|
|
}
|
|
}
|