* 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>
187 lines
7.6 KiB
Java
187 lines
7.6 KiB
Java
package j$.time.format;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class h implements e {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final /* synthetic */ int f21199a;
|
|
public final Object b;
|
|
|
|
public /* synthetic */ h(int i, Object obj) {
|
|
this.f21199a = i;
|
|
this.b = obj;
|
|
}
|
|
|
|
@Override // j$.time.format.e
|
|
public final boolean d(y yVar, StringBuilder sb) {
|
|
switch (this.f21199a) {
|
|
case 0:
|
|
Long a2 = yVar.a(j$.time.temporal.a.OFFSET_SECONDS);
|
|
if (a2 == null) {
|
|
return false;
|
|
}
|
|
sb.append("GMT");
|
|
int H = j$.com.android.tools.r8.a.H(a2.longValue());
|
|
if (H != 0) {
|
|
int abs = Math.abs((H / 3600) % 100);
|
|
int abs2 = Math.abs((H / 60) % 60);
|
|
int abs3 = Math.abs(H % 60);
|
|
sb.append(H < 0 ? "-" : "+");
|
|
if (((g0) this.b) == g0.FULL) {
|
|
a(sb, abs);
|
|
sb.append(':');
|
|
a(sb, abs2);
|
|
if (abs3 != 0) {
|
|
sb.append(':');
|
|
a(sb, abs3);
|
|
}
|
|
} else {
|
|
if (abs >= 10) {
|
|
sb.append((char) ((abs / 10) + 48));
|
|
}
|
|
sb.append((char) ((abs % 10) + 48));
|
|
if (abs2 != 0 || abs3 != 0) {
|
|
sb.append(':');
|
|
a(sb, abs2);
|
|
if (abs3 != 0) {
|
|
sb.append(':');
|
|
a(sb, abs3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
default:
|
|
sb.append((String) this.b);
|
|
return true;
|
|
}
|
|
}
|
|
|
|
@Override // j$.time.format.e
|
|
public final int g(v vVar, CharSequence charSequence, int i) {
|
|
int i2;
|
|
int b;
|
|
int i3;
|
|
int i4;
|
|
int i5;
|
|
int i6;
|
|
switch (this.f21199a) {
|
|
case 0:
|
|
int length = charSequence.length();
|
|
if (vVar.g(charSequence, i, "GMT", 0, 3)) {
|
|
int i7 = i + 3;
|
|
if (i7 == length) {
|
|
return vVar.f(j$.time.temporal.a.OFFSET_SECONDS, 0L, i, i7);
|
|
}
|
|
char charAt = charSequence.charAt(i7);
|
|
if (charAt == '+') {
|
|
i2 = 1;
|
|
} else {
|
|
if (charAt != '-') {
|
|
return vVar.f(j$.time.temporal.a.OFFSET_SECONDS, 0L, i, i7);
|
|
}
|
|
i2 = -1;
|
|
}
|
|
int i8 = i + 4;
|
|
int i9 = 0;
|
|
if (((g0) this.b) == g0.FULL) {
|
|
int i10 = i + 5;
|
|
int b2 = b(charSequence, i8);
|
|
int i11 = i + 6;
|
|
int b3 = b(charSequence, i10);
|
|
if (b2 >= 0 && b3 >= 0) {
|
|
int i12 = i + 7;
|
|
if (charSequence.charAt(i11) == ':') {
|
|
b = (b2 * 10) + b3;
|
|
int b4 = b(charSequence, i12);
|
|
i6 = i + 9;
|
|
int b5 = b(charSequence, i + 8);
|
|
if (b4 >= 0 && b5 >= 0) {
|
|
i5 = (b4 * 10) + b5;
|
|
int i13 = i + 11;
|
|
if (i13 < length && charSequence.charAt(i6) == ':') {
|
|
int b6 = b(charSequence, i + 10);
|
|
int b7 = b(charSequence, i13);
|
|
if (b6 >= 0 && b7 >= 0) {
|
|
i9 = (b6 * 10) + b7;
|
|
i6 = i + 12;
|
|
}
|
|
}
|
|
i3 = i9;
|
|
i4 = i6;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
int i14 = i + 5;
|
|
b = b(charSequence, i8);
|
|
if (b >= 0) {
|
|
if (i14 < length) {
|
|
int b8 = b(charSequence, i14);
|
|
if (b8 >= 0) {
|
|
b = (b * 10) + b8;
|
|
i14 = i + 6;
|
|
}
|
|
int i15 = i14 + 2;
|
|
if (i15 < length && charSequence.charAt(i14) == ':' && i15 < length && charSequence.charAt(i14) == ':') {
|
|
int b9 = b(charSequence, i14 + 1);
|
|
int b10 = b(charSequence, i15);
|
|
if (b9 >= 0 && b10 >= 0) {
|
|
i5 = (b9 * 10) + b10;
|
|
int i16 = i14 + 3;
|
|
int i17 = i14 + 5;
|
|
if (i17 < length && charSequence.charAt(i16) == ':') {
|
|
int b11 = b(charSequence, i14 + 4);
|
|
int b12 = b(charSequence, i17);
|
|
if (b11 >= 0 && b12 >= 0) {
|
|
i9 = (b11 * 10) + b12;
|
|
i6 = i14 + 6;
|
|
i3 = i9;
|
|
i4 = i6;
|
|
}
|
|
}
|
|
i4 = i16;
|
|
i3 = 0;
|
|
}
|
|
}
|
|
}
|
|
i3 = 0;
|
|
i4 = i14;
|
|
return vVar.f(j$.time.temporal.a.OFFSET_SECONDS, ((i9 * 60) + (b * 3600) + i3) * i2, i, i4);
|
|
}
|
|
}
|
|
i9 = i5;
|
|
return vVar.f(j$.time.temporal.a.OFFSET_SECONDS, ((i9 * 60) + (b * 3600) + i3) * i2, i, i4);
|
|
}
|
|
return ~i;
|
|
default:
|
|
String str = (String) this.b;
|
|
if (i > charSequence.length() || i < 0) {
|
|
throw new IndexOutOfBoundsException();
|
|
}
|
|
return !vVar.g(charSequence, i, str, 0, str.length()) ? ~i : str.length() + i;
|
|
}
|
|
}
|
|
|
|
public final String toString() {
|
|
switch (this.f21199a) {
|
|
case 0:
|
|
return "LocalizedOffset(" + ((g0) this.b) + ")";
|
|
default:
|
|
return "'" + ((String) this.b).replace("'", "''") + "'";
|
|
}
|
|
}
|
|
|
|
public static void a(StringBuilder sb, int i) {
|
|
sb.append((char) ((i / 10) + 48));
|
|
sb.append((char) ((i % 10) + 48));
|
|
}
|
|
|
|
public static int b(CharSequence charSequence, int i) {
|
|
char charAt = charSequence.charAt(i);
|
|
if (charAt < '0' || charAt > '9') {
|
|
return -1;
|
|
}
|
|
return charAt - '0';
|
|
}
|
|
}
|