* 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
4.8 KiB
Java
166 lines
4.8 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.hardware.display.DisplayManager;
|
|
import android.os.Build;
|
|
import android.view.Choreographer;
|
|
import android.view.Surface;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzacm {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final zzabw f3901a;
|
|
public final zzact b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public boolean f3902c;
|
|
public long f;
|
|
public boolean i;
|
|
public boolean l;
|
|
public boolean m;
|
|
public int d = 0;
|
|
public long e = -9223372036854775807L;
|
|
public long g = -9223372036854775807L;
|
|
public long h = -9223372036854775807L;
|
|
public float j = 1.0f;
|
|
public zzdn k = zzdn.f5927a;
|
|
|
|
public zzacm(Context context, zzabw zzabwVar) {
|
|
this.f3901a = zzabwVar;
|
|
this.b = new zzact(context);
|
|
}
|
|
|
|
public final void a(int i) {
|
|
if (i != 0) {
|
|
if (i != 1) {
|
|
this.d = Math.min(this.d, 2);
|
|
} else {
|
|
this.d = 0;
|
|
}
|
|
} else {
|
|
this.d = 1;
|
|
}
|
|
this.b.a();
|
|
}
|
|
|
|
public final void b() {
|
|
zzacp zzacpVar;
|
|
this.f3902c = true;
|
|
this.f = zzfj.s(this.k.zzb());
|
|
zzact zzactVar = this.b;
|
|
zzactVar.d = true;
|
|
zzactVar.a();
|
|
DisplayManager displayManager = (DisplayManager) zzactVar.b.getSystemService("display");
|
|
zzacp zzacpVar2 = null;
|
|
if (displayManager != null) {
|
|
try {
|
|
Choreographer choreographer = Choreographer.getInstance();
|
|
if (Build.VERSION.SDK_INT >= 33) {
|
|
zzacpVar = new zzacs(choreographer, displayManager);
|
|
} else {
|
|
zzacpVar = new zzacp(choreographer, displayManager);
|
|
}
|
|
zzacpVar2 = zzacpVar;
|
|
} catch (RuntimeException e) {
|
|
zzee.d("VideoFrameReleaseHelper", "Vsync sampling disabled due to platform error", e);
|
|
}
|
|
}
|
|
zzactVar.f3909c = zzacpVar2;
|
|
if (zzacpVar2 != null) {
|
|
zzacpVar2.a();
|
|
}
|
|
zzactVar.c(false);
|
|
}
|
|
|
|
public final void c(Surface surface) {
|
|
boolean z;
|
|
if (surface != null) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
this.l = z;
|
|
this.m = false;
|
|
zzact zzactVar = this.b;
|
|
if (zzactVar.e != surface) {
|
|
zzactVar.d();
|
|
zzactVar.e = surface;
|
|
zzactVar.c(true);
|
|
}
|
|
this.d = Math.min(this.d, 1);
|
|
}
|
|
|
|
public final void d(float f) {
|
|
zzact zzactVar = this.b;
|
|
zzactVar.f = f;
|
|
zzabp zzabpVar = zzactVar.f3908a;
|
|
zzabpVar.f3879a.a();
|
|
zzabpVar.b.a();
|
|
zzabpVar.f3880c = false;
|
|
zzabpVar.d = -9223372036854775807L;
|
|
zzabpVar.e = 0;
|
|
zzactVar.b();
|
|
}
|
|
|
|
public final boolean e(boolean z) {
|
|
if (z && (this.d == 3 || (!this.l && this.m))) {
|
|
this.h = -9223372036854775807L;
|
|
return true;
|
|
}
|
|
if (this.h == -9223372036854775807L) {
|
|
return false;
|
|
}
|
|
if (this.k.zzb() < this.h) {
|
|
return true;
|
|
}
|
|
this.h = -9223372036854775807L;
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:134:0x0152, code lost:
|
|
|
|
if (r3 > 100000) goto L83;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:138:0x0161, code lost:
|
|
|
|
if (r33 >= r37) goto L83;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:141:0x016a, code lost:
|
|
|
|
if (r30.f3902c != false) goto L83;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:150:0x0080, code lost:
|
|
|
|
if (r7 != false) goto L24;
|
|
*/
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final int f(long r31, long r33, long r35, long r37, boolean r39, boolean r40, com.google.android.gms.internal.ads.zzack r41) {
|
|
/*
|
|
Method dump skipped, instructions count: 673
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzacm.f(long, long, long, long, boolean, boolean, com.google.android.gms.internal.ads.zzack):int");
|
|
}
|
|
|
|
public final void g(float f) {
|
|
boolean z;
|
|
if (f > 0.0f) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
zzgqa.a(z);
|
|
if (f == this.j) {
|
|
return;
|
|
}
|
|
this.j = f;
|
|
zzact zzactVar = this.b;
|
|
zzactVar.i = f;
|
|
zzactVar.c(false);
|
|
}
|
|
}
|