PathUtils.smali
.class public abstract Laegon/chrome/base/PathUtils;
.super Ljava/lang/Object;
# annotations
.annotation build Laegon/chrome/base/annotations/MainDex;
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Laegon/chrome/base/PathUtils$Holder;
}
.end annotation
# static fields
.field static final synthetic $assertionsDisabled:Z
.field private static final CACHE_DIRECTORY:I = 0x2
.field private static final DATA_DIRECTORY:I = 0x0
.field private static final NUM_DIRECTORIES:I = 0x3
.field private static final TAG:Ljava/lang/String; = "PathUtils"
.field private static final THUMBNAIL_DIRECTORY:I = 0x1
.field private static final THUMBNAIL_DIRECTORY_NAME:Ljava/lang/String; = "textures"
.field private static sCacheSubDirectory:Ljava/lang/String;
.field private static sDataDirectorySuffix:Ljava/lang/String;
.field private static sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/FutureTask",
"<[",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private static final sInitializationStarted:Ljava/util/concurrent/atomic/AtomicBoolean;
# direct methods
.method private static synthetic $closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
.registers 3
if-eqz p0, :cond_b
:try_start_2
invoke-interface {p1}, Ljava/lang/AutoCloseable;->close()V
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_5} :catch_6
:goto_5
return-void
:catch_6
move-exception v0
invoke-virtual {p0, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
goto :goto_5
:cond_b
invoke-interface {p1}, Ljava/lang/AutoCloseable;->close()V
goto :goto_5
.end method
.method static constructor <clinit>()V
.registers 1
const-class v0, Laegon/chrome/base/PathUtils;
invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z
move-result v0
if-nez v0, :cond_13
const/4 v0, 0x1
:goto_9
sput-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
sput-object v0, Laegon/chrome/base/PathUtils;->sInitializationStarted:Ljava/util/concurrent/atomic/AtomicBoolean;
return-void
:cond_13
const/4 v0, 0x0
goto :goto_9
.end method
.method private constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic access$000()[Ljava/lang/String;
.registers 1
invoke-static {}, Laegon/chrome/base/PathUtils;->getOrComputeDirectoryPaths()[Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method static synthetic access$lambda$0()[Ljava/lang/String;
.registers 1
invoke-static {}, Laegon/chrome/base/PathUtils;->setPrivateDataDirectorySuffixInternal()[Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private static chmod(Ljava/lang/String;I)V
.registers 5
.annotation build Landroid/annotation/SuppressLint;
value = {
"NewApi"
}
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ge v0, v1, :cond_7
:goto_6
return-void
:cond_7
:try_start_7
invoke-static {p0, p1}, Landroid/system/Os;->chmod(Ljava/lang/String;I)V
:try_end_a
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_a} :catch_b
goto :goto_6
:catch_b
move-exception v0
const-string v0, "PathUtils"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Failed to set permissions for path \""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "\""
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v0, v1, v2}, Laegon/chrome/base/Log;->e(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_6
.end method
.method public static getAllPrivateDownloadsDirectories()[Ljava/lang/String;
.registers 6
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
const/4 v1, 0x0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x13
if-lt v0, v2, :cond_42
invoke-static {}, Laegon/chrome/base/StrictModeContext;->allowDiskWrites()Laegon/chrome/base/StrictModeContext;
move-result-object v3
const/4 v2, 0x0
:try_start_c
invoke-static {}, Laegon/chrome/base/ContextUtils;->getApplicationContext()Landroid/content/Context;
move-result-object v0
sget-object v4, Landroid/os/Environment;->DIRECTORY_DOWNLOADS:Ljava/lang/String;
invoke-virtual {v0, v4}, Landroid/content/Context;->getExternalFilesDirs(Ljava/lang/String;)[Ljava/io/File;
:try_end_15
.catch Ljava/lang/Throwable; {:try_start_c .. :try_end_15} :catch_36
.catchall {:try_start_c .. :try_end_15} :catchall_63
move-result-object v0
if-eqz v3, :cond_1b
invoke-static {v2, v3}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
:cond_1b
:goto_1b
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
:goto_20
array-length v3, v0
if-ge v1, v3, :cond_56
aget-object v3, v0, v1
if-eqz v3, :cond_33
aget-object v3, v0, v1
invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v3
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
if-eqz v3, :cond_4c
:cond_33
:goto_33
add-int/lit8 v1, v1, 0x1
goto :goto_20
:catch_36
move-exception v0
:try_start_37
throw v0
:try_end_38
.catchall {:try_start_37 .. :try_end_38} :catchall_38
:catchall_38
move-exception v1
move-object v5, v1
move-object v1, v0
move-object v0, v5
:goto_3c
if-eqz v3, :cond_41
invoke-static {v1, v3}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
:cond_41
throw v0
:cond_42
const/4 v0, 0x1
new-array v0, v0, [Ljava/io/File;
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v2
aput-object v2, v0, v1
goto :goto_1b
:cond_4c
aget-object v3, v0, v1
invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_33
:cond_56
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result v0
new-array v0, v0, [Ljava/lang/String;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
return-object v0
:catchall_63
move-exception v0
move-object v1, v2
goto :goto_3c
.end method
.method public static getCacheDirectory()Ljava/lang/String;
.registers 2
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
sget-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
if-nez v0, :cond_10
sget-object v0, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
if-nez v0, :cond_10
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "setDataDirectorySuffix must be called first."
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
:cond_10
const/4 v0, 0x2
invoke-static {v0}, Laegon/chrome/base/PathUtils;->getDirectoryPath(I)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static getDataDirectory()Ljava/lang/String;
.registers 2
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
sget-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
if-nez v0, :cond_10
sget-object v0, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
if-nez v0, :cond_10
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "setDataDirectorySuffix must be called first."
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
:cond_10
const/4 v0, 0x0
invoke-static {v0}, Laegon/chrome/base/PathUtils;->getDirectoryPath(I)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private static getDirectoryPath(I)Ljava/lang/String;
.registers 2
# getter for: Laegon/chrome/base/PathUtils$Holder;->DIRECTORY_PATHS:[Ljava/lang/String;
invoke-static {}, Laegon/chrome/base/PathUtils$Holder;->access$100()[Ljava/lang/String;
move-result-object v0
aget-object v0, v0, p0
return-object v0
.end method
.method private static getDownloadsDirectory()Ljava/lang/String;
.registers 5
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
invoke-static {}, Laegon/chrome/base/StrictModeContext;->allowDiskReads()Laegon/chrome/base/StrictModeContext;
move-result-object v2
const/4 v1, 0x0
:try_start_5
invoke-static {}, Laegon/chrome/base/BuildInfo;->isAtLeastQ()Z
move-result v0
if-eqz v0, :cond_18
invoke-static {}, Laegon/chrome/base/PathUtils;->getAllPrivateDownloadsDirectories()[Ljava/lang/String;
move-result-object v0
const/4 v3, 0x0
aget-object v0, v0, v3
:try_end_12
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_12} :catch_28
.catchall {:try_start_5 .. :try_end_12} :catchall_34
if-eqz v2, :cond_17
invoke-static {v1, v2}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
:cond_17
:goto_17
return-object v0
:cond_18
:try_start_18
sget-object v0, Landroid/os/Environment;->DIRECTORY_DOWNLOADS:Ljava/lang/String;
invoke-static {v0}, Landroid/os/Environment;->getExternalStoragePublicDirectory(Ljava/lang/String;)Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;
:try_end_21
.catch Ljava/lang/Throwable; {:try_start_18 .. :try_end_21} :catch_28
.catchall {:try_start_18 .. :try_end_21} :catchall_34
move-result-object v0
if-eqz v2, :cond_17
invoke-static {v1, v2}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
goto :goto_17
:catch_28
move-exception v0
:try_start_29
throw v0
:try_end_2a
.catchall {:try_start_29 .. :try_end_2a} :catchall_2a
:catchall_2a
move-exception v1
move-object v4, v1
move-object v1, v0
move-object v0, v4
:goto_2e
if-eqz v2, :cond_33
invoke-static {v1, v2}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
:cond_33
throw v0
:catchall_34
move-exception v0
goto :goto_2e
.end method
.method public static getExternalStorageDirectory()Ljava/lang/String;
.registers 1
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private static getNativeLibraryDirectory()Ljava/lang/String;
.registers 2
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
invoke-static {}, Laegon/chrome/base/ContextUtils;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v0
iget v1, v0, Landroid/content/pm/ApplicationInfo;->flags:I
and-int/lit16 v1, v1, 0x80
if-nez v1, :cond_14
iget v1, v0, Landroid/content/pm/ApplicationInfo;->flags:I
and-int/lit8 v1, v1, 0x1
if-nez v1, :cond_17
:cond_14
iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->nativeLibraryDir:Ljava/lang/String;
:goto_16
return-object v0
:cond_17
const-string v0, "/system/lib/"
goto :goto_16
.end method
.method private static getOrComputeDirectoryPaths()[Ljava/lang/String;
.registers 4
const/4 v1, 0x0
:try_start_1
sget-object v0, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
const/4 v2, 0x0
invoke-virtual {v0, v2}, Ljava/util/concurrent/FutureTask;->cancel(Z)Z
move-result v0
if-eqz v0, :cond_25
invoke-static {}, Laegon/chrome/base/StrictModeContext;->allowDiskWrites()Laegon/chrome/base/StrictModeContext;
:try_end_d
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_d} :catch_22
.catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_d} :catch_2e
move-result-object v3
const/4 v2, 0x0
:try_start_f
invoke-static {}, Laegon/chrome/base/PathUtils;->setPrivateDataDirectorySuffixInternal()[Ljava/lang/String;
:try_end_12
.catch Ljava/lang/Throwable; {:try_start_f .. :try_end_12} :catch_19
.catchall {:try_start_f .. :try_end_12} :catchall_30
move-result-object v0
if-eqz v3, :cond_18
:try_start_15
invoke-static {v2, v3}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
:try_end_18
.catch Ljava/lang/InterruptedException; {:try_start_15 .. :try_end_18} :catch_22
.catch Ljava/util/concurrent/ExecutionException; {:try_start_15 .. :try_end_18} :catch_2e
:cond_18
:goto_18
return-object v0
:catch_19
move-exception v2
:try_start_1a
throw v2
:try_end_1b
.catchall {:try_start_1a .. :try_end_1b} :catchall_1b
:catchall_1b
move-exception v0
:goto_1c
if-eqz v3, :cond_21
:try_start_1e
invoke-static {v2, v3}, Laegon/chrome/base/PathUtils;->$closeResource(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V
:cond_21
throw v0
:catch_22
move-exception v0
:goto_23
move-object v0, v1
goto :goto_18
:cond_25
sget-object v0, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
invoke-virtual {v0}, Ljava/util/concurrent/FutureTask;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
:try_end_2d
.catch Ljava/lang/InterruptedException; {:try_start_1e .. :try_end_2d} :catch_22
.catch Ljava/util/concurrent/ExecutionException; {:try_start_1e .. :try_end_2d} :catch_2e
goto :goto_18
:catch_2e
move-exception v0
goto :goto_23
:catchall_30
move-exception v0
move-object v2, v1
goto :goto_1c
.end method
.method public static getThumbnailCacheDirectory()Ljava/lang/String;
.registers 2
.annotation build Laegon/chrome/base/annotations/CalledByNative;
.end annotation
sget-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
if-nez v0, :cond_10
sget-object v0, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
if-nez v0, :cond_10
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "setDataDirectorySuffix must be called first."
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
:cond_10
const/4 v0, 0x1
invoke-static {v0}, Laegon/chrome/base/PathUtils;->getDirectoryPath(I)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static setPrivateDataDirectorySuffix(Ljava/lang/String;)V
.registers 2
const/4 v0, 0x0
invoke-static {p0, v0}, Laegon/chrome/base/PathUtils;->setPrivateDataDirectorySuffix(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public static setPrivateDataDirectorySuffix(Ljava/lang/String;Ljava/lang/String;)V
.registers 7
const/4 v2, 0x2
const/4 v3, 0x0
const/4 v4, 0x1
sget-object v0, Laegon/chrome/base/PathUtils;->sInitializationStarted:Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-virtual {v0, v4}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z
move-result v0
if-nez v0, :cond_32
sget-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
if-nez v0, :cond_1b
invoke-static {}, Laegon/chrome/base/ContextUtils;->getApplicationContext()Landroid/content/Context;
move-result-object v0
if-nez v0, :cond_1b
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
:cond_1b
sput-object p0, Laegon/chrome/base/PathUtils;->sDataDirectorySuffix:Ljava/lang/String;
sput-object p1, Laegon/chrome/base/PathUtils;->sCacheSubDirectory:Ljava/lang/String;
new-instance v0, Ljava/util/concurrent/FutureTask;
invoke-static {}, Laegon/chrome/base/PathUtils$$Lambda$1;->lambdaFactory$()Ljava/util/concurrent/Callable;
move-result-object v1
invoke-direct {v0, v1}, Ljava/util/concurrent/FutureTask;-><init>(Ljava/util/concurrent/Callable;)V
sput-object v0, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
sget-object v0, Laegon/chrome/base/task/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;
sget-object v1, Laegon/chrome/base/PathUtils;->sDirPathFetchTask:Ljava/util/concurrent/FutureTask;
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:cond_31
return-void
:cond_32
sget-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
if-nez v0, :cond_52
sget-object v0, Laegon/chrome/base/PathUtils;->sDataDirectorySuffix:Ljava/lang/String;
invoke-static {v0, p0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_52
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "%s != %s"
new-array v2, v2, [Ljava/lang/Object;
aput-object p0, v2, v3
sget-object v3, Laegon/chrome/base/PathUtils;->sDataDirectorySuffix:Ljava/lang/String;
aput-object v3, v2, v4
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
:cond_52
sget-boolean v0, Laegon/chrome/base/PathUtils;->$assertionsDisabled:Z
if-nez v0, :cond_31
sget-object v0, Laegon/chrome/base/PathUtils;->sCacheSubDirectory:Ljava/lang/String;
invoke-static {v0, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_31
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "%s != %s"
new-array v2, v2, [Ljava/lang/Object;
aput-object p1, v2, v3
sget-object v3, Laegon/chrome/base/PathUtils;->sCacheSubDirectory:Ljava/lang/String;
aput-object v3, v2, v4
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
.end method
.method private static setPrivateDataDirectorySuffixInternal()[Ljava/lang/String;
.registers 6
const/4 v5, 0x2
const/4 v4, 0x0
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/String;
invoke-static {}, Laegon/chrome/base/ContextUtils;->getApplicationContext()Landroid/content/Context;
move-result-object v1
sget-object v2, Laegon/chrome/base/PathUtils;->sDataDirectorySuffix:Ljava/lang/String;
invoke-virtual {v1, v2, v4}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;
move-result-object v2
invoke-virtual {v2}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object v2
aput-object v2, v0, v4
aget-object v2, v0, v4
const/16 v3, 0x1c0
invoke-static {v2, v3}, Laegon/chrome/base/PathUtils;->chmod(Ljava/lang/String;I)V
const/4 v2, 0x1
const-string v3, "textures"
invoke-virtual {v1, v3, v4}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;
move-result-object v3
invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object v3
aput-object v3, v0, v2
invoke-virtual {v1}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
move-result-object v2
if-eqz v2, :cond_3d
sget-object v2, Laegon/chrome/base/PathUtils;->sCacheSubDirectory:Ljava/lang/String;
if-nez v2, :cond_3e
invoke-virtual {v1}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
move-result-object v1
invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object v1
aput-object v1, v0, v5
:cond_3d
:goto_3d
return-object v0
:cond_3e
new-instance v2, Ljava/io/File;
invoke-virtual {v1}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
move-result-object v1
sget-object v3, Laegon/chrome/base/PathUtils;->sCacheSubDirectory:Ljava/lang/String;
invoke-direct {v2, v1, v3}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
invoke-virtual {v2}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object v1
aput-object v1, v0, v5
goto :goto_3d
.end method