109 lines
2.8 KiB
Smali
109 lines
2.8 KiB
Smali
.class public Lwb/c$a;
|
|
.super Landroid/database/sqlite/SQLiteOpenHelper;
|
|
.source "BlackboxDbAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lwb/c;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"context"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "blackbox.db"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x7
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0, v1, v2}, Landroid/database/sqlite/SQLiteOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onCreate(Landroid/database/sqlite/SQLiteDatabase;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"db"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "create table IF NOT EXISTS blackbox (_idx INTEGER , fileName TEXT ,fileSize INTEGER);"
|
|
|
|
.line 1
|
|
invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "create table tcloud (_idx INTEGER , fileName TEXT ,state INTEGER );"
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onUpgrade(Landroid/database/sqlite/SQLiteDatabase;II)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"db",
|
|
"oldVersion",
|
|
"newVersion"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "Upgrading database from version "
|
|
|
|
const-string v1, " to "
|
|
|
|
const-string v2, ", which will destroy all old data"
|
|
|
|
.line 1
|
|
invoke-static {v0, p2, v1, p3, v2}, Landroidx/room/k;->a(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "FavoriteDbAdapter"
|
|
|
|
invoke-static {p3, p2}, Lcom/skt/tmap/util/c1;->i(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string p2, "DROP TABLE IF EXISTS tcloud"
|
|
|
|
.line 2
|
|
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string p2, "create table tcloud (_idx INTEGER , fileName TEXT ,state INTEGER );"
|
|
|
|
.line 3
|
|
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|