* 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>
109 lines
2.6 KiB
Java
109 lines
2.6 KiB
Java
package androidx.core.util;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
|
|
@RestrictTo
|
|
/* loaded from: classes.dex */
|
|
public final class TimeUtils {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public static final Object f758a = new Object();
|
|
public static char[] b = new char[24];
|
|
|
|
public static void a(StringBuilder sb, long j) {
|
|
synchronized (f758a) {
|
|
sb.append(b, 0, b(j));
|
|
}
|
|
}
|
|
|
|
public static int b(long j) {
|
|
char c2;
|
|
int i;
|
|
int i2;
|
|
int i3;
|
|
boolean z;
|
|
boolean z2;
|
|
boolean z3;
|
|
if (b.length < 0) {
|
|
b = new char[0];
|
|
}
|
|
char[] cArr = b;
|
|
if (j == 0) {
|
|
cArr[0] = '0';
|
|
return 1;
|
|
}
|
|
if (j > 0) {
|
|
c2 = '+';
|
|
} else {
|
|
j = -j;
|
|
c2 = '-';
|
|
}
|
|
int i4 = (int) (j % 1000);
|
|
int floor = (int) Math.floor(j / 1000);
|
|
if (floor > 86400) {
|
|
i = floor / 86400;
|
|
floor -= 86400 * i;
|
|
} else {
|
|
i = 0;
|
|
}
|
|
if (floor > 3600) {
|
|
i2 = floor / 3600;
|
|
floor -= i2 * 3600;
|
|
} else {
|
|
i2 = 0;
|
|
}
|
|
if (floor > 60) {
|
|
int i5 = floor / 60;
|
|
floor -= i5 * 60;
|
|
i3 = i5;
|
|
} else {
|
|
i3 = 0;
|
|
}
|
|
cArr[0] = c2;
|
|
int c3 = c(cArr, i, 'd', 1, false, 0);
|
|
if (c3 != 1) {
|
|
z = true;
|
|
} else {
|
|
z = false;
|
|
}
|
|
int c4 = c(cArr, i2, 'h', c3, z, 0);
|
|
if (c4 != 1) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
int c5 = c(cArr, i3, 'm', c4, z2, 0);
|
|
if (c5 != 1) {
|
|
z3 = true;
|
|
} else {
|
|
z3 = false;
|
|
}
|
|
int c6 = c(cArr, i4, 'm', c(cArr, floor, 's', c5, z3, 0), true, 0);
|
|
cArr[c6] = 's';
|
|
return c6 + 1;
|
|
}
|
|
|
|
public static int c(char[] cArr, int i, char c2, int i2, boolean z, int i3) {
|
|
int i4;
|
|
if (!z && i <= 0) {
|
|
return i2;
|
|
}
|
|
if ((z && i3 >= 3) || i > 99) {
|
|
int i5 = i / 100;
|
|
cArr[i2] = (char) (i5 + 48);
|
|
i4 = i2 + 1;
|
|
i -= i5 * 100;
|
|
} else {
|
|
i4 = i2;
|
|
}
|
|
if ((z && i3 >= 2) || i > 9 || i2 != i4) {
|
|
int i6 = i / 10;
|
|
cArr[i4] = (char) (i6 + 48);
|
|
i4++;
|
|
i -= i6 * 10;
|
|
}
|
|
cArr[i4] = (char) (i + 48);
|
|
cArr[i4 + 1] = c2;
|
|
return i4 + 2;
|
|
}
|
|
}
|