* 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>
133 lines
4.9 KiB
Java
133 lines
4.9 KiB
Java
package com.google.android.gms.internal.cast;
|
|
|
|
import android.util.Log;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import com.google.android.gms.cast.framework.CastSession;
|
|
import com.google.android.gms.cast.framework.Session;
|
|
import com.google.android.gms.cast.framework.SessionManagerListener;
|
|
import com.google.android.gms.cast.internal.Logger;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
|
|
@VisibleForTesting
|
|
/* loaded from: classes.dex */
|
|
public final class zzl implements SessionManagerListener {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final /* synthetic */ zzn f9757a;
|
|
|
|
public zzl(zzn zznVar) {
|
|
this.f9757a = zznVar;
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void d(Session session, int i) {
|
|
Logger logger = zzn.j;
|
|
zzn.j.b("onSessionSuspended with reason = %d", Integer.valueOf(i));
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
zznVar.e();
|
|
Preconditions.checkNotNull(zznVar.g);
|
|
zznVar.f9786a.b(225, zznVar.f9787c.a(zznVar.g, i));
|
|
zznVar.a();
|
|
zznVar.e.removeCallbacks(zznVar.d);
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:13:0x00dc */
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x00f0 */
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void e(com.google.android.gms.cast.framework.Session r11, java.lang.String r12) {
|
|
/*
|
|
Method dump skipped, instructions count: 415
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.cast.zzl.e(com.google.android.gms.cast.framework.Session, java.lang.String):void");
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* synthetic */ void f(Session session, int i) {
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
zznVar.b(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void h(Session session, String str) {
|
|
zzn.j.b("onSessionStarted with sessionId = %s", str);
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
zznVar.e();
|
|
zzo zzoVar = zznVar.g;
|
|
zzoVar.f = str;
|
|
zznVar.f9786a.b(222, (zzqr) zznVar.f9787c.b(zzoVar).e());
|
|
zznVar.a();
|
|
zznVar.c();
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* synthetic */ void j(Session session, int i) {
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
zznVar.b(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void k(Session session, boolean z) {
|
|
Logger logger = zzn.j;
|
|
zzn.j.b("onSessionResumed with wasSuspended = %b", Boolean.valueOf(z));
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
zznVar.e();
|
|
Preconditions.checkNotNull(zznVar.g);
|
|
zzp zzpVar = zznVar.f9787c;
|
|
zzo zzoVar = zznVar.g;
|
|
zzj zzjVar = zznVar.f9786a;
|
|
zzqq b = zzpVar.b(zzoVar);
|
|
zzqf o = zzqg.o(b.f());
|
|
o.c();
|
|
((zzqg) o.f).r(z);
|
|
b.c();
|
|
((zzqr) b.f).x((zzqg) o.e());
|
|
zzjVar.b(227, (zzqr) b.e());
|
|
zznVar.a();
|
|
zznVar.c();
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* synthetic */ void m(Session session, int i) {
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
zznVar.b(i);
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final void n(Session session) {
|
|
Logger logger = zzn.j;
|
|
logger.b("onSessionStarting", new Object[0]);
|
|
zzn zznVar = this.f9757a;
|
|
zznVar.h = (CastSession) session;
|
|
if (zznVar.g != null) {
|
|
Log.w(logger.f3604a, logger.d("Start a session while there's already an active session. Create a new one.", new Object[0]));
|
|
}
|
|
zznVar.d();
|
|
zzo zzoVar = zznVar.g;
|
|
zzp zzpVar = zznVar.f9787c;
|
|
zzj zzjVar = zznVar.f9786a;
|
|
zzqq b = zzpVar.b(zzoVar);
|
|
if (zzoVar.p == 1) {
|
|
zzqf o = zzqg.o(b.f());
|
|
o.c();
|
|
((zzqg) o.f).t(17);
|
|
b.g((zzqg) o.e());
|
|
}
|
|
zzjVar.b(221, (zzqr) b.e());
|
|
}
|
|
|
|
@Override // com.google.android.gms.cast.framework.SessionManagerListener
|
|
public final /* synthetic */ void o(Session session) {
|
|
this.f9757a.h = (CastSession) session;
|
|
}
|
|
}
|