apkfuckery/com.discord/smali/androidx/browser/customtabs/CustomTabsService$1.smali

450 lines
15 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Landroidx/browser/customtabs/CustomTabsService$1;
2020-07-08 16:44:49 +00:00
.super Ld0/a/a/b$a;
2020-05-17 12:40:10 +00:00
.source "CustomTabsService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/browser/customtabs/CustomTabsService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Landroidx/browser/customtabs/CustomTabsService;
# direct methods
.method public constructor <init>(Landroidx/browser/customtabs/CustomTabsService;)V
.locals 0
iput-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ld0/a/a/b$a;-><init>()V
2020-05-17 12:40:10 +00:00
return-void
.end method
2020-07-08 16:44:49 +00:00
.method private getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
.locals 2
.param p1 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
return-object p1
2020-07-08 16:44:49 +00:00
:cond_0
const-string v0, "android.support.customtabs.extra.SESSION_ID"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v1, Landroid/app/PendingIntent;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object v1
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method private newSessionInternal(Ld0/a/a/a;Landroid/app/PendingIntent;)Z
.locals 4
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
new-instance v0, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p2, 0x0
2020-05-17 12:40:10 +00:00
:try_start_0
2020-07-08 16:44:49 +00:00
new-instance v1, Le0/a/a/a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v1, p0, v0}, Le0/a/a/a;-><init>(Landroidx/browser/customtabs/CustomTabsService$1;Landroidx/browser/customtabs/CustomTabsSessionToken;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v2, v2, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
monitor-enter v2
2020-05-17 12:40:10 +00:00
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
invoke-interface {p1}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v3, v1, p2}, Landroid/os/IBinder;->linkToDeath(Landroid/os/IBinder$DeathRecipient;I)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v3, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v3, v3, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
2020-05-17 12:40:10 +00:00
invoke-interface {p1}, Landroid/os/IInterface;->asBinder()Landroid/os/IBinder;
move-result-object p1
2020-07-08 16:44:49 +00:00
invoke-virtual {v3, p1, v1}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
monitor-exit v2
2020-05-17 12:40:10 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {p1, v0}, Landroidx/browser/customtabs/CustomTabsService;->newSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
move-result p1
:try_end_2
.catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_2} :catch_0
return p1
:catchall_0
move-exception p1
:try_start_3
2020-07-08 16:44:49 +00:00
monitor-exit v2
2020-05-17 12:40:10 +00:00
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
throw p1
:try_end_4
.catch Landroid/os/RemoteException; {:try_start_4 .. :try_end_4} :catch_0
:catch_0
2020-07-08 16:44:49 +00:00
return p2
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
# virtual methods
.method public extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsService;->extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
move-result-object p1
return-object p1
.end method
.method public synthetic g(Landroidx/browser/customtabs/CustomTabsSessionToken;)V
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {v0, p1}, Landroidx/browser/customtabs/CustomTabsService;->cleanUpSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
return-void
.end method
.method public mayLaunchUrl(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p4 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ld0/a/a/a;",
"Landroid/net/Uri;",
"Landroid/os/Bundle;",
"Ljava/util/List<",
"Landroid/os/Bundle;",
">;)Z"
}
.end annotation
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-07-08 16:44:49 +00:00
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->mayLaunchUrl(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
move-result p1
return p1
.end method
.method public newSession(Ld0/a/a/a;)Z
.locals 1
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/browser/customtabs/CustomTabsService$1;->newSessionInternal(Ld0/a/a/a;Landroid/app/PendingIntent;)Z
move-result p1
return p1
.end method
.method public newSessionWithExtras(Ld0/a/a/a;Landroid/os/Bundle;)Z
.locals 0
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-direct {p0, p2}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object p2
invoke-direct {p0, p1, p2}, Landroidx/browser/customtabs/CustomTabsService$1;->newSessionInternal(Ld0/a/a/a;Landroid/app/PendingIntent;)Z
move-result p1
return p1
.end method
.method public postMessage(Ld0/a/a/a;Ljava/lang/String;Landroid/os/Bundle;)I
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, v1, p2, p3}, Landroidx/browser/customtabs/CustomTabsService;->postMessage(Landroidx/browser/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
move-result p1
return p1
.end method
2020-07-08 16:44:49 +00:00
.method public receiveFile(Ld0/a/a/a;Landroid/net/Uri;ILandroid/os/Bundle;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-07-08 16:44:49 +00:00
invoke-direct {p0, p4}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->receiveFile(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;ILandroid/os/Bundle;)Z
move-result p1
return p1
.end method
.method public requestPostMessageChannel(Ld0/a/a/a;Landroid/net/Uri;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
const/4 v2, 0x0
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
move-result p1
return p1
.end method
2020-07-08 16:44:49 +00:00
.method public requestPostMessageChannelWithExtras(Ld0/a/a/a;Landroid/net/Uri;Landroid/os/Bundle;)Z
2020-05-17 12:40:10 +00:00
.locals 2
2020-07-08 16:44:49 +00:00
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-07-08 16:44:49 +00:00
invoke-direct {p0, p3}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object p3
invoke-direct {v1, p1, p3}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
move-result p1
return p1
.end method
.method public updateVisuals(Ld0/a/a/a;Landroid/os/Bundle;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
invoke-direct {p0, p2}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, v1, p2}, Landroidx/browser/customtabs/CustomTabsService;->updateVisuals(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
move-result p1
return p1
.end method
2020-07-08 16:44:49 +00:00
.method public validateRelationship(Ld0/a/a/a;ILandroid/net/Uri;Landroid/os/Bundle;)Z
.locals 3
.param p1 # Ld0/a/a/a;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/os/Bundle;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2020-05-17 12:40:10 +00:00
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
new-instance v1, Landroidx/browser/customtabs/CustomTabsSessionToken;
2020-07-08 16:44:49 +00:00
invoke-direct {p0, p4}, Landroidx/browser/customtabs/CustomTabsService$1;->getSessionIdFromBundle(Landroid/os/Bundle;)Landroid/app/PendingIntent;
move-result-object v2
invoke-direct {v1, p1, v2}, Landroidx/browser/customtabs/CustomTabsSessionToken;-><init>(Ld0/a/a/a;Landroid/app/PendingIntent;)V
2020-05-17 12:40:10 +00:00
invoke-virtual {v0, v1, p2, p3, p4}, Landroidx/browser/customtabs/CustomTabsService;->validateRelationship(Landroidx/browser/customtabs/CustomTabsSessionToken;ILandroid/net/Uri;Landroid/os/Bundle;)Z
move-result p1
return p1
.end method
.method public warmup(J)Z
.locals 1
iget-object v0, p0, Landroidx/browser/customtabs/CustomTabsService$1;->this$0:Landroidx/browser/customtabs/CustomTabsService;
invoke-virtual {v0, p1, p2}, Landroidx/browser/customtabs/CustomTabsService;->warmup(J)Z
move-result p1
return p1
.end method