soul-browser/sources/java/androidx/collection/ScatterMap$MapWrapper$entries$1$iterator$1.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

141 lines
6.5 KiB
Java

package androidx.collection;
import com.google.android.gms.ads.RequestConfiguration;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.sequences.SequenceScope;
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010&\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002\"\u0004\b\u0001\u0010\u0003*\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00050\u0004H\u008a@"}, d2 = {"<anonymous>", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "K", "V", "Lkotlin/sequences/SequenceScope;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED}, k = 3, mv = {1, 8, 0}, xi = 48)
@DebugMetadata(c = "androidx.collection.ScatterMap$MapWrapper$entries$1$iterator$1", f = "ScatterMap.kt", i = {0, 0, 0, 0, 0, 0, 0}, l = {701}, m = "invokeSuspend", n = {"$this$iterator", "m$iv", "lastIndex$iv", "i$iv", "slot$iv", "bitCount$iv", "j$iv"}, s = {"L$0", "L$2", "I$0", "I$1", "J$0", "I$2", "I$3"})
@SourceDebugExtension({"SMAP\nScatterMap.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/ScatterMap$MapWrapper$entries$1$iterator$1\n+ 2 ScatterMap.kt\nandroidx/collection/ScatterMap\n+ 3 ScatterMap.kt\nandroidx/collection/ScatterMapKt\n*L\n1#1,1850:1\n363#2,6:1851\n373#2,3:1858\n376#2,9:1862\n1826#3:1857\n1688#3:1861\n*S KotlinDebug\n*F\n+ 1 ScatterMap.kt\nandroidx/collection/ScatterMap$MapWrapper$entries$1$iterator$1\n*L\n699#1:1851,6\n699#1:1858,3\n699#1:1862,9\n699#1:1857\n699#1:1861\n*E\n"})
/* loaded from: classes.dex */
final class ScatterMap$MapWrapper$entries$1$iterator$1 extends RestrictedSuspendLambda implements Function2<SequenceScope<? super Map.Entry<Object, Object>>, Continuation<? super Unit>, Object> {
/* renamed from: c, reason: collision with root package name */
public ScatterMap f465c;
public long[] f;
public int g;
public int h;
public int i;
public int j;
public long k;
public int l;
public /* synthetic */ Object m;
/* JADX WARN: Type inference failed for: r0v0, types: [kotlin.coroutines.Continuation, kotlin.coroutines.jvm.internal.RestrictedSuspendLambda, androidx.collection.ScatterMap$MapWrapper$entries$1$iterator$1] */
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
?? restrictedSuspendLambda = new RestrictedSuspendLambda(2, continuation);
restrictedSuspendLambda.m = obj;
return restrictedSuspendLambda;
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(SequenceScope<? super Map.Entry<Object, Object>> sequenceScope, Continuation<? super Unit> continuation) {
return ((ScatterMap$MapWrapper$entries$1$iterator$1) create(sequenceScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x0070, code lost:
r4 = 8 - ((~(r7 - r8)) >>> 31);
r2 = 0;
*/
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object invokeSuspend(java.lang.Object r18) {
/*
r17 = this;
r0 = r17
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.l
if (r2 == 0) goto L84
r3 = 1
if (r2 != r3) goto L7c
int r2 = r0.j
int r4 = r0.i
long r5 = r0.k
int r7 = r0.h
int r8 = r0.g
long[] r9 = r0.f
androidx.collection.ScatterMap r10 = r0.f465c
java.lang.Object r11 = r0.m
kotlin.sequences.SequenceScope r11 = (kotlin.sequences.SequenceScope) r11
kotlin.ResultKt.throwOnFailure(r18)
L22:
r12 = 8
long r5 = r5 >> r12
int r2 = r2 + r3
L26:
if (r2 >= r4) goto L5a
r12 = 255(0xff, double:1.26E-321)
long r12 = r12 & r5
r14 = 128(0x80, double:6.3E-322)
int r12 = (r12 > r14 ? 1 : (r12 == r14 ? 0 : -1))
if (r12 >= 0) goto L22
int r12 = r7 << 3
int r12 = r12 + r2
androidx.collection.MapEntry r13 = new androidx.collection.MapEntry
java.lang.Object[] r14 = r10.b
r14 = r14[r12]
java.lang.Object[] r15 = r10.f464c
r12 = r15[r12]
r13.<init>(r14, r12)
r0.m = r11
r0.f465c = r10
r0.f = r9
r0.g = r8
r0.h = r7
r0.k = r5
r0.i = r4
r0.j = r2
r0.l = r3
java.lang.Object r12 = r11.yield(r13, r0)
if (r12 != r1) goto L22
return r1
L5a:
if (r4 != r12) goto L79
L5c:
if (r7 == r8) goto L79
int r7 = r7 + 1
r5 = r9[r7]
long r13 = ~r5
r2 = 7
long r13 = r13 << r2
long r13 = r13 & r5
r15 = -9187201950435737472(0x8080808080808080, double:-2.937446524422997E-306)
long r13 = r13 & r15
int r2 = (r13 > r15 ? 1 : (r13 == r15 ? 0 : -1))
if (r2 == 0) goto L5c
int r2 = r7 - r8
int r2 = ~r2
int r2 = r2 >>> 31
int r4 = 8 - r2
r2 = 0
goto L26
L79:
kotlin.Unit r1 = kotlin.Unit.INSTANCE
return r1
L7c:
java.lang.IllegalStateException r1 = new java.lang.IllegalStateException
java.lang.String r2 = "call to 'resume' before 'invoke' with coroutine"
r1.<init>(r2)
throw r1
L84:
kotlin.ResultKt.throwOnFailure(r18)
java.lang.Object r1 = r0.m
kotlin.sequences.SequenceScope r1 = (kotlin.sequences.SequenceScope) r1
r1 = 0
throw r1
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.collection.ScatterMap$MapWrapper$entries$1$iterator$1.invokeSuspend(java.lang.Object):java.lang.Object");
}
}