* 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>
753 lines
13 KiB
Smali
753 lines
13 KiB
Smali
.class public abstract Lcom/google/common/collect/ImmutableSet;
|
|
.super Lcom/google/common/collect/ImmutableCollection;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Set;
|
|
.implements Lj$/util/Set;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/collect/ImmutableSet$Builder;,
|
|
Lcom/google/common/collect/ImmutableSet$SerializedForm;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lcom/google/common/collect/ImmutableCollection<",
|
|
"TE;>;",
|
|
"Ljava/util/Set<",
|
|
"TE;>;",
|
|
"Lj$/util/Set;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic g:I
|
|
|
|
|
|
# instance fields
|
|
.field public transient f:Lcom/google/common/collect/ImmutableList;
|
|
|
|
|
|
# direct methods
|
|
.method public static q()Lcom/google/common/collect/ImmutableSet$Builder;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/collect/ImmutableSet$Builder;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x4
|
|
|
|
.line 4
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableCollection$ArrayBasedBuilder;-><init>(I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static r(I)I
|
|
.locals 5
|
|
|
|
.line 1
|
|
const/4 v0, 0x2
|
|
|
|
.line 2
|
|
invoke-static {p0, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
move-result p0
|
|
|
|
.line 6
|
|
const v0, 0x2ccccccc
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
const/4 v1, 0x1
|
|
|
|
.line 10
|
|
if-ge p0, v0, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
add-int/lit8 v0, p0, -0x1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Ljava/lang/Integer;->highestOneBit(I)I
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result v0
|
|
|
|
.line 18
|
|
shl-int/2addr v0, v1
|
|
|
|
.line 19
|
|
:goto_0
|
|
int-to-double v1, v0
|
|
|
|
.line 20
|
|
const-wide v3, 0x3fe6666666666666L # 0.7
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
mul-double/2addr v1, v3
|
|
|
|
.line 26
|
|
int-to-double v3, p0
|
|
|
|
.line 27
|
|
cmpg-double v1, v1, v3
|
|
|
|
.line 28
|
|
.line 29
|
|
if-gez v1, :cond_0
|
|
|
|
.line 30
|
|
.line 31
|
|
shl-int/lit8 v0, v0, 0x1
|
|
|
|
.line 32
|
|
.line 33
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_0
|
|
return v0
|
|
|
|
.line 35
|
|
:cond_1
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
.line 36
|
|
.line 37
|
|
if-ge p0, v0, :cond_2
|
|
|
|
.line 38
|
|
.line 39
|
|
goto :goto_1
|
|
|
|
.line 40
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
.line 41
|
|
:goto_1
|
|
const-string p0, "collection too large"
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-static {v1, p0}, Lcom/google/common/base/Preconditions;->e(ZLjava/lang/Object;)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
return v0
|
|
.end method
|
|
|
|
.method public static varargs s(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 13
|
|
|
|
.line 1
|
|
if-eqz p0, :cond_8
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
const/4 v1, 0x1
|
|
|
|
.line 5
|
|
if-eq p0, v1, :cond_7
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableSet;->r(I)I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v2
|
|
|
|
.line 11
|
|
new-array v5, v2, [Ljava/lang/Object;
|
|
|
|
.line 12
|
|
.line 13
|
|
add-int/lit8 v7, v2, -0x1
|
|
|
|
.line 14
|
|
.line 15
|
|
move v3, v0
|
|
|
|
.line 16
|
|
move v6, v3
|
|
|
|
.line 17
|
|
move v8, v6
|
|
|
|
.line 18
|
|
:goto_0
|
|
if-ge v3, p0, :cond_3
|
|
|
|
.line 19
|
|
.line 20
|
|
aget-object v4, p1, v3
|
|
|
|
.line 21
|
|
.line 22
|
|
if-eqz v4, :cond_2
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v9
|
|
|
|
.line 28
|
|
invoke-static {v9}, Lcom/google/common/collect/Hashing;->b(I)I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v10
|
|
|
|
.line 32
|
|
:goto_1
|
|
and-int v11, v10, v7
|
|
|
|
.line 33
|
|
.line 34
|
|
aget-object v12, v5, v11
|
|
|
|
.line 35
|
|
.line 36
|
|
if-nez v12, :cond_0
|
|
|
|
.line 37
|
|
.line 38
|
|
add-int/lit8 v10, v8, 0x1
|
|
|
|
.line 39
|
|
.line 40
|
|
aput-object v4, p1, v8
|
|
|
|
.line 41
|
|
.line 42
|
|
aput-object v4, v5, v11
|
|
|
|
.line 43
|
|
.line 44
|
|
add-int/2addr v6, v9
|
|
|
|
.line 45
|
|
move v8, v10
|
|
|
|
.line 46
|
|
goto :goto_2
|
|
|
|
.line 47
|
|
:cond_0
|
|
invoke-virtual {v12, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result v11
|
|
|
|
.line 51
|
|
if-eqz v11, :cond_1
|
|
|
|
.line 52
|
|
.line 53
|
|
:goto_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 54
|
|
.line 55
|
|
goto :goto_0
|
|
|
|
.line 56
|
|
:cond_1
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
.line 57
|
|
.line 58
|
|
goto :goto_1
|
|
|
|
.line 59
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
.line 60
|
|
.line 61
|
|
const-string p1, "at index "
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-static {v3, p1}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
move-result-object p1
|
|
|
|
.line 67
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
throw p0
|
|
|
|
.line 71
|
|
:cond_3
|
|
const/4 v3, 0x0
|
|
|
|
.line 72
|
|
invoke-static {p1, v8, p0, v3}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
if-ne v8, v1, :cond_4
|
|
|
|
.line 76
|
|
.line 77
|
|
aget-object p0, p1, v0
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-static {p0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
new-instance p1, Lcom/google/common/collect/SingletonImmutableSet;
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-direct {p1, p0}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
return-object p1
|
|
|
|
.line 88
|
|
:cond_4
|
|
invoke-static {v8}, Lcom/google/common/collect/ImmutableSet;->r(I)I
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result p0
|
|
|
|
.line 92
|
|
div-int/lit8 v2, v2, 0x2
|
|
|
|
.line 93
|
|
.line 94
|
|
if-ge p0, v2, :cond_5
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-static {v8, p1}, Lcom/google/common/collect/ImmutableSet;->s(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-object p0
|
|
|
|
.line 100
|
|
return-object p0
|
|
|
|
.line 101
|
|
:cond_5
|
|
array-length p0, p1
|
|
|
|
.line 102
|
|
shr-int/lit8 v0, p0, 0x1
|
|
|
|
.line 103
|
|
.line 104
|
|
shr-int/lit8 p0, p0, 0x2
|
|
|
|
.line 105
|
|
.line 106
|
|
add-int/2addr v0, p0
|
|
|
|
.line 107
|
|
if-ge v8, v0, :cond_6
|
|
|
|
.line 108
|
|
.line 109
|
|
invoke-static {p1, v8}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
move-result-object p1
|
|
|
|
.line 113
|
|
:cond_6
|
|
move-object v4, p1
|
|
|
|
.line 114
|
|
new-instance v3, Lcom/google/common/collect/RegularImmutableSet;
|
|
|
|
.line 115
|
|
.line 116
|
|
invoke-direct/range {v3 .. v8}, Lcom/google/common/collect/RegularImmutableSet;-><init>([Ljava/lang/Object;[Ljava/lang/Object;III)V
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
return-object v3
|
|
|
|
.line 120
|
|
:cond_7
|
|
aget-object p0, p1, v0
|
|
|
|
.line 121
|
|
.line 122
|
|
invoke-static {p0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
new-instance p1, Lcom/google/common/collect/SingletonImmutableSet;
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-direct {p1, p0}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
return-object p1
|
|
|
|
.line 131
|
|
:cond_8
|
|
sget-object p0, Lcom/google/common/collect/RegularImmutableSet;->n:Lcom/google/common/collect/RegularImmutableSet;
|
|
|
|
.line 132
|
|
.line 133
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static t(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
instance-of v0, p0, Ljava/util/SortedSet;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-nez v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
move-object v0, p0
|
|
|
|
.line 10
|
|
check-cast v0, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableCollection;->m()Z
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v1
|
|
|
|
.line 16
|
|
if-nez v1, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
return-object v0
|
|
|
|
.line 19
|
|
:cond_0
|
|
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object p0
|
|
|
|
.line 23
|
|
array-length v0, p0
|
|
|
|
.line 24
|
|
invoke-static {v0, p0}, Lcom/google/common/collect/ImmutableSet;->s(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object p0
|
|
|
|
.line 28
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static w()Lcom/google/common/collect/ImmutableSet;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/common/collect/RegularImmutableSet;->n:Lcom/google/common/collect/RegularImmutableSet;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static x()Lcom/google/common/collect/ImmutableSet;
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/collect/SingletonImmutableSet;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lcom/google/common/collect/ImmutableList;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableSet;->f:Lcom/google/common/collect/ImmutableList;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->u()Lcom/google/common/collect/ImmutableList;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableSet;->f:Lcom/google/common/collect/ImmutableList;
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
if-ne p1, p0, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 p1, 0x1
|
|
|
|
.line 4
|
|
return p1
|
|
|
|
.line 5
|
|
:cond_0
|
|
instance-of v0, p1, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->v()Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
move-object v0, p1
|
|
|
|
.line 16
|
|
check-cast v0, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet;->v()Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->hashCode()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v0
|
|
|
|
.line 28
|
|
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v1
|
|
|
|
.line 32
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 p1, 0x0
|
|
|
|
.line 35
|
|
return p1
|
|
|
|
.line 36
|
|
:cond_1
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/Sets;->b(Ljava/util/Set;Ljava/lang/Object;)Z
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result p1
|
|
|
|
.line 40
|
|
return p1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lcom/google/common/collect/Sets;->e(Ljava/util/Set;)I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic iterator()Ljava/util/Iterator;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->p()Lcom/google/common/collect/UnmodifiableIterator;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public u()Lcom/google/common/collect/ImmutableList;
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/common/collect/ImmutableCollection;->c:[Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lcom/google/common/collect/ImmutableCollection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
sget-object v1, Lcom/google/common/collect/ImmutableList;->f:Lcom/google/common/collect/UnmodifiableListIterator;
|
|
|
|
.line 8
|
|
.line 9
|
|
array-length v1, v0
|
|
|
|
.line 10
|
|
invoke-static {v1, v0}, Lcom/google/common/collect/ImmutableList;->q(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public v()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p0, Lcom/google/common/collect/EmptyContiguousSet;
|
|
|
|
return v0
|
|
.end method
|