87 lines
2.1 KiB
Smali
87 lines
2.1 KiB
Smali
.class public Ldb/d$a;
|
|
.super Landroid/database/sqlite/SQLiteOpenHelper;
|
|
.source "CarAccount_CarManager_DBAdapter.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Ldb/d;
|
|
.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, "caraccount_manager.db"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.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 carmanager (_id integer primary key autoincrement, exchange integer, Maintenance text,use text);"
|
|
|
|
.line 1
|
|
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
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"db",
|
|
"oldVersion",
|
|
"newVersion"
|
|
}
|
|
.end annotation
|
|
|
|
const-string p2, "DROP TABLE IF EXISTS carmanager"
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Ldb/d$a;->onCreate(Landroid/database/sqlite/SQLiteDatabase;)V
|
|
|
|
return-void
|
|
.end method
|