Files
rr3-apk/smali/androidx/profileinstaller/ProfileVerifier$Cache.smali
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

314 lines
7.4 KiB
Smali

.class Landroidx/profileinstaller/ProfileVerifier$Cache;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/profileinstaller/ProfileVerifier;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Cache"
.end annotation
# static fields
.field private static final SCHEMA:I = 0x1
# instance fields
.field final mInstalledCurrentProfileSize:J
.field final mPackageLastUpdateTime:J
.field final mResultCode:I
.field final mSchema:I
# direct methods
.method public constructor <init>(IIJJ)V
.locals 0
.line 337
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
iput p2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
iput-wide p3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
iput-wide p5, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
return-void
.end method
.method public static readFromFile(Ljava/io/File;)Landroidx/profileinstaller/ProfileVerifier$Cache;
.locals 9
.param p0 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 376
new-instance v0, Ljava/io/DataInputStream;
new-instance v1, Ljava/io/FileInputStream;
invoke-direct {v1, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
.line 377
:try_start_0
new-instance p0, Landroidx/profileinstaller/ProfileVerifier$Cache;
.line 378
invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I
move-result v3
.line 379
invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I
move-result v4
.line 380
invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J
move-result-wide v5
.line 381
invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J
move-result-wide v7
move-object v2, p0
invoke-direct/range {v2 .. v8}, Landroidx/profileinstaller/ProfileVerifier$Cache;-><init>(IIJJ)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 383
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
return-object p0
:catchall_0
move-exception p0
.line 376
:try_start_1
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_0
:catchall_1
move-exception v0
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 6
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_3
.line 347
instance-of v2, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;
if-nez v2, :cond_1
goto :goto_1
.line 348
:cond_1
check-cast p1, Landroidx/profileinstaller/ProfileVerifier$Cache;
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
.line 349
iget v3, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
if-ne v2, v3, :cond_2
iget-wide v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
iget-wide v4, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
cmp-long v2, v2, v4
if-nez v2, :cond_2
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
iget v3, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
if-ne v2, v3, :cond_2
iget-wide v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
iget-wide v4, p1, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
cmp-long p1, v2, v4
if-nez p1, :cond_2
goto :goto_0
:cond_2
move v0, v1
:goto_0
return v0
:cond_3
:goto_1
return v1
.end method
.method public hashCode()I
.locals 5
iget v0, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
.line 358
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
.line 359
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
iget v2, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
.line 360
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
iget-wide v3, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
.line 361
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
filled-new-array {v0, v1, v2, v3}, [Ljava/lang/Object;
move-result-object v0
.line 357
invoke-static {v0}, Ljava/util/Objects;->hash([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public writeOnFile(Ljava/io/File;)V
.locals 3
.param p1 # Ljava/io/File;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 366
invoke-virtual {p1}, Ljava/io/File;->delete()Z
.line 367
new-instance v0, Ljava/io/DataOutputStream;
new-instance v1, Ljava/io/FileOutputStream;
invoke-direct {v1, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V
invoke-direct {v0, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_start_0
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mSchema:I
.line 368
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
iget p1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mResultCode:I
.line 369
invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mPackageLastUpdateTime:J
.line 370
invoke-virtual {v0, v1, v2}, Ljava/io/DataOutputStream;->writeLong(J)V
iget-wide v1, p0, Landroidx/profileinstaller/ProfileVerifier$Cache;->mInstalledCurrentProfileSize:J
.line 371
invoke-virtual {v0, v1, v2}, Ljava/io/DataOutputStream;->writeLong(J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 372
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
return-void
:catchall_0
move-exception p1
.line 367
:try_start_1
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_0
:catchall_1
move-exception v0
invoke-virtual {p1, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:goto_0
throw p1
.end method