* 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>
115 lines
5.5 KiB
Java
115 lines
5.5 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import android.net.Uri;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzah {
|
|
private static final Uri zza = new Uri.Builder().scheme("content").authority("com.google.android.gms.chimera").build();
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:18:0x005f */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0077 */
|
|
/* JADX WARN: Removed duplicated region for block: B:37:0x00af */
|
|
/* JADX WARN: Removed duplicated region for block: B:39:0x00bd A[RETURN] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static android.content.Intent zza(android.content.Context r5, com.google.android.gms.common.internal.zzn r6) {
|
|
/*
|
|
java.lang.String r0 = "ServiceBindIntentUtils"
|
|
java.lang.String r1 = r6.zza()
|
|
if (r1 != 0) goto L16
|
|
android.content.Intent r5 = new android.content.Intent
|
|
r5.<init>()
|
|
android.content.ComponentName r6 = r6.zzc()
|
|
android.content.Intent r5 = r5.setComponent(r6)
|
|
return r5
|
|
L16:
|
|
boolean r2 = r6.zzd()
|
|
r3 = 0
|
|
if (r2 == 0) goto Lad
|
|
android.os.Bundle r2 = new android.os.Bundle
|
|
r2.<init>()
|
|
java.lang.String r4 = "serviceActionBundleKey"
|
|
r2.putString(r4, r1)
|
|
android.content.ContentResolver r5 = r5.getContentResolver() // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
android.net.Uri r4 = com.google.android.gms.common.internal.zzah.zza // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
android.content.ContentProviderClient r5 = r5.acquireUnstableContentProviderClient(r4) // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
if (r5 == 0) goto L46
|
|
java.lang.String r4 = "serviceIntentCall"
|
|
android.os.Bundle r2 = r5.call(r4, r3, r2) // Catch: java.lang.Throwable -> L41
|
|
r5.release() // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
goto L5c
|
|
L3d:
|
|
r5 = move-exception
|
|
goto L4e
|
|
L3f:
|
|
r5 = move-exception
|
|
goto L4e
|
|
L41:
|
|
r2 = move-exception
|
|
r5.release() // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
throw r2 // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
L46:
|
|
android.os.RemoteException r5 = new android.os.RemoteException // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
java.lang.String r2 = "Failed to acquire ContentProviderClient"
|
|
r5.<init>(r2) // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
throw r5 // Catch: java.lang.IllegalArgumentException -> L3d android.os.RemoteException -> L3f
|
|
L4e:
|
|
java.lang.String r2 = "Dynamic intent resolution failed: "
|
|
java.lang.String r5 = r5.toString()
|
|
java.lang.String r5 = r2.concat(r5)
|
|
android.util.Log.w(r0, r5)
|
|
r2 = r3
|
|
L5c:
|
|
if (r2 != 0) goto L5f
|
|
goto L75
|
|
L5f:
|
|
java.lang.String r5 = "serviceResponseIntentKey"
|
|
android.os.Parcelable r5 = r2.getParcelable(r5)
|
|
android.content.Intent r5 = (android.content.Intent) r5
|
|
if (r5 == 0) goto L6b
|
|
r3 = r5
|
|
goto L75
|
|
L6b:
|
|
java.lang.String r5 = "serviceMissingResolutionIntentKey"
|
|
android.os.Parcelable r5 = r2.getParcelable(r5)
|
|
android.app.PendingIntent r5 = (android.app.PendingIntent) r5
|
|
if (r5 != 0) goto L81
|
|
L75:
|
|
if (r3 != 0) goto Lad
|
|
java.lang.String r5 = "Dynamic lookup for intent failed for action: "
|
|
java.lang.String r5 = r5.concat(r1)
|
|
android.util.Log.w(r0, r5)
|
|
goto Lad
|
|
L81:
|
|
int r6 = r1.length()
|
|
java.lang.StringBuilder r2 = new java.lang.StringBuilder
|
|
int r6 = r6 + 72
|
|
r2.<init>(r6)
|
|
java.lang.String r6 = "Dynamic lookup for intent failed for action "
|
|
r2.append(r6)
|
|
r2.append(r1)
|
|
java.lang.String r6 = " but has possible resolution"
|
|
r2.append(r6)
|
|
java.lang.String r6 = r2.toString()
|
|
android.util.Log.w(r0, r6)
|
|
com.google.android.gms.common.internal.zzaf r6 = new com.google.android.gms.common.internal.zzaf
|
|
com.google.android.gms.common.ConnectionResult r0 = new com.google.android.gms.common.ConnectionResult
|
|
r1 = 25
|
|
r0.<init>(r1, r5)
|
|
r6.<init>(r0)
|
|
throw r6
|
|
Lad:
|
|
if (r3 != 0) goto Lbd
|
|
android.content.Intent r5 = new android.content.Intent
|
|
r5.<init>(r1)
|
|
java.lang.String r6 = r6.zzb()
|
|
android.content.Intent r5 = r5.setPackage(r6)
|
|
return r5
|
|
Lbd:
|
|
return r3
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.internal.zzah.zza(android.content.Context, com.google.android.gms.common.internal.zzn):android.content.Intent");
|
|
}
|
|
}
|