* 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>
136 lines
4.6 KiB
Java
136 lines
4.6 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import java.util.List;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzbzc {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final List f4980a;
|
|
public final String b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final String f4981c;
|
|
public final boolean d;
|
|
public final boolean e;
|
|
public final String f;
|
|
public final int g;
|
|
public final JSONObject h;
|
|
public final String i;
|
|
public final long j;
|
|
public final long k;
|
|
public final boolean l;
|
|
public final String m;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x00cc A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public zzbzc(org.json.JSONObject r4) {
|
|
/*
|
|
r3 = this;
|
|
r0 = -1
|
|
java.lang.Long r0 = java.lang.Long.valueOf(r0)
|
|
r3.<init>()
|
|
java.lang.String r1 = "url"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
r3.f = r1
|
|
java.lang.String r1 = "base_uri"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
r3.b = r1
|
|
java.lang.String r1 = "post_parameters"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
r3.f4981c = r1
|
|
java.lang.String r1 = "drt_include"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
boolean r1 = a(r1)
|
|
r3.d = r1
|
|
java.lang.String r1 = "content_type"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
r3.m = r1
|
|
java.lang.String r1 = "use_compression"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
boolean r1 = a(r1)
|
|
r3.l = r1
|
|
java.lang.String r1 = "cookies_include"
|
|
java.lang.String r2 = "true"
|
|
java.lang.String r1 = r4.optString(r1, r2)
|
|
boolean r1 = a(r1)
|
|
r3.e = r1
|
|
java.lang.String r1 = "request_id"
|
|
r4.optString(r1)
|
|
java.lang.String r1 = "type"
|
|
r4.optString(r1)
|
|
java.lang.String r1 = "errors"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
if (r1 != 0) goto L63
|
|
r1 = 0
|
|
goto L6d
|
|
L63:
|
|
java.lang.String r2 = ","
|
|
java.lang.String[] r1 = r1.split(r2)
|
|
java.util.List r1 = java.util.Arrays.asList(r1)
|
|
L6d:
|
|
r3.f4980a = r1
|
|
java.lang.String r1 = "valid"
|
|
r2 = 0
|
|
int r1 = r4.optInt(r1, r2)
|
|
r2 = 1
|
|
if (r1 != r2) goto L7a
|
|
r2 = -2
|
|
L7a:
|
|
r3.g = r2
|
|
java.lang.String r1 = "fetched_ad"
|
|
r4.optString(r1)
|
|
java.lang.String r1 = "render_test_ad_label"
|
|
r4.optBoolean(r1)
|
|
java.lang.String r1 = "preprocessor_flags"
|
|
org.json.JSONObject r1 = r4.optJSONObject(r1)
|
|
if (r1 != 0) goto L93
|
|
org.json.JSONObject r1 = new org.json.JSONObject
|
|
r1.<init>()
|
|
L93:
|
|
r3.h = r1
|
|
java.lang.String r1 = "analytics_query_ad_event_id"
|
|
r4.optString(r1)
|
|
java.lang.String r1 = "is_analytics_logging_enabled"
|
|
r4.optBoolean(r1)
|
|
java.lang.String r1 = "pool_key"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
r3.i = r1
|
|
java.lang.String r1 = "start_time"
|
|
java.lang.String r1 = r4.optString(r1)
|
|
boolean r2 = android.text.TextUtils.isEmpty(r1)
|
|
if (r2 == 0) goto Lb5
|
|
Lb3:
|
|
r1 = r0
|
|
goto Lb9
|
|
Lb5:
|
|
java.lang.Long r1 = java.lang.Long.valueOf(r1) // Catch: java.lang.NumberFormatException -> Lb3
|
|
Lb9:
|
|
long r1 = r1.longValue()
|
|
r3.j = r1
|
|
java.lang.String r1 = "end_time"
|
|
java.lang.String r4 = r4.optString(r1)
|
|
boolean r1 = android.text.TextUtils.isEmpty(r4)
|
|
if (r1 == 0) goto Lcc
|
|
goto Ld0
|
|
Lcc:
|
|
java.lang.Long r0 = java.lang.Long.valueOf(r4) // Catch: java.lang.NumberFormatException -> Ld0
|
|
Ld0:
|
|
long r0 = r0.longValue()
|
|
r3.k = r0
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzbzc.<init>(org.json.JSONObject):void");
|
|
}
|
|
|
|
public static boolean a(String str) {
|
|
if (str != null) {
|
|
return str.equals("1") || str.equals("true");
|
|
}
|
|
return false;
|
|
}
|
|
}
|