* 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>
90 lines
3.9 KiB
Java
90 lines
3.9 KiB
Java
package okhttp3;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import kotlin.Metadata;
|
|
import kotlin.enums.EnumEntries;
|
|
import kotlin.enums.EnumEntriesKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
|
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
|
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0002\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u0002¨\u0006\u0003"}, d2 = {"Lokhttp3/TlsVersion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Companion", "okhttp"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes4.dex */
|
|
public final class TlsVersion {
|
|
public static final Companion f;
|
|
public static final TlsVersion g;
|
|
public static final TlsVersion h;
|
|
public static final TlsVersion i;
|
|
public static final TlsVersion j;
|
|
public static final TlsVersion k;
|
|
public static final /* synthetic */ TlsVersion[] l;
|
|
public static final /* synthetic */ EnumEntries m;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final String f22071c;
|
|
|
|
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lokhttp3/TlsVersion$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "okhttp"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes4.dex */
|
|
public static final class Companion {
|
|
public static TlsVersion a(String javaName) {
|
|
Intrinsics.checkNotNullParameter(javaName, "javaName");
|
|
int hashCode = javaName.hashCode();
|
|
if (hashCode != 79201641) {
|
|
if (hashCode != 79923350) {
|
|
switch (hashCode) {
|
|
case -503070503:
|
|
if (javaName.equals("TLSv1.1")) {
|
|
return TlsVersion.i;
|
|
}
|
|
break;
|
|
case -503070502:
|
|
if (javaName.equals("TLSv1.2")) {
|
|
return TlsVersion.h;
|
|
}
|
|
break;
|
|
case -503070501:
|
|
if (javaName.equals("TLSv1.3")) {
|
|
return TlsVersion.g;
|
|
}
|
|
break;
|
|
}
|
|
} else if (javaName.equals("TLSv1")) {
|
|
return TlsVersion.j;
|
|
}
|
|
} else if (javaName.equals("SSLv3")) {
|
|
return TlsVersion.k;
|
|
}
|
|
throw new IllegalArgumentException("Unexpected TLS version: ".concat(javaName));
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v2, types: [java.lang.Object, okhttp3.TlsVersion$Companion] */
|
|
static {
|
|
TlsVersion tlsVersion = new TlsVersion("TLS_1_3", 0, "TLSv1.3");
|
|
g = tlsVersion;
|
|
TlsVersion tlsVersion2 = new TlsVersion("TLS_1_2", 1, "TLSv1.2");
|
|
h = tlsVersion2;
|
|
TlsVersion tlsVersion3 = new TlsVersion("TLS_1_1", 2, "TLSv1.1");
|
|
i = tlsVersion3;
|
|
TlsVersion tlsVersion4 = new TlsVersion("TLS_1_0", 3, "TLSv1");
|
|
j = tlsVersion4;
|
|
TlsVersion tlsVersion5 = new TlsVersion("SSL_3_0", 4, "SSLv3");
|
|
k = tlsVersion5;
|
|
TlsVersion[] tlsVersionArr = {tlsVersion, tlsVersion2, tlsVersion3, tlsVersion4, tlsVersion5};
|
|
l = tlsVersionArr;
|
|
m = EnumEntriesKt.enumEntries(tlsVersionArr);
|
|
f = new Object();
|
|
}
|
|
|
|
public TlsVersion(String str, int i2, String str2) {
|
|
this.f22071c = str2;
|
|
}
|
|
|
|
public static TlsVersion valueOf(String str) {
|
|
return (TlsVersion) Enum.valueOf(TlsVersion.class, str);
|
|
}
|
|
|
|
public static TlsVersion[] values() {
|
|
return (TlsVersion[]) l.clone();
|
|
}
|
|
}
|