- 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
269 lines
7.5 KiB
Smali
269 lines
7.5 KiB
Smali
.class Landroidx/activity/ComponentActivity$2;
|
|
.super Landroidx/activity/result/ActivityResultRegistry;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/activity/ComponentActivity;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Landroidx/activity/ComponentActivity;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/activity/ComponentActivity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/activity/ComponentActivity$2;->this$0:Landroidx/activity/ComponentActivity;
|
|
|
|
.line 191
|
|
invoke-direct {p0}, Landroidx/activity/result/ActivityResultRegistry;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onLaunch(ILandroidx/activity/result/contract/ActivityResultContract;Ljava/lang/Object;Landroidx/core/app/ActivityOptionsCompat;)V
|
|
.locals 8
|
|
.param p2 # Landroidx/activity/result/contract/ActivityResultContract;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroidx/core/app/ActivityOptionsCompat;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<I:",
|
|
"Ljava/lang/Object;",
|
|
"O:",
|
|
"Ljava/lang/Object;",
|
|
">(I",
|
|
"Landroidx/activity/result/contract/ActivityResultContract<",
|
|
"TI;TO;>;TI;",
|
|
"Landroidx/core/app/ActivityOptionsCompat;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/activity/ComponentActivity$2;->this$0:Landroidx/activity/ComponentActivity;
|
|
|
|
.line 204
|
|
invoke-virtual {p2, v0, p3}, Landroidx/activity/result/contract/ActivityResultContract;->getSynchronousResult(Landroid/content/Context;Ljava/lang/Object;)Landroidx/activity/result/contract/ActivityResultContract$SynchronousResult;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 206
|
|
new-instance p2, Landroid/os/Handler;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-direct {p2, p3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
new-instance p3, Landroidx/activity/ComponentActivity$2$1;
|
|
|
|
invoke-direct {p3, p0, p1, v1}, Landroidx/activity/ComponentActivity$2$1;-><init>(Landroidx/activity/ComponentActivity$2;ILandroidx/activity/result/contract/ActivityResultContract$SynchronousResult;)V
|
|
|
|
invoke-virtual {p2, p3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
|
|
.line 216
|
|
:cond_0
|
|
invoke-virtual {p2, v0, p3}, Landroidx/activity/result/contract/ActivityResultContract;->createIntent(Landroid/content/Context;Ljava/lang/Object;)Landroid/content/Intent;
|
|
|
|
move-result-object p2
|
|
|
|
.line 219
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3}, Landroid/os/Bundle;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object p3
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
.line 220
|
|
invoke-virtual {v0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->setExtrasClassLoader(Ljava/lang/ClassLoader;)V
|
|
|
|
:cond_1
|
|
const-string p3, "androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE"
|
|
|
|
.line 222
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 223
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p4
|
|
|
|
.line 224
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V
|
|
|
|
move-object v7, p4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
if-eqz p4, :cond_3
|
|
|
|
.line 226
|
|
invoke-virtual {p4}, Landroidx/core/app/ActivityOptionsCompat;->toBundle()Landroid/os/Bundle;
|
|
|
|
move-result-object p3
|
|
|
|
:goto_0
|
|
move-object v7, p3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 p3, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
const-string p3, "androidx.activity.result.contract.action.REQUEST_PERMISSIONS"
|
|
|
|
.line 228
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p3, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
const-string p3, "androidx.activity.result.contract.extra.PERMISSIONS"
|
|
|
|
.line 231
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->getStringArrayExtra(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_4
|
|
|
|
const/4 p2, 0x0
|
|
|
|
new-array p2, p2, [Ljava/lang/String;
|
|
|
|
.line 237
|
|
:cond_4
|
|
invoke-static {v0, p2, p1}, Landroidx/core/app/ActivityCompat;->requestPermissions(Landroid/app/Activity;[Ljava/lang/String;I)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
const-string p3, "androidx.activity.result.contract.action.INTENT_SENDER_REQUEST"
|
|
|
|
.line 238
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p3, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_6
|
|
|
|
const-string p3, "androidx.activity.result.contract.extra.INTENT_SENDER_REQUEST"
|
|
|
|
.line 240
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroidx/activity/result/IntentSenderRequest;
|
|
|
|
.line 243
|
|
:try_start_0
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->getIntentSender()Landroid/content/IntentSender;
|
|
|
|
move-result-object v1
|
|
|
|
.line 244
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->getFillInIntent()Landroid/content/Intent;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->getFlagsMask()I
|
|
|
|
move-result v4
|
|
|
|
.line 245
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->getFlagsValues()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move v2, p1
|
|
|
|
.line 243
|
|
invoke-static/range {v0 .. v7}, Landroidx/core/app/ActivityCompat;->startIntentSenderForResult(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
|
|
:try_end_0
|
|
.catch Landroid/content/IntentSender$SendIntentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
.line 247
|
|
new-instance p3, Landroid/os/Handler;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-direct {p3, p4}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
new-instance p4, Landroidx/activity/ComponentActivity$2$2;
|
|
|
|
invoke-direct {p4, p0, p1, p2}, Landroidx/activity/ComponentActivity$2$2;-><init>(Landroidx/activity/ComponentActivity$2;ILandroid/content/IntentSender$SendIntentException;)V
|
|
|
|
invoke-virtual {p3, p4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
goto :goto_2
|
|
|
|
.line 258
|
|
:cond_6
|
|
invoke-static {v0, p2, p1, v7}, Landroidx/core/app/ActivityCompat;->startActivityForResult(Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)V
|
|
|
|
:goto_2
|
|
return-void
|
|
.end method
|