* 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>
579 lines
10 KiB
Smali
579 lines
10 KiB
Smali
.class public final Lcom/google/common/collect/MinMaxPriorityQueue;
|
|
.super Ljava/util/AbstractQueue;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/collect/MinMaxPriorityQueue$Builder;,
|
|
Lcom/google/common/collect/MinMaxPriorityQueue$Heap;,
|
|
Lcom/google/common/collect/MinMaxPriorityQueue$MoveDesc;,
|
|
Lcom/google/common/collect/MinMaxPriorityQueue$QueueIterator;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/AbstractQueue<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:[Ljava/lang/Object;
|
|
|
|
.field public f:I
|
|
|
|
.field public g:I
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->i(II)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->g:I
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v1, 0x1
|
|
|
|
.line 9
|
|
add-int/2addr v0, v1
|
|
|
|
.line 10
|
|
iput v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->g:I
|
|
|
|
.line 11
|
|
.line 12
|
|
iget v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 13
|
|
.line 14
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 15
|
|
iput v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v2, 0x0
|
|
|
|
.line 18
|
|
if-ne v0, p1, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 21
|
|
.line 22
|
|
aput-object v2, p1, v0
|
|
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
|
|
.line 25
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 26
|
|
.line 27
|
|
aget-object p1, p1, v0
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-static {p1}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
iget p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 33
|
|
.line 34
|
|
add-int/2addr p1, v1
|
|
|
|
.line 35
|
|
not-int p1, p1
|
|
|
|
.line 36
|
|
not-int p1, p1
|
|
|
|
.line 37
|
|
if-lez p1, :cond_1
|
|
|
|
.line 38
|
|
.line 39
|
|
goto :goto_0
|
|
|
|
.line 40
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
.line 41
|
|
:goto_0
|
|
const-string p1, "negative index"
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-static {v1, p1}, Lcom/google/common/base/Preconditions;->m(ZLjava/lang/Object;)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final add(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/common/collect/MinMaxPriorityQueue;->offer(Ljava/lang/Object;)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 p1, 0x0
|
|
|
|
.line 5
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final addAll(Ljava/util/Collection;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
if-nez v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 p1, 0x0
|
|
|
|
.line 12
|
|
return p1
|
|
|
|
.line 13
|
|
:cond_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object p1
|
|
|
|
.line 17
|
|
invoke-virtual {p0, p1}, Lcom/google/common/collect/MinMaxPriorityQueue;->offer(Ljava/lang/Object;)Z
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
const/4 p1, 0x0
|
|
|
|
.line 21
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final clear()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
move v1, v0
|
|
|
|
.line 3
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 4
|
|
.line 5
|
|
if-ge v1, v2, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v2, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 8
|
|
.line 9
|
|
const/4 v3, 0x0
|
|
|
|
.line 10
|
|
aput-object v3, v2, v1
|
|
|
|
.line 11
|
|
.line 12
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 13
|
|
.line 14
|
|
goto :goto_0
|
|
|
|
.line 15
|
|
:cond_0
|
|
iput v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
.end method
|
|
|
|
.method public final iterator()Ljava/util/Iterator;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/collect/MinMaxPriorityQueue$QueueIterator;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/MinMaxPriorityQueue$QueueIterator;-><init>(Lcom/google/common/collect/MinMaxPriorityQueue;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final offer(Ljava/lang/Object;)Z
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->g:I
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v0, 0x1
|
|
|
|
.line 7
|
|
add-int/2addr p1, v0
|
|
|
|
.line 8
|
|
iput p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->g:I
|
|
|
|
.line 9
|
|
.line 10
|
|
iget p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 11
|
|
.line 12
|
|
add-int/2addr p1, v0
|
|
|
|
.line 13
|
|
iput p1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 16
|
|
.line 17
|
|
array-length v2, v1
|
|
|
|
.line 18
|
|
const/4 v3, 0x0
|
|
|
|
.line 19
|
|
if-le p1, v2, :cond_2
|
|
|
|
.line 20
|
|
.line 21
|
|
array-length v1, v1
|
|
|
|
.line 22
|
|
const/16 v2, 0x40
|
|
|
|
.line 23
|
|
.line 24
|
|
if-lt v1, v2, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
div-int/lit8 v1, v1, 0x2
|
|
|
|
.line 27
|
|
.line 28
|
|
int-to-long v1, v1
|
|
|
|
.line 29
|
|
const/4 v4, 0x3
|
|
|
|
.line 30
|
|
int-to-long v4, v4
|
|
|
|
.line 31
|
|
mul-long/2addr v1, v4
|
|
|
|
.line 32
|
|
long-to-int v4, v1
|
|
|
|
.line 33
|
|
int-to-long v5, v4
|
|
|
|
.line 34
|
|
cmp-long v1, v1, v5
|
|
|
|
.line 35
|
|
.line 36
|
|
if-nez v1, :cond_0
|
|
|
|
.line 37
|
|
.line 38
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/ArithmeticException;
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-direct {p1}, Ljava/lang/ArithmeticException;-><init>()V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
throw p1
|
|
|
|
.line 45
|
|
:cond_1
|
|
add-int/2addr v1, v0
|
|
|
|
.line 46
|
|
mul-int/lit8 v4, v1, 0x2
|
|
|
|
.line 47
|
|
.line 48
|
|
:goto_0
|
|
sub-int/2addr v4, v0
|
|
|
|
.line 49
|
|
invoke-static {v4, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result v1
|
|
|
|
.line 53
|
|
add-int/2addr v1, v0
|
|
|
|
.line 54
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
.line 55
|
|
.line 56
|
|
iget-object v2, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 57
|
|
.line 58
|
|
array-length v4, v2
|
|
|
|
.line 59
|
|
invoke-static {v2, v3, v1, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
iput-object v1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 63
|
|
.line 64
|
|
:cond_2
|
|
not-int p1, p1
|
|
|
|
.line 65
|
|
not-int p1, p1
|
|
|
|
.line 66
|
|
if-lez p1, :cond_3
|
|
|
|
.line 67
|
|
.line 68
|
|
goto :goto_1
|
|
|
|
.line 69
|
|
:cond_3
|
|
move v0, v3
|
|
|
|
.line 70
|
|
:goto_1
|
|
const-string p1, "negative index"
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-static {v0, p1}, Lcom/google/common/base/Preconditions;->m(ZLjava/lang/Object;)V
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
const/4 p1, 0x0
|
|
|
|
.line 76
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final peek()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/AbstractCollection;->isEmpty()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v0, 0x0
|
|
|
|
.line 8
|
|
return-object v0
|
|
|
|
.line 9
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 10
|
|
iget-object v1, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 11
|
|
.line 12
|
|
aget-object v0, v1, v0
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final poll()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/AbstractCollection;->isEmpty()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v0, 0x0
|
|
|
|
.line 8
|
|
return-object v0
|
|
|
|
.line 9
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v1, 0x0
|
|
|
|
.line 12
|
|
aget-object v0, v0, v1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Lj$/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {p0, v1}, Lcom/google/common/collect/MinMaxPriorityQueue;->a(I)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toArray()[Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->f:I
|
|
|
|
.line 2
|
|
.line 3
|
|
new-array v1, v0, [Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, p0, Lcom/google/common/collect/MinMaxPriorityQueue;->c:[Ljava/lang/Object;
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 v3, 0x0
|
|
|
|
.line 8
|
|
invoke-static {v2, v3, v1, v3, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
return-object v1
|
|
.end method
|