* 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>
88 lines
3.2 KiB
Java
88 lines
3.2 KiB
Java
package org.tukaani.xz.simple;
|
|
|
|
import kotlin.KotlinVersion;
|
|
import kotlin.UByte;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class X86 implements SimpleFilter {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public static final boolean[] f22728c = {true, true, true, false, true, false, false, false};
|
|
public static final int[] d = {0, 1, 2, 2, 3, 3, 3, 3};
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public int f22729a;
|
|
public int b;
|
|
|
|
@Override // org.tukaani.xz.simple.SimpleFilter
|
|
public final int a(byte[] bArr, int i, int i2) {
|
|
int i3;
|
|
int i4;
|
|
int i5;
|
|
int i6 = i - 1;
|
|
int i7 = (i2 + i) - 5;
|
|
int i8 = i;
|
|
while (true) {
|
|
i3 = 0;
|
|
if (i8 > i7) {
|
|
break;
|
|
}
|
|
if ((bArr[i8] & 254) == 232) {
|
|
int i9 = i8 - i6;
|
|
int i10 = i9 & (-4);
|
|
int[] iArr = d;
|
|
if (i10 != 0) {
|
|
this.b = 0;
|
|
} else {
|
|
int i11 = (this.b << (i9 - 1)) & 7;
|
|
this.b = i11;
|
|
if (i11 != 0 && (!f22728c[i11] || (i4 = bArr[(i8 + 4) - iArr[i11]] & UByte.MAX_VALUE) == 0 || i4 == 255)) {
|
|
this.b = (i11 << 1) | 1;
|
|
i6 = i8;
|
|
}
|
|
}
|
|
int i12 = i8 + 4;
|
|
int i13 = bArr[i12];
|
|
int i14 = i13 & KotlinVersion.MAX_COMPONENT_VALUE;
|
|
if (i14 != 0 && i14 != 255) {
|
|
this.b = (this.b << 1) | 1;
|
|
i6 = i8;
|
|
} else {
|
|
int i15 = i8 + 1;
|
|
int i16 = i8 + 2;
|
|
int i17 = i8 + 3;
|
|
int i18 = ((i13 & KotlinVersion.MAX_COMPONENT_VALUE) << 24) | (bArr[i15] & KotlinVersion.MAX_COMPONENT_VALUE) | ((bArr[i16] & KotlinVersion.MAX_COMPONENT_VALUE) << 8) | ((bArr[i17] & KotlinVersion.MAX_COMPONENT_VALUE) << 16);
|
|
while (true) {
|
|
i5 = i18 - ((this.f22729a + i8) - i);
|
|
int i19 = this.b;
|
|
if (i19 != 0) {
|
|
int i20 = iArr[i19] * 8;
|
|
int i21 = ((byte) (i5 >>> (24 - i20))) & UByte.MAX_VALUE;
|
|
if (i21 != 0 && i21 != 255) {
|
|
break;
|
|
}
|
|
i18 = i5 ^ ((1 << (32 - i20)) - 1);
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
bArr[i15] = (byte) i5;
|
|
bArr[i16] = (byte) (i5 >>> 8);
|
|
bArr[i17] = (byte) (i5 >>> 16);
|
|
bArr[i12] = (byte) (~(((i5 >>> 24) & 1) - 1));
|
|
i6 = i8;
|
|
i8 = i12;
|
|
}
|
|
}
|
|
i8++;
|
|
}
|
|
int i22 = i8 - i6;
|
|
if ((i22 & (-4)) == 0) {
|
|
i3 = this.b << (i22 - 1);
|
|
}
|
|
this.b = i3;
|
|
int i23 = i8 - i;
|
|
this.f22729a += i23;
|
|
return i23;
|
|
}
|
|
}
|