Files
rr3-apk/decompiled/sources/com/mbridge/msdk/tracker/b.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

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);
}
}
}
}