* 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>
162 lines
4.8 KiB
Java
162 lines
4.8 KiB
Java
package j$.time.format;
|
|
|
|
import kotlin.jvm.internal.CharCompanionObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class m {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public String f21208a;
|
|
public String b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final char f21209c;
|
|
public m d;
|
|
public m e;
|
|
|
|
public boolean b(char c2, char c3) {
|
|
return c2 == c3;
|
|
}
|
|
|
|
public m(String str, String str2, m mVar) {
|
|
this.f21208a = str;
|
|
this.b = str2;
|
|
this.d = mVar;
|
|
if (str.isEmpty()) {
|
|
this.f21209c = CharCompanionObject.MAX_VALUE;
|
|
} else {
|
|
this.f21209c = this.f21208a.charAt(0);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x0033, code lost:
|
|
|
|
r0 = r0.e;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0035, code lost:
|
|
|
|
if (r0 != null) goto L20;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0029, code lost:
|
|
|
|
r6.setIndex(r2);
|
|
r5 = r0.c(r5, r6);
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x0030, code lost:
|
|
|
|
if (r5 == null) goto L16;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:17:0x0032, code lost:
|
|
|
|
return r5;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x001b, code lost:
|
|
|
|
if (r2 != r1) goto L9;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0027, code lost:
|
|
|
|
if (b(r0.f21209c, r5.charAt(r2)) == false) goto L14;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.String c(java.lang.CharSequence r5, java.text.ParsePosition r6) {
|
|
/*
|
|
r4 = this;
|
|
int r0 = r6.getIndex()
|
|
int r1 = r5.length()
|
|
boolean r2 = r4.e(r5, r0, r1)
|
|
if (r2 != 0) goto L10
|
|
r5 = 0
|
|
return r5
|
|
L10:
|
|
java.lang.String r2 = r4.f21208a
|
|
int r2 = r2.length()
|
|
int r2 = r2 + r0
|
|
j$.time.format.m r0 = r4.d
|
|
if (r0 == 0) goto L37
|
|
if (r2 == r1) goto L37
|
|
L1d:
|
|
char r1 = r0.f21209c
|
|
char r3 = r5.charAt(r2)
|
|
boolean r1 = r4.b(r1, r3)
|
|
if (r1 == 0) goto L33
|
|
r6.setIndex(r2)
|
|
java.lang.String r5 = r0.c(r5, r6)
|
|
if (r5 == 0) goto L37
|
|
return r5
|
|
L33:
|
|
j$.time.format.m r0 = r0.e
|
|
if (r0 != 0) goto L1d
|
|
L37:
|
|
r6.setIndex(r2)
|
|
java.lang.String r5 = r4.b
|
|
return r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: j$.time.format.m.c(java.lang.CharSequence, java.text.ParsePosition):java.lang.String");
|
|
}
|
|
|
|
public m d(String str, String str2, m mVar) {
|
|
return new m(str, str2, mVar);
|
|
}
|
|
|
|
public boolean e(CharSequence charSequence, int i, int i2) {
|
|
if (charSequence instanceof String) {
|
|
return ((String) charSequence).startsWith(this.f21208a, i);
|
|
}
|
|
int length = this.f21208a.length();
|
|
if (length > i2 - i) {
|
|
return false;
|
|
}
|
|
int i3 = 0;
|
|
while (true) {
|
|
int i4 = length - 1;
|
|
if (length <= 0) {
|
|
return true;
|
|
}
|
|
int i5 = i3 + 1;
|
|
int i6 = i + 1;
|
|
if (!b(this.f21208a.charAt(i3), charSequence.charAt(i))) {
|
|
return false;
|
|
}
|
|
i = i6;
|
|
length = i4;
|
|
i3 = i5;
|
|
}
|
|
}
|
|
|
|
public final boolean a(String str, String str2) {
|
|
int i = 0;
|
|
while (i < str.length() && i < this.f21208a.length() && b(str.charAt(i), this.f21208a.charAt(i))) {
|
|
i++;
|
|
}
|
|
if (i == this.f21208a.length()) {
|
|
if (i < str.length()) {
|
|
String substring = str.substring(i);
|
|
for (m mVar = this.d; mVar != null; mVar = mVar.e) {
|
|
if (b(mVar.f21209c, substring.charAt(0))) {
|
|
return mVar.a(substring, str2);
|
|
}
|
|
}
|
|
m d = d(substring, str2, null);
|
|
d.e = this.d;
|
|
this.d = d;
|
|
return true;
|
|
}
|
|
this.b = str2;
|
|
return true;
|
|
}
|
|
m d2 = d(this.f21208a.substring(i), this.b, this.d);
|
|
this.f21208a = str.substring(0, i);
|
|
this.d = d2;
|
|
if (i < str.length()) {
|
|
this.d.e = d(str.substring(i), str2, null);
|
|
this.b = null;
|
|
return true;
|
|
}
|
|
this.b = str2;
|
|
return true;
|
|
}
|
|
}
|