* 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>
715 lines
13 KiB
Smali
715 lines
13 KiB
Smali
.class abstract Lcom/google/common/collect/AbstractMultiset;
|
|
.super Ljava/util/AbstractCollection;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/common/collect/Multiset;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/collect/AbstractMultiset$ElementSet;,
|
|
Lcom/google/common/collect/AbstractMultiset$EntrySet;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/AbstractCollection<",
|
|
"TE;>;",
|
|
"Lcom/google/common/collect/Multiset<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public transient c:Ljava/util/Set;
|
|
|
|
.field public transient f:Ljava/util/Set;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/util/AbstractCollection;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public A(ILjava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "oldCount"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lcom/google/common/collect/CollectPreconditions;->b(ILjava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "newCount"
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 v1, 0x0
|
|
|
|
.line 9
|
|
invoke-static {v1, v0}, Lcom/google/common/collect/CollectPreconditions;->b(ILjava/lang/String;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
invoke-interface {p0, p2}, Lcom/google/common/collect/Multiset;->Q(Ljava/lang/Object;)I
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v0
|
|
|
|
.line 16
|
|
if-ne v0, p1, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-interface {p0, p2}, Lcom/google/common/collect/Multiset;->G0(Ljava/lang/Object;)I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
const/4 p1, 0x1
|
|
|
|
.line 22
|
|
return p1
|
|
|
|
.line 23
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public G0(Ljava/lang/Object;)I
|
|
.locals 2
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
const-string v1, "count"
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-static {v0, v1}, Lcom/google/common/collect/CollectPreconditions;->b(ILjava/lang/String;)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
invoke-interface {p0, p1}, Lcom/google/common/collect/Multiset;->Q(Ljava/lang/Object;)I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
rsub-int/lit8 v1, v0, 0x0
|
|
|
|
.line 12
|
|
.line 13
|
|
if-lez v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-interface {p0, v1, p1}, Lcom/google/common/collect/Multiset;->add(ILjava/lang/Object;)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return v0
|
|
|
|
.line 19
|
|
:cond_0
|
|
if-gez v1, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
neg-int v1, v1
|
|
|
|
.line 22
|
|
invoke-interface {p0, v1, p1}, Lcom/google/common/collect/Multiset;->T(ILjava/lang/Object;)I
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public T(ILjava/lang/Object;)I
|
|
.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 a()Ljava/util/Set;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/collect/AbstractMultiset$ElementSet;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/AbstractMultiset$ElementSet;-><init>(Lcom/google/common/collect/AbstractMultiset;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public add(ILjava/lang/Object;)I
|
|
.locals 0
|
|
|
|
.line 2
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final add(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, p1}, Lcom/google/common/collect/AbstractMultiset;->add(ILjava/lang/Object;)I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final addAll(Ljava/util/Collection;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
instance-of v0, p1, Lcom/google/common/collect/Multiset;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 7
|
|
.line 8
|
|
check-cast p1, Lcom/google/common/collect/Multiset;
|
|
|
|
.line 9
|
|
.line 10
|
|
instance-of v0, p1, Lcom/google/common/collect/AbstractMapBasedMultiset;
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
check-cast p1, Lcom/google/common/collect/AbstractMapBasedMultiset;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1}, Lcom/google/common/collect/AbstractMultiset;->isEmpty()Z
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result p1
|
|
|
|
.line 20
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_1
|
|
|
|
.line 23
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 24
|
|
throw p1
|
|
|
|
.line 25
|
|
:cond_1
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v0
|
|
|
|
.line 29
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 30
|
|
.line 31
|
|
goto :goto_1
|
|
|
|
.line 32
|
|
:cond_2
|
|
invoke-interface {p1}, Lcom/google/common/collect/Multiset;->entrySet()Ljava/util/Set;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object p1
|
|
|
|
.line 36
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object p1
|
|
|
|
.line 40
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v0
|
|
|
|
.line 44
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result-object v0
|
|
|
|
.line 50
|
|
check-cast v0, Lcom/google/common/collect/Multiset$Entry;
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multiset$Entry;->a()Ljava/lang/Object;
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result-object v1
|
|
|
|
.line 56
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multiset$Entry;->getCount()I
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result v0
|
|
|
|
.line 60
|
|
invoke-interface {p0, v0, v1}, Lcom/google/common/collect/Multiset;->add(ILjava/lang/Object;)I
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
goto :goto_0
|
|
|
|
.line 64
|
|
:cond_3
|
|
const/4 p1, 0x1
|
|
|
|
.line 65
|
|
return p1
|
|
|
|
.line 66
|
|
:cond_4
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result v0
|
|
|
|
.line 70
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 71
|
|
.line 72
|
|
:goto_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 73
|
|
return p1
|
|
|
|
.line 74
|
|
:cond_5
|
|
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result-object p1
|
|
|
|
.line 78
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/Iterators;->a(Ljava/util/Collection;Ljava/util/Iterator;)Z
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result p1
|
|
|
|
.line 82
|
|
return p1
|
|
.end method
|
|
|
|
.method public c()Ljava/util/Set;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/collect/AbstractMultiset$EntrySet;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/AbstractMultiset$EntrySet;-><init>(Lcom/google/common/collect/AbstractMultiset;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public contains(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-interface {p0, p1}, Lcom/google/common/collect/Multiset;->Q(Ljava/lang/Object;)I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p1
|
|
|
|
.line 5
|
|
if-lez p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/4 p1, 0x1
|
|
|
|
.line 8
|
|
return p1
|
|
|
|
.line 9
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 10
|
|
return p1
|
|
.end method
|
|
|
|
.method public entrySet()Ljava/util/Set;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/collect/AbstractMultiset;->f:Ljava/util/Set;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/common/collect/AbstractMultiset;->c()Ljava/util/Set;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
iput-object v0, p0, Lcom/google/common/collect/AbstractMultiset;->f:Ljava/util/Set;
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/Multisets;->a(Lcom/google/common/collect/Multiset;Ljava/lang/Object;)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p1
|
|
|
|
.line 5
|
|
return p1
|
|
.end method
|
|
|
|
.method public abstract g()I
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/common/collect/AbstractMultiset;->entrySet()Ljava/util/Set;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-interface {v0}, Ljava/util/Set;->hashCode()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public abstract i()Ljava/util/Iterator;
|
|
.end method
|
|
|
|
.method public isEmpty()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/common/collect/AbstractMultiset;->entrySet()Ljava/util/Set;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
return v0
|
|
.end method
|
|
|
|
.method public j()Ljava/util/Set;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/collect/AbstractMultiset;->c:Ljava/util/Set;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/common/collect/AbstractMultiset;->a()Ljava/util/Set;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
iput-object v0, p0, Lcom/google/common/collect/AbstractMultiset;->c:Ljava/util/Set;
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public abstract k()Ljava/util/Iterator;
|
|
.end method
|
|
|
|
.method public final remove(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0, p1}, Lcom/google/common/collect/AbstractMultiset;->T(ILjava/lang/Object;)I
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
move-result p1
|
|
|
|
.line 6
|
|
if-lez p1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
return v0
|
|
|
|
.line 9
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 10
|
|
return p1
|
|
.end method
|
|
|
|
.method public final removeAll(Ljava/util/Collection;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/google/common/collect/Multiset;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
check-cast p1, Lcom/google/common/collect/Multiset;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-interface {p1}, Lcom/google/common/collect/Multiset;->j()Ljava/util/Set;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
:cond_0
|
|
invoke-interface {p0}, Lcom/google/common/collect/Multiset;->j()Ljava/util/Set;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->removeAll(Ljava/util/Collection;)Z
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result p1
|
|
|
|
.line 19
|
|
return p1
|
|
.end method
|
|
|
|
.method public final retainAll(Ljava/util/Collection;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
instance-of v0, p1, Lcom/google/common/collect/Multiset;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
check-cast p1, Lcom/google/common/collect/Multiset;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-interface {p1}, Lcom/google/common/collect/Multiset;->j()Ljava/util/Set;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
:cond_0
|
|
invoke-interface {p0}, Lcom/google/common/collect/Multiset;->j()Ljava/util/Set;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
invoke-interface {v0, p1}, Ljava/util/Set;->retainAll(Ljava/util/Collection;)Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result p1
|
|
|
|
.line 22
|
|
return p1
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/common/collect/AbstractMultiset;->entrySet()Ljava/util/Set;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|