* 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
11 KiB
Smali
500 lines
11 KiB
Smali
.class public final Lcom/google/common/collect/Maps;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/collect/Maps$EntryFunction;,
|
|
Lcom/google/common/collect/Maps$MapDifferenceImpl;,
|
|
Lcom/google/common/collect/Maps$SortedMapDifferenceImpl;,
|
|
Lcom/google/common/collect/Maps$ValueDifferenceImpl;,
|
|
Lcom/google/common/collect/Maps$AsMapView;,
|
|
Lcom/google/common/collect/Maps$SortedAsMapView;,
|
|
Lcom/google/common/collect/Maps$NavigableAsMapView;,
|
|
Lcom/google/common/collect/Maps$UnmodifiableEntrySet;,
|
|
Lcom/google/common/collect/Maps$BiMapConverter;,
|
|
Lcom/google/common/collect/Maps$UnmodifiableBiMap;,
|
|
Lcom/google/common/collect/Maps$EntryTransformer;,
|
|
Lcom/google/common/collect/Maps$TransformedEntriesMap;,
|
|
Lcom/google/common/collect/Maps$TransformedEntriesSortedMap;,
|
|
Lcom/google/common/collect/Maps$TransformedEntriesNavigableMap;,
|
|
Lcom/google/common/collect/Maps$AbstractFilteredMap;,
|
|
Lcom/google/common/collect/Maps$FilteredKeyMap;,
|
|
Lcom/google/common/collect/Maps$FilteredEntryMap;,
|
|
Lcom/google/common/collect/Maps$FilteredEntrySortedMap;,
|
|
Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;,
|
|
Lcom/google/common/collect/Maps$FilteredEntryBiMap;,
|
|
Lcom/google/common/collect/Maps$UnmodifiableNavigableMap;,
|
|
Lcom/google/common/collect/Maps$DescendingMap;,
|
|
Lcom/google/common/collect/Maps$EntrySet;,
|
|
Lcom/google/common/collect/Maps$Values;,
|
|
Lcom/google/common/collect/Maps$NavigableKeySet;,
|
|
Lcom/google/common/collect/Maps$SortedKeySet;,
|
|
Lcom/google/common/collect/Maps$KeySet;,
|
|
Lcom/google/common/collect/Maps$IteratorBasedAbstractMap;,
|
|
Lcom/google/common/collect/Maps$ViewCachingAbstractMap;,
|
|
Lcom/google/common/collect/Maps$FilteredMapValues;,
|
|
Lcom/google/common/collect/Maps$UnmodifiableEntries;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Ljava/util/Map$Entry;)Ljava/util/Map$Entry;
|
|
.locals 1
|
|
|
|
.line 1
|
|
if-nez p0, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 p0, 0x0
|
|
|
|
.line 4
|
|
return-object p0
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance v0, Lcom/google/common/collect/Maps$7;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/Maps$7;-><init>(Ljava/util/Map$Entry;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static b(Ljava/util/Set;Lcom/google/common/base/Function;)Ljava/util/Map;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/common/collect/Maps$AsMapView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Maps$AsMapView;-><init>(Ljava/util/Set;Lcom/google/common/base/Function;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static c(I)I
|
|
.locals 4
|
|
|
|
.line 1
|
|
const/4 v0, 0x3
|
|
|
|
.line 2
|
|
if-ge p0, v0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
const-string v0, "expectedSize"
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p0, v0}, Lcom/google/common/collect/CollectPreconditions;->b(ILjava/lang/String;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
.line 10
|
|
.line 11
|
|
return p0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
.line 13
|
|
.line 14
|
|
if-ge p0, v0, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
int-to-double v0, p0
|
|
|
|
.line 17
|
|
const-wide/high16 v2, 0x3fe8000000000000L # 0.75
|
|
|
|
.line 18
|
|
.line 19
|
|
div-double/2addr v0, v2
|
|
|
|
.line 20
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-wide v0
|
|
|
|
.line 24
|
|
double-to-int p0, v0
|
|
|
|
.line 25
|
|
return p0
|
|
|
|
.line 26
|
|
:cond_1
|
|
const p0, 0x7fffffff
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
return p0
|
|
.end method
|
|
|
|
.method public static d(Ljava/util/NavigableMap;Lcom/google/common/base/Predicate;)Ljava/util/NavigableMap;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
instance-of v0, p0, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
check-cast p0, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v0, p0, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;->f:Lcom/google/common/base/Predicate;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-static {v0, p1}, Lcom/google/common/base/Predicates;->b(Lcom/google/common/base/Predicate;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Predicate;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
new-instance v0, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;
|
|
|
|
.line 17
|
|
.line 18
|
|
iget-object p0, p0, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;->c:Ljava/util/NavigableMap;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;-><init>(Ljava/util/NavigableMap;Lcom/google/common/base/Predicate;)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
return-object v0
|
|
|
|
.line 24
|
|
:cond_0
|
|
new-instance v0, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Maps$FilteredEntryNavigableMap;-><init>(Ljava/util/NavigableMap;Lcom/google/common/base/Predicate;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static e(Ljava/util/Map$Entry;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
if-nez p0, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 p0, 0x0
|
|
|
|
.line 4
|
|
return-object p0
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-interface {p0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p0
|
|
|
|
.line 9
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static f(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
:try_start_0
|
|
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 8
|
|
return-object p0
|
|
|
|
.line 9
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 10
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static g(Ljava/util/Map;)Ljava/lang/String;
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-interface {p0}, Ljava/util/Map;->size()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const-string v1, "size"
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v0, v1}, Lcom/google/common/collect/CollectPreconditions;->b(ILjava/lang/String;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 11
|
|
.line 12
|
|
int-to-long v2, v0
|
|
|
|
.line 13
|
|
const-wide/16 v4, 0x8
|
|
|
|
.line 14
|
|
.line 15
|
|
mul-long/2addr v2, v4
|
|
|
|
.line 16
|
|
const-wide/32 v4, 0x40000000
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-wide v2
|
|
|
|
.line 23
|
|
long-to-int v0, v2
|
|
|
|
.line 24
|
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
const/16 v0, 0x7b
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object p0
|
|
|
|
.line 36
|
|
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object p0
|
|
|
|
.line 40
|
|
const/4 v0, 0x1
|
|
|
|
.line 41
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v2
|
|
|
|
.line 45
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object v2
|
|
|
|
.line 51
|
|
check-cast v2, Ljava/util/Map$Entry;
|
|
|
|
.line 52
|
|
.line 53
|
|
if-nez v0, :cond_0
|
|
|
|
.line 54
|
|
.line 55
|
|
const-string v0, ", "
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
:cond_0
|
|
invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result-object v0
|
|
|
|
.line 64
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
const/16 v0, 0x3d
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object v0
|
|
|
|
.line 76
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
const/4 v0, 0x0
|
|
|
|
.line 80
|
|
goto :goto_0
|
|
|
|
.line 81
|
|
:cond_1
|
|
const/16 p0, 0x7d
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-result-object p0
|
|
|
|
.line 90
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static h(Ljava/util/Map;Lcom/google/common/base/Function;)Ljava/util/Map;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Lcom/google/common/collect/f;
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x4
|
|
|
|
.line 7
|
|
invoke-direct {v0, v1, p1}, Lcom/google/common/collect/f;-><init>(ILjava/lang/Object;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
new-instance p1, Lcom/google/common/collect/Maps$TransformedEntriesMap;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {p1, p0, v0}, Lcom/google/common/collect/Maps$TransformedEntriesMap;-><init>(Ljava/util/Map;Lcom/google/common/collect/Maps$EntryTransformer;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
return-object p1
|
|
.end method
|