Files
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

349 lines
7.6 KiB
Smali

.class public Lcom/google/firebase/crashlytics/internal/common/CLSUUID;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static _clsId:Ljava/lang/String;
.field public static final _sequenceNumber:Ljava/util/concurrent/atomic/AtomicLong;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 32
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/google/firebase/crashlytics/internal/common/CLSUUID;->_sequenceNumber:Ljava/util/concurrent/atomic/AtomicLong;
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/crashlytics/internal/common/IdManager;)V
.locals 8
.line 36
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0xa
new-array v0, v0, [B
.line 39
invoke-virtual {p0, v0}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->populateTime([B)V
.line 40
invoke-virtual {p0, v0}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->populateSequenceNumber([B)V
.line 41
invoke-virtual {p0, v0}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->populatePID([B)V
.line 45
invoke-virtual {p1}, Lcom/google/firebase/crashlytics/internal/common/IdManager;->getInstallIds()Lcom/google/firebase/crashlytics/internal/common/InstallIdProvider$InstallIds;
move-result-object p1
invoke-virtual {p1}, Lcom/google/firebase/crashlytics/internal/common/InstallIdProvider$InstallIds;->getCrashlyticsInstallId()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Lcom/google/firebase/crashlytics/internal/common/CommonUtils;->sha1(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 46
invoke-static {v0}, Lcom/google/firebase/crashlytics/internal/common/CommonUtils;->hexify([B)Ljava/lang/String;
move-result-object v0
.line 48
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
const/4 v2, 0x0
const/16 v3, 0xc
.line 52
invoke-virtual {v0, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v4
const/16 v5, 0x10
.line 53
invoke-virtual {v0, v3, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v6
const/16 v7, 0x14
.line 54
invoke-virtual {v0, v5, v7}, Ljava/lang/String;->subSequence(II)Ljava/lang/CharSequence;
move-result-object v0
.line 55
invoke-virtual {p1, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p1
filled-new-array {v4, v6, v0, p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "%s%s%s%s"
.line 49
invoke-static {v1, v0, p1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
.line 56
invoke-virtual {p1, v1}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p1
sput-object p1, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->_clsId:Ljava/lang/String;
return-void
.end method
.method public static convertLongToFourByteBuffer(J)[B
.locals 1
const/4 v0, 0x4
.line 89
invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object v0
long-to-int p0, p0
.line 90
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;
.line 91
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
.line 92
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
.line 94
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
move-result-object p0
return-object p0
.end method
.method public static convertLongToTwoByteBuffer(J)[B
.locals 1
const/4 v0, 0x2
.line 98
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
.line 99
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->putShort(S)Ljava/nio/ByteBuffer;
.line 100
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
.line 101
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
.line 103
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->array()[B
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final populatePID([B)V
.locals 3
.line 82
invoke-static {}, Landroid/os/Process;->myPid()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
.line 83
invoke-virtual {v0}, Ljava/lang/Integer;->shortValue()S
move-result v0
int-to-long v0, v0
invoke-static {v0, v1}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->convertLongToTwoByteBuffer(J)[B
move-result-object v0
const/4 v1, 0x0
.line 84
aget-byte v1, v0, v1
const/16 v2, 0x8
aput-byte v1, p1, v2
const/4 v1, 0x1
.line 85
aget-byte v0, v0, v1
const/16 v1, 0x9
aput-byte v0, p1, v1
return-void
.end method
.method public final populateSequenceNumber([B)V
.locals 3
sget-object v0, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->_sequenceNumber:Ljava/util/concurrent/atomic/AtomicLong;
.line 76
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->incrementAndGet()J
move-result-wide v0
invoke-static {v0, v1}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->convertLongToTwoByteBuffer(J)[B
move-result-object v0
const/4 v1, 0x0
.line 77
aget-byte v1, v0, v1
const/4 v2, 0x6
aput-byte v1, p1, v2
const/4 v1, 0x1
.line 78
aget-byte v0, v0, v1
const/4 v1, 0x7
aput-byte v0, p1, v1
return-void
.end method
.method public final populateTime([B)V
.locals 7
.line 60
new-instance v0, Ljava/util/Date;
invoke-direct {v0}, Ljava/util/Date;-><init>()V
.line 61
invoke-virtual {v0}, Ljava/util/Date;->getTime()J
move-result-wide v0
const-wide/16 v2, 0x3e8
.line 62
div-long v4, v0, v2
.line 63
rem-long/2addr v0, v2
.line 64
invoke-static {v4, v5}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->convertLongToFourByteBuffer(J)[B
move-result-object v2
const/4 v3, 0x0
.line 65
aget-byte v4, v2, v3
aput-byte v4, p1, v3
const/4 v4, 0x1
.line 66
aget-byte v5, v2, v4
aput-byte v5, p1, v4
const/4 v5, 0x2
.line 67
aget-byte v6, v2, v5
aput-byte v6, p1, v5
const/4 v5, 0x3
.line 68
aget-byte v2, v2, v5
aput-byte v2, p1, v5
.line 70
invoke-static {v0, v1}, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->convertLongToTwoByteBuffer(J)[B
move-result-object v0
.line 71
aget-byte v1, v0, v3
const/4 v2, 0x4
aput-byte v1, p1, v2
const/4 v1, 0x5
.line 72
aget-byte v0, v0, v4
aput-byte v0, p1, v1
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
sget-object v0, Lcom/google/firebase/crashlytics/internal/common/CLSUUID;->_clsId:Ljava/lang/String;
return-object v0
.end method