- 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
167 lines
4.6 KiB
Smali
167 lines
4.6 KiB
Smali
.class public final Landroidx/core/util/AtomicFileKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nAtomicFile.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AtomicFile.kt\nandroidx/core/util/AtomicFileKt\n*L\n1#1,72:1\n30#1,13:73\n*S KotlinDebug\n*F\n+ 1 AtomicFile.kt\nandroidx/core/util/AtomicFileKt\n*L\n46#1:73,13\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final readBytes(Landroid/util/AtomicFile;)[B
|
|
.locals 0
|
|
|
|
.line 62
|
|
invoke-virtual {p0}, Landroid/util/AtomicFile;->readFully()[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final readText(Landroid/util/AtomicFile;Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
.line 70
|
|
invoke-virtual {p0}, Landroid/util/AtomicFile;->readFully()[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0, p1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static synthetic readText$default(Landroid/util/AtomicFile;Ljava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
and-int/lit8 p2, p2, 0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 69
|
|
sget-object p1, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1}, Landroidx/core/util/AtomicFileKt;->readText(Landroid/util/AtomicFile;Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final tryWrite(Landroid/util/AtomicFile;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/util/AtomicFile;",
|
|
"Lkotlin/jvm/functions/Function1;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 30
|
|
invoke-virtual {p0}, Landroid/util/AtomicFile;->startWrite()Ljava/io/FileOutputStream;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 33
|
|
:try_start_0
|
|
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 34
|
|
invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->finishWrite(Ljava/io/FileOutputStream;)V
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 36
|
|
invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 39
|
|
invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->failWrite(Ljava/io/FileOutputStream;)V
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final writeBytes(Landroid/util/AtomicFile;[B)V
|
|
.locals 1
|
|
|
|
.line 30
|
|
invoke-virtual {p0}, Landroid/util/AtomicFile;->startWrite()Ljava/io/FileOutputStream;
|
|
|
|
move-result-object v0
|
|
|
|
.line 46
|
|
:try_start_0
|
|
invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write([B)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 37
|
|
invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->finishWrite(Ljava/io/FileOutputStream;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 39
|
|
invoke-virtual {p0, v0}, Landroid/util/AtomicFile;->failWrite(Ljava/io/FileOutputStream;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final writeText(Landroid/util/AtomicFile;Ljava/lang/String;Ljava/nio/charset/Charset;)V
|
|
.locals 0
|
|
|
|
.line 54
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "this as java.lang.String).getBytes(charset)"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0, p1}, Landroidx/core/util/AtomicFileKt;->writeBytes(Landroid/util/AtomicFile;[B)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic writeText$default(Landroid/util/AtomicFile;Ljava/lang/String;Ljava/nio/charset/Charset;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 53
|
|
sget-object p2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Landroidx/core/util/AtomicFileKt;->writeText(Landroid/util/AtomicFile;Ljava/lang/String;Ljava/nio/charset/Charset;)V
|
|
|
|
return-void
|
|
.end method
|