86 lines
2.6 KiB
Smali
86 lines
2.6 KiB
Smali
.class public Lcom/moji/mjad/splash/db/SplashDbHelper;
|
|
.super Landroid/database/sqlite/SQLiteOpenHelper;
|
|
.source "SplashDbHelper.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 4
|
|
|
|
.line 49
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "mjsplashad.db"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, 0x8
|
|
|
|
invoke-direct {p0, v0, v1, v2, v3}, 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
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS SplashAdInfo(id INTEGER PRIMARY KEY, showTime INTEGER, clickArea TEXT, imageUrl TEXT, imageId INTEGER, width INTEGER, height INTEGER, addCoordinate INTEGER, startTime INTEGER, endTime INTEGER, type INTEGER, showType INTEGER, clickUrl TEXT, filePath TEXT, closeStaticsUrl TEXT, showStaticsUrl TEXT, clickStaticsUrl TEXT, adClickParams TEXT, adShowParams TEXT, mdPsw TEXT, splashShowType INTEGER, pageType INTEGER, appStar INTEGER, desc TEXT, isShowAdSign INTEGER, openType INTEGER, sdkType INTEGER, session_id TEXT, locationRuleType INTEGER, locationInfos TEXT);"
|
|
|
|
.line 55
|
|
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 0
|
|
|
|
if-eq p2, p3, :cond_1
|
|
|
|
const-string p2, "DROP TABLE IF EXISTS SplashAdInfo;"
|
|
|
|
.line 67
|
|
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
.line 68
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjad/splash/db/SplashDbHelper;->onCreate(Landroid/database/sqlite/SQLiteDatabase;)V
|
|
|
|
.line 69
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "mjad.db"
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Context;->deleteDatabase(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string p1, "sea"
|
|
|
|
const-string p2, "sea mjad.db deleteDatabase scuess"
|
|
|
|
.line 70
|
|
invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, "sea"
|
|
|
|
const-string p2, "sea mjad.db deleteDatabase fail"
|
|
|
|
.line 72
|
|
invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|