- 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
460 lines
13 KiB
Smali
460 lines
13 KiB
Smali
.class public final Landroidx/credentials/internal/ConversionUtilsKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public static final getFinalCreateCredentialData(Landroidx/credentials/CreateCredentialRequest;Landroid/content/Context;)Landroid/os/Bundle;
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x17
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "context"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 57
|
|
invoke-virtual {p0}, Landroidx/credentials/CreateCredentialRequest;->getCredentialData()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
.line 58
|
|
invoke-virtual {p0}, Landroidx/credentials/CreateCredentialRequest;->getDisplayInfo()Landroidx/credentials/CreateCredentialRequest$DisplayInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroidx/credentials/CreateCredentialRequest$DisplayInfo;->toBundle()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
.line 64
|
|
instance-of v2, p0, Landroidx/credentials/CreatePasswordRequest;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
sget p0, Landroidx/credentials/R$drawable;->ic_password:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 65
|
|
:cond_0
|
|
instance-of p0, p0, Landroidx/credentials/CreatePublicKeyCredentialRequest;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
sget p0, Landroidx/credentials/R$drawable;->ic_passkey:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget p0, Landroidx/credentials/R$drawable;->ic_other_sign_in:I
|
|
|
|
.line 61
|
|
:goto_0
|
|
invoke-static {p1, p0}, Landroid/graphics/drawable/Icon;->createWithResource(Landroid/content/Context;I)Landroid/graphics/drawable/Icon;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "androidx.credentials.BUNDLE_KEY_CREDENTIAL_TYPE_ICON"
|
|
|
|
.line 59
|
|
invoke-virtual {v1, p1, p0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
const-string p0, "androidx.credentials.BUNDLE_KEY_REQUEST_DISPLAY_INFO"
|
|
|
|
.line 70
|
|
invoke-virtual {v0, p0, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final toJetpackCreateException(Ljava/lang/String;Ljava/lang/CharSequence;)Landroidx/credentials/exceptions/CreateCredentialException;
|
|
.locals 4
|
|
|
|
const-string v0, "errorType"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 112
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v0, "android.credentials.CreateCredentialException.TYPE_NO_CREATE_OPTIONS"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 114
|
|
:cond_0
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialNoCreateOptionException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/CreateCredentialNoCreateOptionException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v0, "android.credentials.CreateCredentialException.TYPE_INTERRUPTED"
|
|
|
|
.line 112
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 118
|
|
:cond_1
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialInterruptedException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/CreateCredentialInterruptedException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v0, "android.credentials.CreateCredentialException.TYPE_UNKNOWN"
|
|
|
|
.line 112
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 120
|
|
:cond_2
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialUnknownException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/CreateCredentialUnknownException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v0, "androidx.credentials.TYPE_CREATE_CREDENTIAL_PROVIDER_CONFIGURATION_EXCEPTION"
|
|
|
|
.line 112
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 123
|
|
:cond_3
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialProviderConfigurationException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/CreateCredentialProviderConfigurationException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v0, "androidx.credentials.TYPE_CREATE_CREDENTIAL_UNSUPPORTED_EXCEPTION"
|
|
|
|
.line 112
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
.line 125
|
|
:cond_4
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialUnsupportedException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/CreateCredentialUnsupportedException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_5
|
|
const-string v0, "android.credentials.CreateCredentialException.TYPE_USER_CANCELED"
|
|
|
|
.line 112
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const-string v2, "androidx.credentials.TYPE_CREATE_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 128
|
|
invoke-static {p0, v2, v0, v1, v3}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 133
|
|
sget-object v0, Landroidx/credentials/exceptions/publickeycredential/CreatePublicKeyCredentialException;->Companion:Landroidx/credentials/exceptions/publickeycredential/CreatePublicKeyCredentialException$Companion;
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_5
|
|
invoke-virtual {v0, p0, v3}, Landroidx/credentials/exceptions/publickeycredential/CreatePublicKeyCredentialException$Companion;->createFrom(Ljava/lang/String;Ljava/lang/String;)Landroidx/credentials/exceptions/CreateCredentialException;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 135
|
|
:cond_6
|
|
new-instance v0, Landroidx/credentials/exceptions/CreateCredentialCustomException;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroidx/credentials/exceptions/CreateCredentialCustomException;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
move-object p0, v0
|
|
|
|
goto :goto_1
|
|
|
|
.line 116
|
|
:cond_7
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialCancellationException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/CreateCredentialCancellationException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_1
|
|
return-object p0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x7a828535 -> :sswitch_5
|
|
-0x458a486e -> :sswitch_4
|
|
-0x22966b75 -> :sswitch_3
|
|
0x4e7e62e8 -> :sswitch_2
|
|
0x7cba5de0 -> :sswitch_1
|
|
0x7f1271b7 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method public static final toJetpackGetException(Ljava/lang/String;Ljava/lang/CharSequence;)Landroidx/credentials/exceptions/GetCredentialException;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "errorType"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 80
|
|
invoke-virtual {p0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
sparse-switch v0, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v0, "androidx.credentials.TYPE_GET_CREDENTIAL_PROVIDER_CONFIGURATION_EXCEPTION"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 91
|
|
:cond_0
|
|
new-instance p0, Landroidx/credentials/exceptions/GetCredentialProviderConfigurationException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/GetCredentialProviderConfigurationException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto/16 :goto_1
|
|
|
|
:sswitch_1
|
|
const-string v0, "android.credentials.GetCredentialException.TYPE_NO_CREDENTIAL"
|
|
|
|
.line 80
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 82
|
|
:cond_1
|
|
new-instance p0, Landroidx/credentials/exceptions/NoCredentialException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/NoCredentialException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_2
|
|
const-string v0, "android.credentials.GetCredentialException.TYPE_USER_CANCELED"
|
|
|
|
.line 80
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 84
|
|
:cond_2
|
|
new-instance p0, Landroidx/credentials/exceptions/GetCredentialCancellationException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/GetCredentialCancellationException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_3
|
|
const-string v0, "android.credentials.GetCredentialException.TYPE_INTERRUPTED"
|
|
|
|
.line 80
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 86
|
|
:cond_3
|
|
new-instance p0, Landroidx/credentials/exceptions/GetCredentialInterruptedException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/GetCredentialInterruptedException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_4
|
|
const-string v0, "androidx.credentials.TYPE_GET_CREDENTIAL_UNSUPPORTED_EXCEPTION"
|
|
|
|
.line 80
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
.line 93
|
|
:cond_4
|
|
new-instance p0, Landroidx/credentials/exceptions/GetCredentialUnsupportedException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/GetCredentialUnsupportedException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_1
|
|
|
|
:sswitch_5
|
|
const-string v0, "android.credentials.GetCredentialException.TYPE_UNKNOWN"
|
|
|
|
.line 80
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const-string v2, "androidx.credentials.TYPE_GET_PUBLIC_KEY_CREDENTIAL_DOM_EXCEPTION"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 96
|
|
invoke-static {p0, v2, v0, v1, v3}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 100
|
|
sget-object v0, Landroidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialException;->Companion:Landroidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialException$Companion;
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
:cond_5
|
|
invoke-virtual {v0, p0, v3}, Landroidx/credentials/exceptions/publickeycredential/GetPublicKeyCredentialException$Companion;->createFrom(Ljava/lang/String;Ljava/lang/String;)Landroidx/credentials/exceptions/GetCredentialException;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 102
|
|
:cond_6
|
|
new-instance v0, Landroidx/credentials/exceptions/GetCredentialCustomException;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroidx/credentials/exceptions/GetCredentialCustomException;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
move-object p0, v0
|
|
|
|
goto :goto_1
|
|
|
|
.line 88
|
|
:cond_7
|
|
new-instance p0, Landroidx/credentials/exceptions/GetCredentialUnknownException;
|
|
|
|
invoke-direct {p0, p1}, Landroidx/credentials/exceptions/GetCredentialUnknownException;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_1
|
|
return-object p0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x2e8eeb80 -> :sswitch_5
|
|
-0x1853f64c -> :sswitch_4
|
|
-0x2b57c88 -> :sswitch_3
|
|
0x229a9a63 -> :sswitch_2
|
|
0x256cf16b -> :sswitch_1
|
|
0x5f03f929 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|