* 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>
116 lines
5 KiB
Java
116 lines
5 KiB
Java
package androidx.core.util;
|
|
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0003\u0002\u0003\u0004¨\u0006\u0005"}, d2 = {"Landroidx/core/util/Pools;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Pool", "SimplePool", "SynchronizedPool", "core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class Pools {
|
|
|
|
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\bf\u0018\u0000*\b\b\u0000\u0010\u0002*\u00020\u00012\u00020\u0001ø\u0001\u0000\u0082\u0002\u0006\n\u0004\b!0\u0001¨\u0006\u0003À\u0006\u0001"}, d2 = {"Landroidx/core/util/Pools$Pool;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_T, "core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public interface Pool<T> {
|
|
boolean a(Object obj);
|
|
|
|
Object b();
|
|
}
|
|
|
|
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0016\u0018\u0000*\b\b\u0000\u0010\u0002*\u00020\u00012\b\u0012\u0004\u0012\u00028\u00000\u0003¨\u0006\u0004"}, d2 = {"Landroidx/core/util/Pools$SimplePool;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_T, "Landroidx/core/util/Pools$Pool;", "core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nPools.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Pools.kt\nandroidx/core/util/Pools$SimplePool\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,133:1\n1#2:134\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public static class SimplePool<T> implements Pool<T> {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Object[] f756a;
|
|
public int b;
|
|
|
|
public SimplePool(int i) {
|
|
if (i > 0) {
|
|
this.f756a = new Object[i];
|
|
return;
|
|
}
|
|
throw new IllegalArgumentException("The max pool size must be > 0");
|
|
}
|
|
|
|
@Override // androidx.core.util.Pools.Pool
|
|
public boolean a(Object instance) {
|
|
Object[] objArr;
|
|
boolean z;
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
int i = this.b;
|
|
int i2 = 0;
|
|
while (true) {
|
|
objArr = this.f756a;
|
|
if (i2 < i) {
|
|
if (objArr[i2] == instance) {
|
|
z = true;
|
|
break;
|
|
}
|
|
i2++;
|
|
} else {
|
|
z = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!z) {
|
|
int i3 = this.b;
|
|
if (i3 >= objArr.length) {
|
|
return false;
|
|
}
|
|
objArr[i3] = instance;
|
|
this.b = i3 + 1;
|
|
return true;
|
|
}
|
|
throw new IllegalStateException("Already in the pool!");
|
|
}
|
|
|
|
@Override // androidx.core.util.Pools.Pool
|
|
public Object b() {
|
|
int i = this.b;
|
|
if (i <= 0) {
|
|
return null;
|
|
}
|
|
int i2 = i - 1;
|
|
Object[] objArr = this.f756a;
|
|
Object obj = objArr[i2];
|
|
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of androidx.core.util.Pools.SimplePool");
|
|
objArr[i2] = null;
|
|
this.b--;
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0016\u0018\u0000*\b\b\u0000\u0010\u0002*\u00020\u00012\b\u0012\u0004\u0012\u00028\u00000\u0003¨\u0006\u0004"}, d2 = {"Landroidx/core/util/Pools$SynchronizedPool;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_T, "Landroidx/core/util/Pools$SimplePool;", "core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public static class SynchronizedPool<T> extends SimplePool<T> {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final Object f757c;
|
|
|
|
public SynchronizedPool(int i) {
|
|
super(i);
|
|
this.f757c = new Object();
|
|
}
|
|
|
|
@Override // androidx.core.util.Pools.SimplePool, androidx.core.util.Pools.Pool
|
|
public final boolean a(Object instance) {
|
|
boolean a2;
|
|
Intrinsics.checkNotNullParameter(instance, "instance");
|
|
synchronized (this.f757c) {
|
|
a2 = super.a(instance);
|
|
}
|
|
return a2;
|
|
}
|
|
|
|
@Override // androidx.core.util.Pools.SimplePool, androidx.core.util.Pools.Pool
|
|
public final Object b() {
|
|
Object b;
|
|
synchronized (this.f757c) {
|
|
b = super.b();
|
|
}
|
|
return b;
|
|
}
|
|
}
|
|
}
|