* 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>
167 lines
4.4 KiB
Java
167 lines
4.4 KiB
Java
package androidx.recyclerview.widget;
|
|
|
|
import android.view.View;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/* loaded from: classes.dex */
|
|
class ViewBoundsCheck {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Callback f1602a;
|
|
public final BoundFlags b;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class BoundFlags {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public int f1603a;
|
|
public int b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public int f1604c;
|
|
public int d;
|
|
public int e;
|
|
|
|
public final boolean a() {
|
|
int i;
|
|
int i2;
|
|
int i3;
|
|
int i4 = this.f1603a;
|
|
int i5 = 2;
|
|
if ((i4 & 7) != 0) {
|
|
int i6 = this.d;
|
|
int i7 = this.b;
|
|
if (i6 > i7) {
|
|
i3 = 1;
|
|
} else if (i6 == i7) {
|
|
i3 = 2;
|
|
} else {
|
|
i3 = 4;
|
|
}
|
|
if ((i3 & i4) == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
if ((i4 & 112) != 0) {
|
|
int i8 = this.d;
|
|
int i9 = this.f1604c;
|
|
if (i8 > i9) {
|
|
i2 = 1;
|
|
} else if (i8 == i9) {
|
|
i2 = 2;
|
|
} else {
|
|
i2 = 4;
|
|
}
|
|
if (((i2 << 4) & i4) == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
if ((i4 & 1792) != 0) {
|
|
int i10 = this.e;
|
|
int i11 = this.b;
|
|
if (i10 > i11) {
|
|
i = 1;
|
|
} else if (i10 == i11) {
|
|
i = 2;
|
|
} else {
|
|
i = 4;
|
|
}
|
|
if (((i << 8) & i4) == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
if ((i4 & 28672) != 0) {
|
|
int i12 = this.e;
|
|
int i13 = this.f1604c;
|
|
if (i12 > i13) {
|
|
i5 = 1;
|
|
} else if (i12 != i13) {
|
|
i5 = 4;
|
|
}
|
|
if ((i4 & (i5 << 12)) == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface Callback {
|
|
int a(View view);
|
|
|
|
int b();
|
|
|
|
int c();
|
|
|
|
View d(int i);
|
|
|
|
int e(View view);
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
/* loaded from: classes.dex */
|
|
public @interface ViewBounds {
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v1, types: [java.lang.Object, androidx.recyclerview.widget.ViewBoundsCheck$BoundFlags] */
|
|
public ViewBoundsCheck(Callback callback) {
|
|
this.f1602a = callback;
|
|
?? obj = new Object();
|
|
obj.f1603a = 0;
|
|
this.b = obj;
|
|
}
|
|
|
|
public final View a(int i, int i2, int i3, int i4) {
|
|
int i5;
|
|
Callback callback = this.f1602a;
|
|
int b = callback.b();
|
|
int c2 = callback.c();
|
|
if (i2 > i) {
|
|
i5 = 1;
|
|
} else {
|
|
i5 = -1;
|
|
}
|
|
View view = null;
|
|
while (i != i2) {
|
|
View d = callback.d(i);
|
|
int a2 = callback.a(d);
|
|
int e = callback.e(d);
|
|
BoundFlags boundFlags = this.b;
|
|
boundFlags.b = b;
|
|
boundFlags.f1604c = c2;
|
|
boundFlags.d = a2;
|
|
boundFlags.e = e;
|
|
if (i3 != 0) {
|
|
boundFlags.f1603a = i3;
|
|
if (boundFlags.a()) {
|
|
return d;
|
|
}
|
|
}
|
|
if (i4 != 0) {
|
|
boundFlags.f1603a = i4;
|
|
if (boundFlags.a()) {
|
|
view = d;
|
|
}
|
|
}
|
|
i += i5;
|
|
}
|
|
return view;
|
|
}
|
|
|
|
public final boolean b(View view) {
|
|
Callback callback = this.f1602a;
|
|
int b = callback.b();
|
|
int c2 = callback.c();
|
|
int a2 = callback.a(view);
|
|
int e = callback.e(view);
|
|
BoundFlags boundFlags = this.b;
|
|
boundFlags.b = b;
|
|
boundFlags.f1604c = c2;
|
|
boundFlags.d = a2;
|
|
boundFlags.e = e;
|
|
boundFlags.f1603a = 24579;
|
|
return boundFlags.a();
|
|
}
|
|
}
|