* 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>
554 lines
11 KiB
Smali
554 lines
11 KiB
Smali
.class public final Landroidx/graphics/shapes/MeasuredPolygon;
|
|
.super Lkotlin/collections/AbstractList;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/graphics/shapes/MeasuredPolygon$Companion;,
|
|
Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/collections/AbstractList<",
|
|
"Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u0008\u0000\u0018\u00002\u000c\u0012\u0008\u0012\u00060\u0002R\u00020\u00000\u0001:\u0002\u0003\u0004\u00a8\u0006\u0005"
|
|
}
|
|
d2 = {
|
|
"Landroidx/graphics/shapes/MeasuredPolygon;",
|
|
"Lkotlin/collections/AbstractList;",
|
|
"Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;",
|
|
"Companion",
|
|
"MeasuredCubic",
|
|
"graphics-shapes_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nPolygonMeasure.kt\nKotlin\n*S Kotlin\n*F\n+ 1 PolygonMeasure.kt\nandroidx/graphics/shapes/MeasuredPolygon\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 Utils.kt\nandroidx/graphics/shapes/Utils\n*L\n1#1,353:1\n1#2:354\n350#3,7:355\n108#4,4:362\n*S KotlinDebug\n*F\n+ 1 PolygonMeasure.kt\nandroidx/graphics/shapes/MeasuredPolygon\n*L\n169#1:355,7\n182#1:362,4\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic h:I
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Landroidx/graphics/shapes/Measurer;
|
|
|
|
.field public final f:Ljava/util/ArrayList;
|
|
|
|
.field public final g:Ljava/util/List;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/graphics/shapes/Measurer;Ljava/util/List;Ljava/util/List;Landroidx/collection/MutableFloatList;)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lkotlin/collections/AbstractList;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget v0, p4, Landroidx/collection/FloatList;->b:I
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p3}, Ljava/util/List;->size()I
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v1
|
|
|
|
.line 10
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 11
|
|
.line 12
|
|
if-ne v0, v1, :cond_7
|
|
|
|
.line 13
|
|
.line 14
|
|
iget v0, p4, Landroidx/collection/FloatList;->b:I
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v1, "FloatList is empty."
|
|
|
|
.line 17
|
|
.line 18
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object v2, p4, Landroidx/collection/FloatList;->a:[F
|
|
|
|
.line 21
|
|
.line 22
|
|
const/4 v3, 0x0
|
|
|
|
.line 23
|
|
aget v4, v2, v3
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 v5, 0x0
|
|
|
|
.line 26
|
|
cmpg-float v4, v4, v5
|
|
|
|
.line 27
|
|
.line 28
|
|
if-nez v4, :cond_5
|
|
|
|
.line 29
|
|
.line 30
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 31
|
|
.line 32
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
.line 33
|
|
.line 34
|
|
aget v0, v2, v0
|
|
|
|
.line 35
|
|
.line 36
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
.line 37
|
|
.line 38
|
|
cmpg-float v0, v0, v1
|
|
|
|
.line 39
|
|
.line 40
|
|
if-nez v0, :cond_3
|
|
|
|
.line 41
|
|
.line 42
|
|
iput-object p1, p0, Landroidx/graphics/shapes/MeasuredPolygon;->c:Landroidx/graphics/shapes/Measurer;
|
|
|
|
.line 43
|
|
.line 44
|
|
iput-object p2, p0, Landroidx/graphics/shapes/MeasuredPolygon;->g:Ljava/util/List;
|
|
|
|
.line 45
|
|
.line 46
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
invoke-interface {p3}, Ljava/util/List;->size()I
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result p2
|
|
|
|
.line 55
|
|
:goto_0
|
|
if-ge v3, p2, :cond_1
|
|
|
|
.line 56
|
|
.line 57
|
|
add-int/lit8 v0, v3, 0x1
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {p4, v0}, Landroidx/collection/FloatList;->a(I)F
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result v2
|
|
|
|
.line 63
|
|
invoke-virtual {p4, v3}, Landroidx/collection/FloatList;->a(I)F
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
move-result v4
|
|
|
|
.line 67
|
|
sub-float/2addr v2, v4
|
|
|
|
.line 68
|
|
const v4, 0x38d1b717 # 1.0E-4f
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
cmpl-float v2, v2, v4
|
|
|
|
.line 72
|
|
.line 73
|
|
if-lez v2, :cond_0
|
|
|
|
.line 74
|
|
.line 75
|
|
new-instance v2, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-interface {p3, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object v3
|
|
|
|
.line 81
|
|
check-cast v3, Landroidx/graphics/shapes/Cubic;
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-virtual {p4, v0}, Landroidx/collection/FloatList;->a(I)F
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
move-result v4
|
|
|
|
.line 87
|
|
invoke-direct {v2, p0, v3, v5, v4}, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;-><init>(Landroidx/graphics/shapes/MeasuredPolygon;Landroidx/graphics/shapes/Cubic;FF)V
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {p1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
invoke-virtual {p4, v0}, Landroidx/collection/FloatList;->a(I)F
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
move-result v2
|
|
|
|
.line 97
|
|
move v5, v2
|
|
|
|
.line 98
|
|
:cond_0
|
|
move v3, v0
|
|
|
|
.line 99
|
|
goto :goto_0
|
|
|
|
.line 100
|
|
:cond_1
|
|
invoke-static {p1}, Lkotlin/collections/CollectionsKt;->getLastIndex(Ljava/util/List;)I
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result p2
|
|
|
|
.line 104
|
|
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
move-result-object p2
|
|
|
|
.line 108
|
|
check-cast p2, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 109
|
|
.line 110
|
|
iget p3, p2, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;->c:F
|
|
|
|
.line 111
|
|
.line 112
|
|
cmpl-float p4, v1, p3
|
|
|
|
.line 113
|
|
.line 114
|
|
if-ltz p4, :cond_2
|
|
|
|
.line 115
|
|
.line 116
|
|
iput p3, p2, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;->c:F
|
|
|
|
.line 117
|
|
.line 118
|
|
iput v1, p2, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;->d:F
|
|
|
|
.line 119
|
|
.line 120
|
|
iput-object p1, p0, Landroidx/graphics/shapes/MeasuredPolygon;->f:Ljava/util/ArrayList;
|
|
|
|
.line 121
|
|
.line 122
|
|
return-void
|
|
|
|
.line 123
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 124
|
|
.line 125
|
|
const-string p2, "endOutlineProgress is expected to be equal or greater than startOutlineProgress"
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
throw p1
|
|
|
|
.line 131
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 132
|
|
.line 133
|
|
const-string p2, "Last outline progress value is expected to be one"
|
|
|
|
.line 134
|
|
.line 135
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
throw p1
|
|
|
|
.line 139
|
|
:cond_4
|
|
new-instance p1, Ljava/util/NoSuchElementException;
|
|
|
|
.line 140
|
|
.line 141
|
|
invoke-direct {p1, v1}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
throw p1
|
|
|
|
.line 145
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 146
|
|
.line 147
|
|
const-string p2, "First outline progress value is expected to be zero"
|
|
|
|
.line 148
|
|
.line 149
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 150
|
|
.line 151
|
|
.line 152
|
|
throw p1
|
|
|
|
.line 153
|
|
:cond_6
|
|
new-instance p1, Ljava/util/NoSuchElementException;
|
|
|
|
.line 154
|
|
.line 155
|
|
invoke-direct {p1, v1}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 156
|
|
.line 157
|
|
.line 158
|
|
throw p1
|
|
|
|
.line 159
|
|
:cond_7
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 160
|
|
.line 161
|
|
const-string p2, "Outline progress size is expected to be the cubics size + 1"
|
|
|
|
.line 162
|
|
.line 163
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 164
|
|
.line 165
|
|
.line 166
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bridge contains(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 p1, 0x0
|
|
|
|
.line 6
|
|
return p1
|
|
|
|
.line 7
|
|
:cond_0
|
|
check-cast p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-super {p0, p1}, Lkotlin/collections/AbstractCollection;->contains(Ljava/lang/Object;)Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p1
|
|
|
|
.line 13
|
|
return p1
|
|
.end method
|
|
|
|
.method public final get(I)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/graphics/shapes/MeasuredPolygon;->f:Ljava/util/ArrayList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
check-cast p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 8
|
|
.line 9
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getSize()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/graphics/shapes/MeasuredPolygon;->f:Ljava/util/ArrayList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
return v0
|
|
.end method
|
|
|
|
.method public final bridge indexOf(Ljava/lang/Object;)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 p1, -0x1
|
|
|
|
.line 6
|
|
return p1
|
|
|
|
.line 7
|
|
:cond_0
|
|
check-cast p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-super {p0, p1}, Lkotlin/collections/AbstractList;->indexOf(Ljava/lang/Object;)I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p1
|
|
|
|
.line 13
|
|
return p1
|
|
.end method
|
|
|
|
.method public final bridge lastIndexOf(Ljava/lang/Object;)I
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 p1, -0x1
|
|
|
|
.line 6
|
|
return p1
|
|
|
|
.line 7
|
|
:cond_0
|
|
check-cast p1, Landroidx/graphics/shapes/MeasuredPolygon$MeasuredCubic;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-super {p0, p1}, Lkotlin/collections/AbstractList;->lastIndexOf(Ljava/lang/Object;)I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p1
|
|
|
|
.line 13
|
|
return p1
|
|
.end method
|