* 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>
374 lines
7.9 KiB
Smali
374 lines
7.9 KiB
Smali
.class public final Lkotlin/time/TestTimeSource;
|
|
.super Lkotlin/time/AbstractLongTimeSource;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\u0008\u0007\u0018\u00002\u00020\u0001B\u0007\u00a2\u0006\u0004\u0008\u0002\u0010\u0003J\u0008\u0010\u0006\u001a\u00020\u0005H\u0014J\u0018\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\nH\u0086\u0002\u00a2\u0006\u0004\u0008\u000b\u0010\u000cJ\u0017\u0010\r\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\nH\u0002\u00a2\u0006\u0004\u0008\u000e\u0010\u000cR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000f"
|
|
}
|
|
d2 = {
|
|
"Lkotlin/time/TestTimeSource;",
|
|
"Lkotlin/time/AbstractLongTimeSource;",
|
|
"<init>",
|
|
"()V",
|
|
"reading",
|
|
"",
|
|
"read",
|
|
"plusAssign",
|
|
"",
|
|
"duration",
|
|
"Lkotlin/time/Duration;",
|
|
"plusAssign-LRDsOJo",
|
|
"(J)V",
|
|
"overflow",
|
|
"overflow-LRDsOJo",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "1.9"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/WasExperimental;
|
|
markerClass = {
|
|
Lkotlin/time/ExperimentalTime;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nTimeSources.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TimeSources.kt\nkotlin/time/TestTimeSource\n+ 2 longSaturatedMath.kt\nkotlin/time/LongSaturatedMathKt\n*L\n1#1,210:1\n80#2:211\n80#2:212\n*S KotlinDebug\n*F\n+ 1 TimeSources.kt\nkotlin/time/TestTimeSource\n*L\n184#1:211\n191#1:212\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private reading:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lkotlin/time/DurationUnit;->NANOSECONDS:Lkotlin/time/DurationUnit;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p0, v0}, Lkotlin/time/AbstractLongTimeSource;-><init>(Lkotlin/time/DurationUnit;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Lkotlin/time/AbstractLongTimeSource;->markNow()Lkotlin/time/ComparableTimeMark;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method private final overflow-LRDsOJo(J)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 2
|
|
.line 3
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string v2, "TestTimeSource will overflow if its reading "
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iget-wide v2, p0, Lkotlin/time/TestTimeSource;->reading:J
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Lkotlin/time/AbstractLongTimeSource;->getUnit()Lkotlin/time/DurationUnit;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v2
|
|
|
|
.line 19
|
|
invoke-static {v2}, Lkotlin/time/DurationUnitKt__DurationUnitKt;->shortName(Lkotlin/time/DurationUnit;)Ljava/lang/String;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v2
|
|
|
|
.line 23
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
const-string v2, " is advanced by "
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
invoke-static {p1, p2}, Lkotlin/time/Duration;->toString-impl(J)Ljava/lang/String;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object p1
|
|
|
|
.line 35
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
const/16 p1, 0x2e
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object p1
|
|
|
|
.line 47
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final plusAssign-LRDsOJo(J)V
|
|
.locals 8
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lkotlin/time/AbstractLongTimeSource;->getUnit()Lkotlin/time/DurationUnit;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {p1, p2, v0}, Lkotlin/time/Duration;->toLong-impl(JLkotlin/time/DurationUnit;)J
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-wide v0
|
|
|
|
.line 9
|
|
const-wide/16 v2, 0x1
|
|
|
|
.line 10
|
|
.line 11
|
|
sub-long v4, v0, v2
|
|
|
|
.line 12
|
|
.line 13
|
|
or-long/2addr v4, v2
|
|
|
|
.line 14
|
|
const-wide v6, 0x7fffffffffffffffL
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
cmp-long v4, v4, v6
|
|
|
|
.line 20
|
|
.line 21
|
|
if-nez v4, :cond_1
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v0, 0x2
|
|
|
|
.line 24
|
|
invoke-static {p1, p2, v0}, Lkotlin/time/Duration;->div-UwyO8pc(JI)J
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-wide v0
|
|
|
|
.line 28
|
|
invoke-virtual {p0}, Lkotlin/time/AbstractLongTimeSource;->getUnit()Lkotlin/time/DurationUnit;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v4
|
|
|
|
.line 32
|
|
invoke-static {v0, v1, v4}, Lkotlin/time/Duration;->toLong-impl(JLkotlin/time/DurationUnit;)J
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-wide v4
|
|
|
|
.line 36
|
|
sub-long/2addr v4, v2
|
|
|
|
.line 37
|
|
or-long/2addr v2, v4
|
|
|
|
.line 38
|
|
cmp-long v2, v2, v6
|
|
|
|
.line 39
|
|
.line 40
|
|
if-nez v2, :cond_0
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-direct {p0, p1, p2}, Lkotlin/time/TestTimeSource;->overflow-LRDsOJo(J)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
return-void
|
|
|
|
.line 46
|
|
:cond_0
|
|
iget-wide v2, p0, Lkotlin/time/TestTimeSource;->reading:J
|
|
|
|
.line 47
|
|
.line 48
|
|
:try_start_0
|
|
invoke-virtual {p0, v0, v1}, Lkotlin/time/TestTimeSource;->plusAssign-LRDsOJo(J)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
invoke-static {p1, p2, v0, v1}, Lkotlin/time/Duration;->minus-LRDsOJo(JJ)J
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result-wide p1
|
|
|
|
.line 55
|
|
invoke-virtual {p0, p1, p2}, Lkotlin/time/TestTimeSource;->plusAssign-LRDsOJo(J)V
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
return-void
|
|
|
|
.line 59
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 60
|
|
iput-wide v2, p0, Lkotlin/time/TestTimeSource;->reading:J
|
|
|
|
.line 61
|
|
.line 62
|
|
throw p1
|
|
|
|
.line 63
|
|
:cond_1
|
|
iget-wide v2, p0, Lkotlin/time/TestTimeSource;->reading:J
|
|
|
|
.line 64
|
|
.line 65
|
|
add-long v4, v2, v0
|
|
|
|
.line 66
|
|
.line 67
|
|
xor-long/2addr v0, v2
|
|
|
|
.line 68
|
|
const-wide/16 v6, 0x0
|
|
|
|
.line 69
|
|
.line 70
|
|
cmp-long v0, v0, v6
|
|
|
|
.line 71
|
|
.line 72
|
|
if-ltz v0, :cond_2
|
|
|
|
.line 73
|
|
.line 74
|
|
xor-long v0, v2, v4
|
|
|
|
.line 75
|
|
.line 76
|
|
cmp-long v0, v0, v6
|
|
|
|
.line 77
|
|
.line 78
|
|
if-gez v0, :cond_2
|
|
|
|
.line 79
|
|
.line 80
|
|
invoke-direct {p0, p1, p2}, Lkotlin/time/TestTimeSource;->overflow-LRDsOJo(J)V
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
:cond_2
|
|
iput-wide v4, p0, Lkotlin/time/TestTimeSource;->reading:J
|
|
|
|
.line 84
|
|
.line 85
|
|
return-void
|
|
.end method
|
|
|
|
.method public read()J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-wide v0, p0, Lkotlin/time/TestTimeSource;->reading:J
|
|
|
|
.line 2
|
|
.line 3
|
|
return-wide v0
|
|
.end method
|