260 lines
5.5 KiB
Smali
260 lines
5.5 KiB
Smali
.class final Lcom/crashlytics/android/core/e;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# static fields
|
|
.field private static final pI:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
.field private static pJ:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V
|
|
|
|
sput-object v0, Lcom/crashlytics/android/core/e;->pI:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lio/fabric/sdk/android/a/b/p;)V
|
|
.locals 11
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
new-array v0, v0, [B
|
|
|
|
new-instance v1, Ljava/util/Date;
|
|
|
|
invoke-direct {v1}, Ljava/util/Date;-><init>()V
|
|
|
|
invoke-virtual {v1}, Ljava/util/Date;->getTime()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v3, 0x3e8
|
|
|
|
div-long v5, v1, v3
|
|
|
|
rem-long/2addr v1, v3
|
|
|
|
const/4 v3, 0x4
|
|
|
|
invoke-static {v3}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v4
|
|
|
|
long-to-int v5, v5
|
|
|
|
invoke-virtual {v4, v5}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
|
|
|
|
sget-object v5, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-virtual {v4, v5}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-virtual {v4, v5}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
invoke-virtual {v4}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object v4
|
|
|
|
aget-byte v6, v4, v5
|
|
|
|
aput-byte v6, v0, v5
|
|
|
|
const/4 v6, 0x1
|
|
|
|
aget-byte v7, v4, v6
|
|
|
|
aput-byte v7, v0, v6
|
|
|
|
const/4 v7, 0x2
|
|
|
|
aget-byte v8, v4, v7
|
|
|
|
aput-byte v8, v0, v7
|
|
|
|
const/4 v8, 0x3
|
|
|
|
aget-byte v4, v4, v8
|
|
|
|
aput-byte v4, v0, v8
|
|
|
|
invoke-static {v1, v2}, Lcom/crashlytics/android/core/e;->i(J)[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-byte v2, v1, v5
|
|
|
|
aput-byte v2, v0, v3
|
|
|
|
aget-byte v1, v1, v6
|
|
|
|
const/4 v2, 0x5
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
sget-object v1, Lcom/crashlytics/android/core/e;->pI:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicLong;->incrementAndGet()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-static {v1, v2}, Lcom/crashlytics/android/core/e;->i(J)[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-byte v2, v1, v5
|
|
|
|
const/4 v4, 0x6
|
|
|
|
aput-byte v2, v0, v4
|
|
|
|
aget-byte v1, v1, v6
|
|
|
|
const/4 v2, 0x7
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
invoke-static {}, Landroid/os/Process;->myPid()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->shortValue()S
|
|
|
|
move-result v1
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-static {v1, v2}, Lcom/crashlytics/android/core/e;->i(J)[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-byte v2, v1, v5
|
|
|
|
const/16 v4, 0x8
|
|
|
|
aput-byte v2, v0, v4
|
|
|
|
aget-byte v1, v1, v6
|
|
|
|
const/16 v2, 0x9
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
invoke-virtual {p1}, Lio/fabric/sdk/android/a/b/p;->Ec()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lio/fabric/sdk/android/a/b/i;->n(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0}, Lio/fabric/sdk/android/a/b/i;->I([B)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
const-string v2, "%s-%s-%s-%s"
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
const/16 v4, 0xc
|
|
|
|
invoke-virtual {v0, v5, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
aput-object v9, v3, v5
|
|
|
|
const/16 v9, 0x10
|
|
|
|
invoke-virtual {v0, v4, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
aput-object v10, v3, v6
|
|
|
|
const/16 v6, 0x14
|
|
|
|
invoke-virtual {v0, v9, v6}, Ljava/lang/String;->subSequence(II)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v3, v7
|
|
|
|
invoke-virtual {p1, v5, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aput-object p1, v3, v8
|
|
|
|
invoke-static {v1, v2, v3}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
sput-object p1, Lcom/crashlytics/android/core/e;->pJ:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static i(J)[B
|
|
.locals 1
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
long-to-int p0, p0
|
|
|
|
int-to-short p0, p0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
|
|
|
|
sget-object p0, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
|
|
|
|
const/4 p0, 0x0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
|
|
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/crashlytics/android/core/e;->pJ:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|