* 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>
102 lines
5.5 KiB
Java
102 lines
5.5 KiB
Java
package com.google.android.gms.internal.auth;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzcq {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public static volatile zzdh f9514a = zzdf.f9522c;
|
|
public static final Object b = new Object();
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(11:18|(8:20|(1:22)(1:31)|23|(1:25)|27|28|29|30)|32|33|34|35|(1:37)|27|28|29|30) */
|
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x0077, code lost:
|
|
|
|
if ("com.google.android.gms".equals(r0.packageName) != false) goto L29;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static boolean a(android.content.Context r5, android.net.Uri r6) {
|
|
/*
|
|
java.lang.String r0 = "com.google.android.gms.phenotype"
|
|
java.lang.String r6 = r6.getAuthority()
|
|
boolean r0 = r0.equals(r6)
|
|
r1 = 0
|
|
if (r0 != 0) goto L1d
|
|
java.lang.String r5 = java.lang.String.valueOf(r6)
|
|
java.lang.String r6 = " is an unsupported authority. Only com.google.android.gms.phenotype authority is supported."
|
|
java.lang.String r0 = "PhenotypeClientHelper"
|
|
java.lang.String r5 = r5.concat(r6)
|
|
android.util.Log.e(r0, r5)
|
|
return r1
|
|
L1d:
|
|
com.google.android.gms.internal.auth.zzdh r6 = com.google.android.gms.internal.auth.zzcq.f9514a
|
|
boolean r6 = r6.b()
|
|
if (r6 == 0) goto L32
|
|
com.google.android.gms.internal.auth.zzdh r5 = com.google.android.gms.internal.auth.zzcq.f9514a
|
|
java.lang.Object r5 = r5.a()
|
|
java.lang.Boolean r5 = (java.lang.Boolean) r5
|
|
boolean r5 = r5.booleanValue()
|
|
return r5
|
|
L32:
|
|
java.lang.Object r6 = com.google.android.gms.internal.auth.zzcq.b
|
|
monitor-enter(r6)
|
|
com.google.android.gms.internal.auth.zzdh r0 = com.google.android.gms.internal.auth.zzcq.f9514a // Catch: java.lang.Throwable -> L4b
|
|
boolean r0 = r0.b() // Catch: java.lang.Throwable -> L4b
|
|
if (r0 == 0) goto L4d
|
|
com.google.android.gms.internal.auth.zzdh r5 = com.google.android.gms.internal.auth.zzcq.f9514a // Catch: java.lang.Throwable -> L4b
|
|
java.lang.Object r5 = r5.a() // Catch: java.lang.Throwable -> L4b
|
|
java.lang.Boolean r5 = (java.lang.Boolean) r5 // Catch: java.lang.Throwable -> L4b
|
|
boolean r5 = r5.booleanValue() // Catch: java.lang.Throwable -> L4b
|
|
monitor-exit(r6) // Catch: java.lang.Throwable -> L4b
|
|
return r5
|
|
L4b:
|
|
r5 = move-exception
|
|
goto La3
|
|
L4d:
|
|
java.lang.String r0 = "com.google.android.gms"
|
|
java.lang.String r2 = r5.getPackageName() // Catch: java.lang.Throwable -> L4b
|
|
boolean r0 = r0.equals(r2) // Catch: java.lang.Throwable -> L4b
|
|
if (r0 != 0) goto L79
|
|
android.content.pm.PackageManager r0 = r5.getPackageManager() // Catch: java.lang.Throwable -> L4b
|
|
java.lang.String r2 = "com.google.android.gms.phenotype"
|
|
int r3 = android.os.Build.VERSION.SDK_INT // Catch: java.lang.Throwable -> L4b
|
|
r4 = 29
|
|
if (r3 >= r4) goto L67
|
|
r3 = r1
|
|
goto L69
|
|
L67:
|
|
r3 = 268435456(0x10000000, float:2.524355E-29)
|
|
L69:
|
|
android.content.pm.ProviderInfo r0 = r0.resolveContentProvider(r2, r3) // Catch: java.lang.Throwable -> L4b
|
|
if (r0 == 0) goto L8a
|
|
java.lang.String r2 = "com.google.android.gms"
|
|
java.lang.String r0 = r0.packageName // Catch: java.lang.Throwable -> L4b
|
|
boolean r0 = r2.equals(r0) // Catch: java.lang.Throwable -> L4b
|
|
if (r0 == 0) goto L8a
|
|
L79:
|
|
android.content.pm.PackageManager r5 = r5.getPackageManager() // Catch: java.lang.Throwable -> L4b
|
|
java.lang.String r0 = "com.google.android.gms"
|
|
android.content.pm.ApplicationInfo r5 = r5.getApplicationInfo(r0, r1) // Catch: java.lang.Throwable -> L4b android.content.pm.PackageManager.NameNotFoundException -> L8a
|
|
int r5 = r5.flags // Catch: java.lang.Throwable -> L4b
|
|
r5 = r5 & 129(0x81, float:1.81E-43)
|
|
if (r5 == 0) goto L8a
|
|
r1 = 1
|
|
L8a:
|
|
java.lang.Boolean r5 = java.lang.Boolean.valueOf(r1) // Catch: java.lang.Throwable -> L4b
|
|
com.google.android.gms.internal.auth.zzdi r0 = new com.google.android.gms.internal.auth.zzdi // Catch: java.lang.Throwable -> L4b
|
|
r0.<init>(r5) // Catch: java.lang.Throwable -> L4b
|
|
com.google.android.gms.internal.auth.zzcq.f9514a = r0 // Catch: java.lang.Throwable -> L4b
|
|
monitor-exit(r6) // Catch: java.lang.Throwable -> L4b
|
|
com.google.android.gms.internal.auth.zzdh r5 = com.google.android.gms.internal.auth.zzcq.f9514a
|
|
java.lang.Object r5 = r5.a()
|
|
java.lang.Boolean r5 = (java.lang.Boolean) r5
|
|
boolean r5 = r5.booleanValue()
|
|
return r5
|
|
La3:
|
|
monitor-exit(r6) // Catch: java.lang.Throwable -> L4b
|
|
throw r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.auth.zzcq.a(android.content.Context, android.net.Uri):boolean");
|
|
}
|
|
}
|