* 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>
500 lines
9.2 KiB
Smali
500 lines
9.2 KiB
Smali
.class final Landroidx/collection/ArrayMap$KeySet;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Set;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/collection/ArrayMap;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x11
|
|
name = "KeySet"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/Set<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic c:Landroidx/collection/ArrayMap;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/collection/ArrayMap;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p1, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final add(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final addAll(Ljava/util/Collection;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final clear()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/collection/SimpleArrayMap;->clear()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final contains(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/collection/SimpleArrayMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final containsAll(Ljava/util/Collection;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->k(Ljava/util/Collection;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-ne p0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
instance-of v1, p1, Ljava/util/Set;
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
check-cast p1, Ljava/util/Set;
|
|
|
|
.line 11
|
|
.line 12
|
|
:try_start_0
|
|
iget v1, v0, Landroidx/collection/SimpleArrayMap;->g:I
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-interface {p1}, Ljava/util/Set;->size()I
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v2
|
|
|
|
.line 18
|
|
if-ne v1, v2, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->k(Ljava/util/Collection;)Z
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result p1
|
|
:try_end_0
|
|
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 24
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
.line 27
|
|
return p1
|
|
|
|
.line 28
|
|
:catch_0
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 29
|
|
return p1
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v1, v0, Landroidx/collection/SimpleArrayMap;->g:I
|
|
|
|
.line 4
|
|
.line 5
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v2, 0x0
|
|
|
|
.line 8
|
|
move v3, v2
|
|
|
|
.line 9
|
|
:goto_0
|
|
if-ltz v1, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, v1}, Landroidx/collection/SimpleArrayMap;->f(I)Ljava/lang/Object;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v4
|
|
|
|
.line 15
|
|
if-nez v4, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
move v4, v2
|
|
|
|
.line 18
|
|
goto :goto_1
|
|
|
|
.line 19
|
|
:cond_0
|
|
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v4
|
|
|
|
.line 23
|
|
:goto_1
|
|
add-int/2addr v3, v4
|
|
|
|
.line 24
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
.line 25
|
|
.line 26
|
|
goto :goto_0
|
|
|
|
.line 27
|
|
:cond_1
|
|
return v3
|
|
.end method
|
|
|
|
.method public final isEmpty()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/collection/SimpleArrayMap;->isEmpty()Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
return v0
|
|
.end method
|
|
|
|
.method public final iterator()Ljava/util/Iterator;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/collection/ArrayMap$KeyIterator;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-direct {v0, v1}, Landroidx/collection/ArrayMap$KeyIterator;-><init>(Landroidx/collection/ArrayMap;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final remove(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/collection/SimpleArrayMap;->d(Ljava/lang/Object;)I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {v0, p1}, Landroidx/collection/SimpleArrayMap;->h(I)Ljava/lang/Object;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
const/4 p1, 0x1
|
|
|
|
.line 13
|
|
return p1
|
|
|
|
.line 14
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 15
|
|
return p1
|
|
.end method
|
|
|
|
.method public final removeAll(Ljava/util/Collection;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->l(Ljava/util/Collection;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final retainAll(Ljava/util/Collection;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Landroidx/collection/ArrayMap;->m(Ljava/util/Collection;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v0, v0, Landroidx/collection/SimpleArrayMap;->g:I
|
|
|
|
.line 4
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toArray()[Ljava/lang/Object;
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
iget v1, v0, Landroidx/collection/SimpleArrayMap;->g:I
|
|
|
|
.line 2
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v3}, Landroidx/collection/SimpleArrayMap;->f(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public final toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
.line 4
|
|
iget-object v0, p0, Landroidx/collection/ArrayMap$KeySet;->c:Landroidx/collection/ArrayMap;
|
|
|
|
iget v1, v0, Landroidx/collection/SimpleArrayMap;->g:I
|
|
|
|
.line 5
|
|
array-length v2, p1
|
|
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/Object;
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v2}, Landroidx/collection/SimpleArrayMap;->f(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, p1, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
array-length v0, p1
|
|
|
|
if-le v0, v1, :cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 9
|
|
aput-object v0, p1, v1
|
|
|
|
:cond_2
|
|
return-object p1
|
|
.end method
|