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

287 lines
8.7 KiB
Smali

.class public Landroidx/profileinstaller/ProfileInstallReceiver;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
}
.end annotation
# static fields
.field public static final ACTION_BENCHMARK_OPERATION:Ljava/lang/String; = "androidx.profileinstaller.action.BENCHMARK_OPERATION"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public static final ACTION_INSTALL_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.INSTALL_PROFILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public static final ACTION_SAVE_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.SAVE_PROFILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public static final ACTION_SKIP_FILE:Ljava/lang/String; = "androidx.profileinstaller.action.SKIP_FILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_BENCHMARK_OPERATION:Ljava/lang/String; = "EXTRA_BENCHMARK_OPERATION"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_BENCHMARK_OPERATION_DROP_SHADER_CACHE:Ljava/lang/String; = "DROP_SHADER_CACHE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_SKIP_FILE_OPERATION:Ljava/lang/String; = "EXTRA_SKIP_FILE_OPERATION"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_SKIP_FILE_OPERATION_DELETE:Ljava/lang/String; = "DELETE_SKIP_FILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field private static final EXTRA_SKIP_FILE_OPERATION_WRITE:Ljava/lang/String; = "WRITE_SKIP_FILE"
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
.line 38
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
.method public static saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
.locals 2
.param p0 # Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 150
invoke-static {}, Landroid/os/Process;->myPid()I
move-result v0
const/16 v1, 0xa
invoke-static {v0, v1}, Landroid/os/Process;->sendSignal(II)V
const/16 v0, 0xc
const/4 v1, 0x0
.line 151
invoke-interface {p0, v0, v1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 2
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
if-nez p2, :cond_0
return-void
.line 102
:cond_0
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
const-string v1, "androidx.profileinstaller.action.INSTALL_PROFILE"
.line 103
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 104
new-instance p2, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {p2}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
const/4 v1, 0x1
invoke-static {p1, p2, v0, v1}, Landroidx/profileinstaller/ProfileInstaller;->writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Z)V
goto/16 :goto_0
:cond_1
const-string v1, "androidx.profileinstaller.action.SKIP_FILE"
.line 106
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
.line 107
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p2
if-eqz p2, :cond_6
const-string v0, "EXTRA_SKIP_FILE_OPERATION"
.line 109
invoke-virtual {p2, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
const-string v0, "WRITE_SKIP_FILE"
.line 110
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
.line 111
new-instance p2, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {p2}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
invoke-static {p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->writeSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
goto :goto_0
:cond_2
const-string v0, "DELETE_SKIP_FILE"
.line 112
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_6
.line 113
new-instance p2, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {p2}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
invoke-static {p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->deleteSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
goto :goto_0
:cond_3
const-string v1, "androidx.profileinstaller.action.SAVE_PROFILE"
.line 117
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_4
.line 118
new-instance p1, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {p1, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
invoke-static {p1}, Landroidx/profileinstaller/ProfileInstallReceiver;->saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V
goto :goto_0
:cond_4
const-string v1, "androidx.profileinstaller.action.BENCHMARK_OPERATION"
.line 119
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_6
.line 120
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p2
if-eqz p2, :cond_6
const-string v0, "EXTRA_BENCHMARK_OPERATION"
.line 122
invoke-virtual {p2, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
.line 123
new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;
invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;-><init>(Landroidx/profileinstaller/ProfileInstallReceiver;)V
const-string v1, "DROP_SHADER_CACHE"
.line 124
invoke-virtual {v1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_5
.line 125
invoke-static {p1, v0}, Landroidx/profileinstaller/BenchmarkOperation;->dropShaderCache(Landroid/content/Context;Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;)V
goto :goto_0
:cond_5
const/16 p1, 0x10
const/4 p2, 0x0
.line 127
invoke-virtual {v0, p1, p2}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->onResultReceived(ILjava/lang/Object;)V
:cond_6
:goto_0
return-void
.end method