* 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>
150 lines
8 KiB
Java
150 lines
8 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import j$.util.concurrent.ConcurrentHashMap;
|
|
|
|
@KeepForSdk
|
|
@Deprecated
|
|
/* loaded from: classes.dex */
|
|
public class LibraryVersion {
|
|
private static final GmsLogger zza = new GmsLogger("LibraryVersion", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED);
|
|
private static final LibraryVersion zzb = new LibraryVersion();
|
|
private final ConcurrentHashMap zzc = new ConcurrentHashMap();
|
|
|
|
@VisibleForTesting
|
|
public LibraryVersion() {
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static LibraryVersion getInstance() {
|
|
return zzb;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x00c0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:17:0x00c5 */
|
|
@androidx.annotation.NonNull
|
|
@com.google.android.gms.common.annotation.KeepForSdk
|
|
@java.lang.Deprecated
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public java.lang.String getVersion(@androidx.annotation.NonNull java.lang.String r10) {
|
|
/*
|
|
r9 = this;
|
|
java.lang.String r0 = "LibraryVersion"
|
|
java.lang.String r1 = "/"
|
|
java.lang.String r2 = "Please provide a valid libraryName"
|
|
com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r10, r2)
|
|
java.lang.String r2 = " version is "
|
|
java.lang.String r3 = "Failed to get app version for libraryName: "
|
|
j$.util.concurrent.ConcurrentHashMap r4 = r9.zzc
|
|
boolean r5 = r4.containsKey(r10)
|
|
if (r5 == 0) goto L1c
|
|
java.lang.Object r10 = r4.get(r10)
|
|
java.lang.String r10 = (java.lang.String) r10
|
|
return r10
|
|
L1c:
|
|
java.util.Properties r4 = new java.util.Properties
|
|
r4.<init>()
|
|
r5 = 0
|
|
java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch: java.io.IOException -> L97 java.lang.Throwable -> L9a
|
|
r6.<init>(r1) // Catch: java.io.IOException -> L97 java.lang.Throwable -> L9a
|
|
r6.append(r10) // Catch: java.io.IOException -> L97 java.lang.Throwable -> L9a
|
|
java.lang.String r1 = ".properties"
|
|
r6.append(r1) // Catch: java.io.IOException -> L97 java.lang.Throwable -> L9a
|
|
java.lang.String r1 = r6.toString() // Catch: java.io.IOException -> L97 java.lang.Throwable -> L9a
|
|
java.lang.Class<com.google.android.gms.common.internal.LibraryVersion> r6 = com.google.android.gms.common.internal.LibraryVersion.class
|
|
java.io.InputStream r1 = r6.getResourceAsStream(r1) // Catch: java.io.IOException -> L97 java.lang.Throwable -> L9a
|
|
if (r1 == 0) goto L76
|
|
r4.load(r1) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
java.lang.String r6 = "version"
|
|
java.lang.String r5 = r4.getProperty(r6, r5) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
com.google.android.gms.common.internal.GmsLogger r4 = com.google.android.gms.common.internal.LibraryVersion.zza // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
java.lang.String r6 = java.lang.String.valueOf(r10) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
int r6 = r6.length() // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
int r6 = r6 + 12
|
|
java.lang.String r7 = java.lang.String.valueOf(r5) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
int r7 = r7.length() // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
int r6 = r6 + r7
|
|
java.lang.StringBuilder r7 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r7.<init>(r6) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r7.append(r10) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r7.append(r2) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r7.append(r5) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
java.lang.String r2 = r7.toString() // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r4.v(r0, r2) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
goto Lbe
|
|
L6f:
|
|
r10 = move-exception
|
|
goto L95
|
|
L71:
|
|
r2 = move-exception
|
|
r8 = r5
|
|
r5 = r1
|
|
r1 = r8
|
|
goto L9d
|
|
L76:
|
|
com.google.android.gms.common.internal.GmsLogger r2 = com.google.android.gms.common.internal.LibraryVersion.zza // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
java.lang.String r4 = java.lang.String.valueOf(r10) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
int r4 = r4.length() // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
int r4 = r4 + 43
|
|
java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r6.<init>(r4) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r6.append(r3) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r6.append(r10) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
java.lang.String r4 = r6.toString() // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
r2.w(r0, r4) // Catch: java.lang.Throwable -> L6f java.io.IOException -> L71
|
|
goto Lbe
|
|
L95:
|
|
r5 = r1
|
|
goto Ld4
|
|
L97:
|
|
r1 = move-exception
|
|
r2 = r1
|
|
goto L9c
|
|
L9a:
|
|
r10 = move-exception
|
|
goto Ld4
|
|
L9c:
|
|
r1 = r5
|
|
L9d:
|
|
com.google.android.gms.common.internal.GmsLogger r4 = com.google.android.gms.common.internal.LibraryVersion.zza // Catch: java.lang.Throwable -> L9a
|
|
java.lang.String r6 = java.lang.String.valueOf(r10) // Catch: java.lang.Throwable -> L9a
|
|
int r6 = r6.length() // Catch: java.lang.Throwable -> L9a
|
|
int r6 = r6 + 43
|
|
java.lang.StringBuilder r7 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L9a
|
|
r7.<init>(r6) // Catch: java.lang.Throwable -> L9a
|
|
r7.append(r3) // Catch: java.lang.Throwable -> L9a
|
|
r7.append(r10) // Catch: java.lang.Throwable -> L9a
|
|
java.lang.String r3 = r7.toString() // Catch: java.lang.Throwable -> L9a
|
|
r4.e(r0, r3, r2) // Catch: java.lang.Throwable -> L9a
|
|
r8 = r5
|
|
r5 = r1
|
|
r1 = r8
|
|
Lbe:
|
|
if (r1 == 0) goto Lc3
|
|
com.google.android.gms.common.util.IOUtils.closeQuietly(r1)
|
|
Lc3:
|
|
if (r5 != 0) goto Lce
|
|
com.google.android.gms.common.internal.GmsLogger r1 = com.google.android.gms.common.internal.LibraryVersion.zza
|
|
java.lang.String r2 = ".properties file is dropped during release process. Failure to read app version is expected during Google internal testing where locally-built libraries are used"
|
|
r1.d(r0, r2)
|
|
java.lang.String r5 = "UNKNOWN"
|
|
Lce:
|
|
j$.util.concurrent.ConcurrentHashMap r0 = r9.zzc
|
|
r0.put(r10, r5)
|
|
return r5
|
|
Ld4:
|
|
if (r5 == 0) goto Ld9
|
|
com.google.android.gms.common.util.IOUtils.closeQuietly(r5)
|
|
Ld9:
|
|
throw r10
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.internal.LibraryVersion.getVersion(java.lang.String):java.lang.String");
|
|
}
|
|
}
|