185 lines
5.5 KiB
Smali
185 lines
5.5 KiB
Smali
.class final Lio/fabric/sdk/android/d;
|
|
.super Landroid/content/ContextWrapper;
|
|
.source "FabricContext.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final beH:Ljava/lang/String;
|
|
|
|
.field private final beI:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Landroid/content/ContextWrapper;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object p2, p0, Lio/fabric/sdk/android/d;->beI:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lio/fabric/sdk/android/d;->beH:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getCacheDir()Ljava/io/File;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
invoke-super {p0}, Landroid/content/ContextWrapper;->getCacheDir()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/d;->beH:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getDatabasePath(Ljava/lang/String;)Ljava/io/File;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
invoke-super {p0, p1}, Landroid/content/ContextWrapper;->getDatabasePath(Ljava/lang/String;)Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/io/File;->getParentFile()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/d;->beH:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z
|
|
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final getExternalCacheDir()Ljava/io/File;
|
|
.locals 3
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x8
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
invoke-super {p0}, Landroid/content/ContextWrapper;->getExternalCacheDir()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/d;->beH:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getExternalFilesDir(Ljava/lang/String;)Ljava/io/File;
|
|
.locals 2
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x8
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
invoke-super {p0, p1}, Landroid/content/ContextWrapper;->getExternalFilesDir(Ljava/lang/String;)Ljava/io/File;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v1, p0, Lio/fabric/sdk/android/d;->beH:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, p1, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getFilesDir()Ljava/io/File;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
invoke-super {p0}, Landroid/content/ContextWrapper;->getFilesDir()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lio/fabric/sdk/android/d;->beH:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lio/fabric/sdk/android/d;->beI:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ":"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-super {p0, p1, p2}, Landroid/content/ContextWrapper;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lio/fabric/sdk/android/d;->getDatabasePath(Ljava/lang/String;)Ljava/io/File;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, p3}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/io/File;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final openOrCreateDatabase(Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$CursorFactory;Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase;
|
|
.locals 0
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0xb
|
|
.end annotation
|
|
|
|
invoke-virtual {p0, p1}, Lio/fabric/sdk/android/d;->getDatabasePath(Ljava/lang/String;)Ljava/io/File;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, p3, p4}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|