* 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>
909 lines
23 KiB
Smali
909 lines
23 KiB
Smali
.class Lkotlin/uuid/UuidKt__UuidJVMKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000@\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0010\u0012\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0008\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\u001a\u0008\u0010\u0000\u001a\u00020\u0001H\u0001\u001a\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0001H\u0001\u001a\u0014\u0010\u0005\u001a\u00020\u0006*\u00020\u00072\u0006\u0010\u0008\u001a\u00020\tH\u0001\u001a,\u0010\n\u001a\u00020\u000b*\u00020\u00062\u0006\u0010\u000c\u001a\u00020\u00072\u0006\u0010\r\u001a\u00020\t2\u0006\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\tH\u0001\u001a\u001c\u0010\u0010\u001a\u00020\u000b*\u00020\u00072\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\u0011\u001a\u00020\u0006H\u0001\u001a\u0010\u0010\u0012\u001a\u00020\u00012\u0006\u0010\u0013\u001a\u00020\u0014H\u0001\u001a\u0010\u0010\u0015\u001a\u00020\u00012\u0006\u0010\u0016\u001a\u00020\u0014H\u0001\u001a\r\u0010\u0017\u001a\u00020\u0001*\u00020\u0018H\u0087\u0008\u001a\r\u0010\u0019\u001a\u00020\u0018*\u00020\u0001H\u0087\u0008\u001a\u000c\u0010\u001a\u001a\u00020\u0001*\u00020\u001bH\u0007\u001a\u0014\u0010\u001a\u001a\u00020\u0001*\u00020\u001b2\u0006\u0010\u0008\u001a\u00020\tH\u0007\u001a\u0014\u0010\u001c\u001a\u00020\u001b*\u00020\u001b2\u0006\u0010\u0004\u001a\u00020\u0001H\u0007\u001a\u001c\u0010\u001c\u001a\u00020\u001b*\u00020\u001b2\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\u0004\u001a\u00020\u0001H\u0007\u001a\r\u0010\u001d\u001a\u00020\u0006*\u00020\u0006H\u0080\u0008\u00a8\u0006\u001e"
|
|
}
|
|
d2 = {
|
|
"secureRandomUuid",
|
|
"Lkotlin/uuid/Uuid;",
|
|
"serializedUuid",
|
|
"",
|
|
"uuid",
|
|
"getLongAt",
|
|
"",
|
|
"",
|
|
"index",
|
|
"",
|
|
"formatBytesInto",
|
|
"",
|
|
"dst",
|
|
"dstOffset",
|
|
"startIndex",
|
|
"endIndex",
|
|
"setLongAt",
|
|
"value",
|
|
"uuidParseHexDash",
|
|
"hexDashString",
|
|
"",
|
|
"uuidParseHex",
|
|
"hexString",
|
|
"toKotlinUuid",
|
|
"Ljava/util/UUID;",
|
|
"toJavaUuid",
|
|
"getUuid",
|
|
"Ljava/nio/ByteBuffer;",
|
|
"putUuid",
|
|
"reverseBytes",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x5
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x31
|
|
xs = "kotlin/uuid/UuidKt"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nUuidJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 UuidJVM.kt\nkotlin/uuid/UuidKt__UuidJVMKt\n*L\n1#1,277:1\n277#1:278\n277#1:279\n277#1:280\n277#1:281\n277#1:282\n277#1:283\n277#1:284\n277#1:285\n*S KotlinDebug\n*F\n+ 1 UuidJVM.kt\nkotlin/uuid/UuidKt__UuidJVMKt\n*L\n139#1:278\n140#1:279\n184#1:280\n185#1:281\n224#1:282\n225#1:283\n271#1:284\n272#1:285\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final formatBytesInto(J[BIII)V
|
|
.locals 1
|
|
.param p2 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "dst"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static/range {p0 .. p5}, Lkotlin/uuid/UuidKt__UuidKt;->formatBytesIntoCommonImpl(J[BIII)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final getLongAt([BI)J
|
|
.locals 1
|
|
.param p0 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p0, p1}, Lkotlin/uuid/UuidKt__UuidKt;->getLongAtCommonImpl([BI)J
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-wide p0
|
|
|
|
.line 10
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public static final getUuid(Ljava/nio/ByteBuffer;)Lkotlin/uuid/Uuid;
|
|
.locals 5
|
|
.param p0 # Ljava/nio/ByteBuffer;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.0"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->position()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, 0xf
|
|
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->getLong()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->getLong()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object v4, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-static {p0, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 5
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 6
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 7
|
|
:cond_0
|
|
sget-object p0, Lkotlin/uuid/Uuid;->Companion:Lkotlin/uuid/Uuid$Companion;
|
|
|
|
invoke-virtual {p0, v0, v1, v2, v3}, Lkotlin/uuid/Uuid$Companion;->fromLongs(JJ)Lkotlin/uuid/Uuid;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 8
|
|
:cond_1
|
|
new-instance p0, Ljava/nio/BufferUnderflowException;
|
|
|
|
invoke-direct {p0}, Ljava/nio/BufferUnderflowException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final getUuid(Ljava/nio/ByteBuffer;I)Lkotlin/uuid/Uuid;
|
|
.locals 4
|
|
.param p0 # Ljava/nio/ByteBuffer;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.0"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-ltz p1, :cond_2
|
|
|
|
add-int/lit8 v0, p1, 0xf
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 10
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getLong(I)J
|
|
|
|
move-result-wide v0
|
|
|
|
add-int/lit8 p1, p1, 0x8
|
|
|
|
.line 11
|
|
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getLong(I)J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
|
|
|
|
move-result-object p0
|
|
|
|
sget-object p1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 13
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 14
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 15
|
|
:cond_0
|
|
sget-object p0, Lkotlin/uuid/Uuid;->Companion:Lkotlin/uuid/Uuid$Companion;
|
|
|
|
invoke-virtual {p0, v0, v1, v2, v3}, Lkotlin/uuid/Uuid$Companion;->fromLongs(JJ)Lkotlin/uuid/Uuid;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 16
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
const-string v1, "Not enough bytes to read a uuid at index: "
|
|
|
|
const-string v2, ", with limit: "
|
|
|
|
.line 17
|
|
invoke-static {p1, v1, v2}, Landroid/support/v4/media/a;->s(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p0, 0x20
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 19
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
const-string v0, "Negative index: "
|
|
|
|
.line 20
|
|
invoke-static {p1, v0}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 21
|
|
invoke-direct {p0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final putUuid(Ljava/nio/ByteBuffer;ILkotlin/uuid/Uuid;)Ljava/nio/ByteBuffer;
|
|
.locals 5
|
|
.param p0 # Ljava/nio/ByteBuffer;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lkotlin/uuid/Uuid;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.0"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "uuid"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 12
|
|
invoke-virtual {p2}, Lkotlin/uuid/Uuid;->getMostSignificantBits()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p2}, Lkotlin/uuid/Uuid;->getLeastSignificantBits()J
|
|
|
|
move-result-wide v2
|
|
|
|
if-ltz p1, :cond_2
|
|
|
|
add-int/lit8 p2, p1, 0xf
|
|
|
|
.line 13
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result v4
|
|
|
|
if-ge p2, v4, :cond_1
|
|
|
|
.line 14
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
|
|
|
|
move-result-object p2
|
|
|
|
sget-object v4, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-static {p2, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1, v0, v1}, Ljava/nio/ByteBuffer;->putLong(IJ)Ljava/nio/ByteBuffer;
|
|
|
|
add-int/lit8 p1, p1, 0x8
|
|
|
|
.line 16
|
|
invoke-virtual {p0, p1, v2, v3}, Ljava/nio/ByteBuffer;->putLong(IJ)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_0
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 18
|
|
invoke-virtual {p0, p1, v0, v1}, Ljava/nio/ByteBuffer;->putLong(IJ)Ljava/nio/ByteBuffer;
|
|
|
|
add-int/lit8 p1, p1, 0x8
|
|
|
|
.line 19
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 20
|
|
invoke-virtual {p0, p1, v0, v1}, Ljava/nio/ByteBuffer;->putLong(IJ)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
.line 21
|
|
:goto_0
|
|
const-string p1, "toLongs(...)"
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
|
|
.line 22
|
|
:cond_1
|
|
new-instance p2, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
const-string v0, "Not enough capacity to write a uuid at index: "
|
|
|
|
const-string v1, ", with limit: "
|
|
|
|
.line 23
|
|
invoke-static {p1, v0, v1}, Landroid/support/v4/media/a;->s(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 24
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 p0, 0x20
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p2, p0}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
|
|
.line 25
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
const-string p2, "Negative index: "
|
|
|
|
.line 26
|
|
invoke-static {p1, p2}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 27
|
|
invoke-direct {p0, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final putUuid(Ljava/nio/ByteBuffer;Lkotlin/uuid/Uuid;)Ljava/nio/ByteBuffer;
|
|
.locals 5
|
|
.param p0 # Ljava/nio/ByteBuffer;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lkotlin/uuid/Uuid;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.0"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "uuid"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lkotlin/uuid/Uuid;->getMostSignificantBits()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1}, Lkotlin/uuid/Uuid;->getLeastSignificantBits()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->position()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 p1, p1, 0xf
|
|
|
|
invoke-virtual {p0}, Ljava/nio/Buffer;->limit()I
|
|
|
|
move-result v4
|
|
|
|
if-ge p1, v4, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v4, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-static {p1, v4}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v2, v3}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 7
|
|
invoke-virtual {p0, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
.line 8
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v0, v1}, Ljava/nio/ByteBuffer;->putLong(J)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object p0
|
|
|
|
.line 10
|
|
:goto_0
|
|
const-string p1, "toLongs(...)"
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
|
|
.line 11
|
|
:cond_1
|
|
new-instance p0, Ljava/nio/BufferOverflowException;
|
|
|
|
invoke-direct {p0}, Ljava/nio/BufferOverflowException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final reverseBytes(J)J
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Ljava/lang/Long;->reverseBytes(J)J
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-wide p0
|
|
|
|
.line 5
|
|
return-wide p0
|
|
.end method
|
|
|
|
.method public static final secureRandomUuid()Lkotlin/uuid/Uuid;
|
|
.locals 2
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/16 v0, 0x10
|
|
|
|
.line 2
|
|
.line 3
|
|
new-array v0, v0, [B
|
|
|
|
.line 4
|
|
.line 5
|
|
sget-object v1, Lkotlin/uuid/SecureRandomHolder;->INSTANCE:Lkotlin/uuid/SecureRandomHolder;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Lkotlin/uuid/SecureRandomHolder;->getInstance()Ljava/security/SecureRandom;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
invoke-virtual {v1, v0}, Ljava/security/SecureRandom;->nextBytes([B)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-static {v0}, Lkotlin/uuid/UuidKt__UuidKt;->uuidFromRandomBytes([B)Lkotlin/uuid/Uuid;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final serializedUuid(Lkotlin/uuid/Uuid;)Ljava/lang/Object;
|
|
.locals 5
|
|
.param p0 # Lkotlin/uuid/Uuid;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "uuid"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Lkotlin/uuid/UuidSerialized;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Lkotlin/uuid/Uuid;->getMostSignificantBits()J
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-wide v1
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Lkotlin/uuid/Uuid;->getLeastSignificantBits()J
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-wide v3
|
|
|
|
.line 16
|
|
invoke-direct {v0, v1, v2, v3, v4}, Lkotlin/uuid/UuidSerialized;-><init>(JJ)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final setLongAt([BIJ)V
|
|
.locals 1
|
|
.param p0 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p0, p1, p2, p3}, Lkotlin/uuid/UuidKt__UuidKt;->setLongAtCommonImpl([BIJ)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final toJavaUuid(Lkotlin/uuid/Uuid;)Ljava/util/UUID;
|
|
.locals 4
|
|
.param p0 # Lkotlin/uuid/Uuid;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.0"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Lkotlin/uuid/Uuid;->getMostSignificantBits()J
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-wide v0
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Lkotlin/uuid/Uuid;->getLeastSignificantBits()J
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-wide v2
|
|
|
|
.line 14
|
|
new-instance p0, Ljava/util/UUID;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {p0, v0, v1, v2, v3}, Ljava/util/UUID;-><init>(JJ)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toKotlinUuid(Ljava/util/UUID;)Lkotlin/uuid/Uuid;
|
|
.locals 5
|
|
.param p0 # Ljava/util/UUID;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/SinceKotlin;
|
|
version = "2.0"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sget-object v0, Lkotlin/uuid/Uuid;->Companion:Lkotlin/uuid/Uuid$Companion;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Ljava/util/UUID;->getMostSignificantBits()J
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-wide v1
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Ljava/util/UUID;->getLeastSignificantBits()J
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-wide v3
|
|
|
|
.line 16
|
|
invoke-virtual {v0, v1, v2, v3, v4}, Lkotlin/uuid/Uuid$Companion;->fromLongs(JJ)Lkotlin/uuid/Uuid;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p0
|
|
|
|
.line 20
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final uuidParseHex(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "hexString"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p0}, Lkotlin/uuid/UuidKt__UuidKt;->uuidParseHexCommonImpl(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p0
|
|
|
|
.line 10
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final uuidParseHexDash(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/uuid/ExperimentalUuidApi;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "hexDashString"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-static {p0}, Lkotlin/uuid/UuidKt__UuidKt;->uuidParseHexDashCommonImpl(Ljava/lang/String;)Lkotlin/uuid/Uuid;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p0
|
|
|
|
.line 10
|
|
return-object p0
|
|
.end method
|