WebViewResourcesHelper.smali
.class public Lorg/acdd/runtime/WebViewResourcesHelper;
.super Ljava/lang/Object;
.source "WebViewResourcesHelper.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "WebViewRes"
.field private static final WEB_VIEW_PACKAGES:[Ljava/lang/String;
.field private static final WEB_VIEW_PACKAGES_24_CHROME_FIRST:[Ljava/lang/String;
.field private static final WEB_VIEW_PACKAGES_24_CHROME_LAST:[Ljava/lang/String;
.field private static sLog:Lorg/acdd/log/Logger;
.field private static sWebViewPaths:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 7
.prologue
const/4 v6, 0x4
const/4 v5, 0x3
const/4 v4, 0x2
const/4 v3, 0x0
const/4 v2, 0x1
.line 30
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0, v2}, Ljava/util/LinkedHashSet;-><init>(I)V
sput-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
.line 34
invoke-static {}, Lorg/acdd/log/LoggerFactory;->getInstance()Lorg/acdd/log/Logger;
move-result-object v0
sput-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->sLog:Lorg/acdd/log/Logger;
.line 243
new-array v0, v6, [Ljava/lang/String;
const-string v1, "com.google.android.webview"
aput-object v1, v0, v3
const-string v1, "com.le.android.webview"
aput-object v1, v0, v2
const-string v1, "com.android.webview"
aput-object v1, v0, v4
const-string v1, "com.android.chrome"
aput-object v1, v0, v5
sput-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->WEB_VIEW_PACKAGES_24_CHROME_LAST:[Ljava/lang/String;
.line 250
new-array v0, v6, [Ljava/lang/String;
const-string v1, "com.android.chrome"
aput-object v1, v0, v3
const-string v1, "com.google.android.webview"
aput-object v1, v0, v2
const-string v1, "com.le.android.webview"
aput-object v1, v0, v4
const-string v1, "com.android.webview"
aput-object v1, v0, v5
sput-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->WEB_VIEW_PACKAGES_24_CHROME_FIRST:[Ljava/lang/String;
.line 257
new-array v0, v5, [Ljava/lang/String;
const-string v1, "com.le.android.webview"
aput-object v1, v0, v3
const-string v1, "com.android.webview"
aput-object v1, v0, v2
const-string v1, "com.google.android.webview"
aput-object v1, v0, v4
sput-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->WEB_VIEW_PACKAGES:[Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.registers 1
.prologue
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getAndroidWebViewPaths(Landroid/content/Context;)Ljava/util/Set;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
.line 38
sget-object v1, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
monitor-enter v1
.line 39
:try_start_3
sget-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v0
if-lez v0, :cond_f
.line 40
sget-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
monitor-exit v1
.line 50
:goto_e
return-object v0
.line 42
:cond_f
monitor-exit v1
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_1e
.line 43
invoke-static {p0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebViewPaths(Landroid/content/Context;)Ljava/util/Set;
move-result-object v0
.line 44
if-eqz v0, :cond_1c
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v1
if-nez v1, :cond_21
.line 45
:cond_1c
const/4 v0, 0x0
goto :goto_e
.line 42
:catchall_1e
move-exception v0
:try_start_1f
monitor-exit v1
:try_end_20
.catchall {:try_start_1f .. :try_end_20} :catchall_1e
throw v0
.line 47
:cond_21
sget-object v1, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
monitor-enter v1
.line 48
:try_start_24
sget-object v2, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
invoke-interface {v2, v0}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
.line 49
monitor-exit v1
:try_end_2a
.catchall {:try_start_24 .. :try_end_2a} :catchall_2d
.line 50
sget-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->sWebViewPaths:Ljava/util/Set;
goto :goto_e
.line 49
:catchall_2d
move-exception v0
:try_start_2e
monitor-exit v1
:try_end_2f
.catchall {:try_start_2e .. :try_end_2f} :catchall_2d
throw v0
.end method
.method private static getPackageSourceDir(Ljava/lang/String;)Ljava/util/Set;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
.line 176
:try_start_0
sget-object v0, Lorg/acdd/runtime/RuntimeVariables;->androidApplication:Landroid/app/Application;
invoke-virtual {v0}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const/4 v1, 0x0
invoke-virtual {v0, p0, v1}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
move-result-object v0
.line 177
invoke-static {v0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebApkPathsByAppInfo(Landroid/content/pm/ApplicationInfo;)Ljava/util/Set;
:try_end_e
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_e} :catch_10
move-result-object v0
.line 181
:goto_f
return-object v0
.line 178
:catch_10
move-exception v0
.line 179
sget-object v1, Lorg/acdd/runtime/WebViewResourcesHelper;->sLog:Lorg/acdd/log/Logger;
const-string v2, "WebViewRes"
invoke-interface {v1, v2, v0}, Lorg/acdd/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
.line 181
const/4 v0, 0x0
goto :goto_f
.end method
.method private static getUserChosenWebViewProvider(Landroid/content/Context;)Ljava/lang/String;
.registers 3
.annotation build Landroid/annotation/TargetApi;
value = 0x11
.end annotation
.prologue
.line 276
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_16
.line 278
:try_start_6
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string/jumbo v1, "webview_provider"
invoke-static {v0, v1}, Landroid/provider/Settings$Global;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
:try_end_10
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_10} :catch_12
move-result-object v0
.line 283
:goto_11
return-object v0
.line 279
:catch_12
move-exception v0
.line 280
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
.line 283
:cond_16
const-string v0, ""
goto :goto_11
.end method
.method private static getWebApkPathByManualPkg()Ljava/util/Set;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
.line 145
new-instance v2, Ljava/util/LinkedHashSet;
const/4 v0, 0x3
invoke-direct {v2, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
.line 147
:try_start_6
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->isAtLeastN()Z
move-result v0
if-eqz v0, :cond_26
sget-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->WEB_VIEW_PACKAGES:[Ljava/lang/String;
.line 149
:goto_e
const/4 v1, 0x0
:goto_f
array-length v3, v0
if-ge v1, v3, :cond_2b
.line 150
aget-object v3, v0, v1
invoke-static {v3}, Lorg/acdd/runtime/WebViewResourcesHelper;->getPackageSourceDir(Ljava/lang/String;)Ljava/util/Set;
move-result-object v3
.line 151
if-eqz v3, :cond_23
invoke-interface {v3}, Ljava/util/Set;->size()I
move-result v4
if-lez v4, :cond_23
.line 152
invoke-interface {v2, v3}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
.line 149
:cond_23
add-int/lit8 v1, v1, 0x1
goto :goto_f
.line 147
:cond_26
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebViewPackagesForAndroid7()[Ljava/lang/String;
move-result-object v0
goto :goto_e
.line 155
:cond_2b
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_46
.line 156
invoke-static {}, Landroid/webkit/WebView;->getCurrentWebViewPackage()Landroid/content/pm/PackageInfo;
move-result-object v0
.line 157
iget-object v0, v0, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
invoke-static {v0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebApkPathsByAppInfo(Landroid/content/pm/ApplicationInfo;)Ljava/util/Set;
move-result-object v0
.line 158
if-eqz v0, :cond_46
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v1
if-lez v1, :cond_46
.line 159
invoke-interface {v2, v0}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z
:try_end_46
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_46} :catch_47
.line 165
:cond_46
:goto_46
return-object v2
.line 162
:catch_47
move-exception v0
.line 163
sget-object v1, Lorg/acdd/runtime/WebViewResourcesHelper;->sLog:Lorg/acdd/log/Logger;
const-string v3, "WebViewRes"
invoke-interface {v1, v3, v0}, Lorg/acdd/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_46
.end method
.method private static getWebApkPathsByAppInfo(Landroid/content/pm/ApplicationInfo;)Ljava/util/Set;
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/pm/ApplicationInfo;",
")",
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
const/4 v1, 0x0
const/4 v3, 0x0
.line 209
if-nez p0, :cond_6
move-object v0, v1
.line 230
:goto_5
return-object v0
.line 212
:cond_6
new-instance v2, Ljava/util/LinkedHashSet;
const/4 v0, 0x1
invoke-direct {v2, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
.line 214
:try_start_c
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->isAtLeastQ()Z
move-result v0
if-eqz v0, :cond_19
.line 215
iget-object v0, p0, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;
invoke-interface {v2, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:cond_17
:goto_17
move-object v0, v2
.line 230
goto :goto_5
.line 217
:cond_19
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
.line 218
const-string v4, "getAllApkPaths"
const/4 v5, 0x0
new-array v5, v5, [Ljava/lang/Class;
invoke-virtual {v0, v4, v5}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
.line 219
const/4 v4, 0x0
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {v0, p0, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
check-cast v0, [Ljava/lang/String;
.line 220
if-eqz v0, :cond_36
array-length v4, v0
if-nez v4, :cond_38
:cond_36
move-object v0, v1
.line 221
goto :goto_5
.line 223
:cond_38
array-length v4, v0
move v1, v3
:goto_3a
if-ge v1, v4, :cond_17
aget-object v3, v0, v1
.line 224
invoke-interface {v2, v3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_41
.catch Ljava/lang/Throwable; {:try_start_c .. :try_end_41} :catch_44
.line 223
add-int/lit8 v1, v1, 0x1
goto :goto_3a
.line 227
:catch_44
move-exception v0
.line 228
sget-object v1, Lorg/acdd/runtime/WebViewResourcesHelper;->sLog:Lorg/acdd/log/Logger;
const-string v3, "WebViewRes"
invoke-interface {v1, v3, v0}, Lorg/acdd/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_17
.end method
.method private static getWebAppInfoByGetWebViewPackageName()Landroid/content/pm/ApplicationInfo;
.registers 5
.prologue
const/4 v1, 0x0
.line 130
:try_start_1
const-string v0, "android.webkit.WebViewFactory"
const-string v2, "getWebViewPackageName"
const/4 v3, 0x0
const/4 v4, 0x0
new-array v4, v4, [Ljava/lang/Object;
invoke-static {v0, v2, v3, v4}, Lorg/acdd/util/ReflectUtil;->invokeStaticMethod(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 131
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_22
.line 132
sget-object v2, Lorg/acdd/runtime/RuntimeVariables;->androidApplication:Landroid/app/Application;
invoke-virtual {v2}, Landroid/app/Application;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
const/4 v3, 0x0
invoke-virtual {v2, v0, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
:try_end_1f
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1f} :catch_21
move-result-object v0
.line 136
:goto_20
return-object v0
.line 134
:catch_21
move-exception v0
:cond_22
move-object v0, v1
.line 136
goto :goto_20
.end method
.method private static getWebAppInfoByLoadedPackageInfo()Landroid/content/pm/ApplicationInfo;
.registers 4
.prologue
const/4 v1, 0x0
.line 113
:try_start_1
const-string v0, "android.webkit.WebViewFactory"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
const-string v2, "getLoadedPackageInfo"
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Class;
invoke-virtual {v0, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
const/4 v2, 0x0
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
invoke-virtual {v0, v2, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/pm/PackageInfo;
.line 114
if-eqz v0, :cond_27
.line 115
iget-object v0, v0, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
:try_end_1e
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1e} :catch_1f
.line 120
:goto_1e
return-object v0
.line 117
:catch_1f
move-exception v0
.line 118
sget-object v2, Lorg/acdd/runtime/WebViewResourcesHelper;->sLog:Lorg/acdd/log/Logger;
const-string v3, "WebViewRes"
invoke-interface {v2, v3, v0}, Lorg/acdd/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_27
move-object v0, v1
.line 120
goto :goto_1e
.end method
.method private static getWebAppInfoForLeastN()Landroid/content/pm/ApplicationInfo;
.registers 1
.prologue
.line 103
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebAppInfoByLoadedPackageInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v0
.line 104
if-nez v0, :cond_a
.line 105
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebAppInfoByGetWebViewPackageName()Landroid/content/pm/ApplicationInfo;
move-result-object v0
.line 107
:cond_a
return-object v0
.end method
.method private static getWebAppInfoFormSetProvider(Landroid/content/Context;)Landroid/content/pm/ApplicationInfo;
.registers 6
.prologue
const/4 v1, 0x0
.line 192
:try_start_1
const-string v0, "android.webkit.WebViewFactory"
const-string v2, "getWebViewContextAndSetProvider"
const/4 v3, 0x0
const/4 v4, 0x0
new-array v4, v4, [Ljava/lang/Object;
invoke-static {v0, v2, v3, v4}, Lorg/acdd/util/ReflectUtil;->invokeStaticMethod(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/content/Context;
.line 193
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v0
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
.line 194
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v2
const/16 v3, 0x400
invoke-virtual {v2, v0, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v0
.line 195
iget-object v0, v0, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
:try_end_21
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_21} :catch_22
.line 199
:goto_21
return-object v0
.line 196
:catch_22
move-exception v0
.line 197
sget-object v2, Lorg/acdd/runtime/WebViewResourcesHelper;->sLog:Lorg/acdd/log/Logger;
const-string v3, "WebViewRes"
invoke-interface {v2, v3, v0}, Lorg/acdd/log/Logger;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
move-object v0, v1
.line 199
goto :goto_21
.end method
.method private static getWebPathFromWebViewFactory(Landroid/content/Context;)Ljava/util/Set;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
.line 87
.line 88
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->isAtLeastN()Z
move-result v0
if-eqz v0, :cond_f
.line 89
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebAppInfoForLeastN()Landroid/content/pm/ApplicationInfo;
move-result-object v0
.line 93
:goto_a
invoke-static {v0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebApkPathsByAppInfo(Landroid/content/pm/ApplicationInfo;)Ljava/util/Set;
move-result-object v0
return-object v0
.line 91
:cond_f
invoke-static {p0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebAppInfoFormSetProvider(Landroid/content/Context;)Landroid/content/pm/ApplicationInfo;
move-result-object v0
goto :goto_a
.end method
.method private static getWebViewPackagesForAndroid7()[Ljava/lang/String;
.registers 2
.prologue
.line 265
sget-object v0, Lorg/acdd/runtime/RuntimeVariables;->androidApplication:Landroid/app/Application;
invoke-static {v0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getUserChosenWebViewProvider(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
.line 266
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_14
const-string v1, "com.android.chrome"
.line 267
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_17
.line 268
:cond_14
sget-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->WEB_VIEW_PACKAGES_24_CHROME_LAST:[Ljava/lang/String;
.line 270
:goto_16
return-object v0
:cond_17
sget-object v0, Lorg/acdd/runtime/WebViewResourcesHelper;->WEB_VIEW_PACKAGES_24_CHROME_FIRST:[Ljava/lang/String;
goto :goto_16
.end method
.method private static getWebViewPaths(Landroid/content/Context;)Ljava/util/Set;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/Set",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
.line 58
:try_start_0
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->setWebProviderAccessible()V
.line 59
invoke-static {p0}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebPathFromWebViewFactory(Landroid/content/Context;)Ljava/util/Set;
move-result-object v0
.line 60
if-eqz v0, :cond_10
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v1
if-lez v1, :cond_10
.line 67
:goto_f
return-object v0
.line 64
:cond_10
invoke-static {}, Lorg/acdd/runtime/WebViewResourcesHelper;->getWebApkPathByManualPkg()Ljava/util/Set;
:try_end_13
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_13} :catch_15
move-result-object v0
goto :goto_f
.line 65
:catch_15
move-exception v0
.line 67
const/4 v0, 0x0
goto :goto_f
.end method
.method private static isAtLeastN()Z
.registers 2
.prologue
.line 239
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-ge v0, v1, :cond_8
const/4 v0, 0x1
:goto_7
return v0
:cond_8
const/4 v0, 0x0
goto :goto_7
.end method
.method private static isAtLeastQ()Z
.registers 2
.prologue
.line 235
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-ge v0, v1, :cond_8
const/4 v0, 0x1
:goto_7
return v0
:cond_8
const/4 v0, 0x0
goto :goto_7
.end method
.method private static setWebProviderAccessible()V
.registers 6
.prologue
const/4 v3, 0x1
const/4 v0, 0x0
.line 71
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/String;
const-string v2, "getWebViewContextAndSetProvider"
aput-object v2, v1, v0
const-string v2, "getProvider"
aput-object v2, v1, v3
const/4 v2, 0x2
const-string v3, "getProviderClass"
aput-object v3, v1, v2
.line 72
array-length v2, v1
:goto_13
if-ge v0, v2, :cond_2f
aget-object v3, v1, v0
.line 74
:try_start_17
const-string v4, "android.webkit.WebViewFactory"
invoke-static {v4}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v4
const/4 v5, 0x0
new-array v5, v5, [Ljava/lang/Class;
invoke-virtual {v4, v3, v5}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v3
.line 75
const/4 v4, 0x1
invoke-virtual {v3, v4}, Ljava/lang/reflect/Method;->setAccessible(Z)V
.line 76
const/4 v4, 0x0
const/4 v5, 0x0
new-array v5, v5, [Ljava/lang/Object;
invoke-virtual {v3, v4, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_2f
.catch Ljava/lang/Throwable; {:try_start_17 .. :try_end_2f} :catch_30
.line 81
:cond_2f
return-void
.line 78
:catch_30
move-exception v3
.line 72
add-int/lit8 v0, v0, 0x1
goto :goto_13
.end method