2020-05-17 12:40:10 +00:00
|
|
|
.class public abstract Landroidx/browser/customtabs/CustomTabsService;
|
|
|
|
.super Landroid/app/Service;
|
|
|
|
.source "CustomTabsService.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
Landroidx/browser/customtabs/CustomTabsService$FilePurpose;,
|
2020-05-17 12:40:10 +00:00
|
|
|
Landroidx/browser/customtabs/CustomTabsService$Relation;,
|
|
|
|
Landroidx/browser/customtabs/CustomTabsService$Result;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final ACTION_CUSTOM_TABS_CONNECTION:Ljava/lang/String; = "android.support.customtabs.action.CustomTabsService"
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public static final CATEGORY_COLOR_SCHEME_CUSTOMIZATION:Ljava/lang/String; = "androidx.browser.customtabs.category.ColorSchemeCustomization"
|
|
|
|
|
|
|
|
.field public static final CATEGORY_NAVBAR_COLOR_CUSTOMIZATION:Ljava/lang/String; = "androidx.browser.customtabs.category.NavBarColorCustomization"
|
|
|
|
|
|
|
|
.field public static final CATEGORY_TRUSTED_WEB_ACTIVITY_IMMERSIVE_MODE:Ljava/lang/String; = "androidx.browser.trusted.category.ImmersiveMode"
|
|
|
|
|
|
|
|
.field public static final CATEGORY_WEB_SHARE_TARGET_V2:Ljava/lang/String; = "androidx.browser.trusted.category.WebShareTargetV2"
|
|
|
|
|
|
|
|
.field public static final FILE_PURPOSE_TRUSTED_WEB_ACTIVITY_SPLASH_IMAGE:I = 0x1
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
.field public static final KEY_URL:Ljava/lang/String; = "android.support.customtabs.otherurls.URL"
|
|
|
|
|
|
|
|
.field public static final RELATION_HANDLE_ALL_URLS:I = 0x2
|
|
|
|
|
|
|
|
.field public static final RELATION_USE_AS_ORIGIN:I = 0x1
|
|
|
|
|
|
|
|
.field public static final RESULT_FAILURE_DISALLOWED:I = -0x1
|
|
|
|
|
|
|
|
.field public static final RESULT_FAILURE_MESSAGING_ERROR:I = -0x3
|
|
|
|
|
|
|
|
.field public static final RESULT_FAILURE_REMOTE_ERROR:I = -0x2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public static final RESULT_SUCCESS:I = 0x0
|
|
|
|
|
|
|
|
.field public static final TRUSTED_WEB_ACTIVITY_CATEGORY:Ljava/lang/String; = "androidx.browser.trusted.category.TrustedWebActivities"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-23 01:06:17 +00:00
|
|
|
.field public mBinder:Ld0/a/a/b$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
"Landroidx/collection/SimpleArrayMap<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Landroid/os/IBinder;",
|
|
|
|
"Landroid/os/IBinder$DeathRecipient;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v0, Landroidx/collection/SimpleArrayMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v0}, Landroidx/collection/SimpleArrayMap;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Landroidx/browser/customtabs/CustomTabsService$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Landroidx/browser/customtabs/CustomTabsService$1;-><init>(Landroidx/browser/customtabs/CustomTabsService;)V
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iput-object v0, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Ld0/a/a/b$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public cleanUpSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
|
|
|
|
.locals 3
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v1, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
monitor-enter v1
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/NoSuchElementException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
invoke-virtual {p1}, Landroidx/browser/customtabs/CustomTabsSessionToken;->getCallbackBinder()Landroid/os/IBinder;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
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
|
|
|
monitor-exit v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
|
|
|
|
|
|
|
|
invoke-virtual {v2, p1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroid/os/IBinder$DeathRecipient;
|
|
|
|
|
|
|
|
invoke-interface {p1, v2, v0}, Landroid/os/IBinder;->unlinkToDeath(Landroid/os/IBinder$DeathRecipient;I)Z
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v2, p0, Landroidx/browser/customtabs/CustomTabsService;->mDeathRecipientMap:Landroidx/collection/SimpleArrayMap;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v2, p1}, Landroidx/collection/SimpleArrayMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit v1
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
throw p1
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/util/NoSuchElementException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract extraCommand(Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle;
|
2020-07-08 16:44:49 +00:00
|
|
|
.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
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract mayLaunchUrl(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;Landroid/os/Bundle;Ljava/util/List;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.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/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p4 # Ljava/util/List;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroidx/browser/customtabs/CustomTabsSessionToken;",
|
|
|
|
"Landroid/net/Uri;",
|
|
|
|
"Landroid/os/Bundle;",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Landroid/os/Bundle;",
|
|
|
|
">;)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract newSession(Landroidx/browser/customtabs/CustomTabsSessionToken;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
|
|
.locals 0
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroid/content/Intent;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
iget-object p1, p0, Landroidx/browser/customtabs/CustomTabsService;->mBinder:Ld0/a/a/b$a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract postMessage(Landroidx/browser/customtabs/CustomTabsSessionToken;Ljava/lang/String;Landroid/os/Bundle;)I
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.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
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract receiveFile(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;ILandroid/os/Bundle;)Z
|
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.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
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract requestPostMessageChannel(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/net/Uri;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Landroid/net/Uri;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract updateVisuals(Landroidx/browser/customtabs/CustomTabsSessionToken;Landroid/os/Bundle;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Landroid/os/Bundle;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2020-05-17 12:40:10 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract validateRelationship(Landroidx/browser/customtabs/CustomTabsSessionToken;ILandroid/net/Uri;Landroid/os/Bundle;)Z
|
2020-07-08 16:44:49 +00:00
|
|
|
.param p1 # Landroidx/browser/customtabs/CustomTabsSessionToken;
|
|
|
|
.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
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public abstract warmup(J)Z
|
|
|
|
.end method
|