- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
61 lines
1.8 KiB
Java
61 lines
1.8 KiB
Java
package com.mbridge.msdk.tracker;
|
|
|
|
import android.content.Context;
|
|
import android.database.sqlite.SQLiteDatabase;
|
|
import android.database.sqlite.SQLiteOpenHelper;
|
|
import android.util.Log;
|
|
|
|
/* loaded from: classes4.dex */
|
|
final class b extends SQLiteOpenHelper {
|
|
private final String a;
|
|
|
|
public b(Context context, String str, String str2) {
|
|
super(context, str, (SQLiteDatabase.CursorFactory) null, 1);
|
|
this.a = str2;
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
public final void onCreate(SQLiteDatabase sQLiteDatabase) {
|
|
if (y.a(sQLiteDatabase)) {
|
|
return;
|
|
}
|
|
try {
|
|
sQLiteDatabase.execSQL(String.format(i.a, this.a));
|
|
} catch (Exception e) {
|
|
if (a.a) {
|
|
Log.e("TrackManager", "create table error", e);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
public final void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
|
|
if (y.a(sQLiteDatabase)) {
|
|
return;
|
|
}
|
|
try {
|
|
sQLiteDatabase.execSQL(String.format(i.b, this.a));
|
|
sQLiteDatabase.execSQL(String.format(i.a, this.a));
|
|
} catch (Exception e) {
|
|
if (a.a) {
|
|
Log.e("TrackManager", "upgrade table error", e);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.database.sqlite.SQLiteOpenHelper
|
|
public final void onDowngrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
|
|
if (y.a(sQLiteDatabase)) {
|
|
return;
|
|
}
|
|
try {
|
|
sQLiteDatabase.execSQL(String.format(i.b, this.a));
|
|
sQLiteDatabase.execSQL(String.format(i.a, this.a));
|
|
} catch (Exception e) {
|
|
if (a.a) {
|
|
Log.e("TrackManager", "downgrade table error", e);
|
|
}
|
|
}
|
|
}
|
|
}
|