Files
rr3-apk/decompiled-community/sources/com/ironsource/s9.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

175 lines
5.5 KiB
Java

package com.ironsource;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes2.dex */
public class s9 extends SQLiteOpenHelper {
private static r9 a = new r9();
public s9(Context context) {
super(context, "reports", (SQLiteDatabase.CursorFactory) null, 1);
}
public static Cursor a(int i) {
SQLiteDatabase sQLiteDatabase = null;
try {
SQLiteDatabase a2 = a.a(new s9(i9.d().a()));
try {
Cursor rawQuery = a2.rawQuery("SELECT * FROM REPORTSWHERE id= " + i + ";", null);
a2.close();
return rawQuery;
} catch (Throwable th) {
th = th;
sQLiteDatabase = a2;
if (sQLiteDatabase != null) {
sQLiteDatabase.close();
}
throw th;
}
} catch (Throwable th2) {
th = th2;
}
}
public static void a() {
SQLiteDatabase sQLiteDatabase = null;
try {
sQLiteDatabase = a.a(true, new s9(i9.d().a()));
sQLiteDatabase.execSQL("DELETE FROM REPORTS WHERE id >= 0;");
sQLiteDatabase.close();
} catch (Throwable th) {
if (sQLiteDatabase != null) {
sQLiteDatabase.close();
}
throw th;
}
}
public static void a(wb wbVar) {
SQLiteDatabase sQLiteDatabase = null;
try {
SQLiteDatabase a2 = a.a(true, new s9(i9.d().a()));
try {
a2.beginTransaction();
ContentValues contentValues = new ContentValues();
String e = wbVar.e();
String b = wbVar.b();
String d = wbVar.d();
contentValues.put("stack_trace", e);
contentValues.put("crash_date", b);
contentValues.put("crashType", d);
a2.insert("REPORTS", null, contentValues);
a2.setTransactionSuccessful();
a2.endTransaction();
a2.close();
} catch (Throwable th) {
th = th;
sQLiteDatabase = a2;
if (sQLiteDatabase != null) {
sQLiteDatabase.endTransaction();
sQLiteDatabase.close();
}
throw th;
}
} catch (Throwable th2) {
th = th2;
}
}
public static wb b(int i) {
SQLiteDatabase a2;
SQLiteDatabase sQLiteDatabase = null;
try {
a2 = a.a(new s9(i9.d().a()));
} catch (Throwable th) {
th = th;
}
try {
Cursor rawQuery = a2.rawQuery("SELECT * FROM REPORTSWHERE id= " + i + ";", null);
int i2 = rawQuery.getInt(0);
String string = rawQuery.getString(1);
String string2 = rawQuery.getString(2);
String string3 = rawQuery.getString(3);
rawQuery.close();
wb wbVar = new wb(i2, string, string2, string3);
a2.close();
return wbVar;
} catch (Throwable th2) {
th = th2;
sQLiteDatabase = a2;
if (sQLiteDatabase != null) {
sQLiteDatabase.close();
}
throw th;
}
}
public static List<wb> b() {
SQLiteDatabase a2;
s9 s9Var = new s9(i9.d().a());
ArrayList arrayList = new ArrayList();
SQLiteDatabase sQLiteDatabase = null;
try {
a2 = a.a(s9Var);
} catch (Throwable th) {
th = th;
}
try {
Cursor rawQuery = a2.rawQuery("SELECT * FROM REPORTS ;", null);
if (rawQuery.moveToFirst()) {
do {
arrayList.add(new wb(rawQuery.getInt(0), rawQuery.getString(1), rawQuery.getString(2), rawQuery.getString(3)));
} while (rawQuery.moveToNext());
}
rawQuery.close();
a2.close();
return arrayList;
} catch (Throwable th2) {
th = th2;
sQLiteDatabase = a2;
if (sQLiteDatabase != null) {
sQLiteDatabase.close();
}
throw th;
}
}
public static Cursor c() {
s9 s9Var = new s9(i9.d().a());
new ArrayList();
SQLiteDatabase sQLiteDatabase = null;
try {
SQLiteDatabase a2 = a.a(s9Var);
try {
Cursor rawQuery = a2.rawQuery("SELECT * FROM REPORTS;", null);
a2.close();
return rawQuery;
} catch (Throwable th) {
th = th;
sQLiteDatabase = a2;
if (sQLiteDatabase != null) {
sQLiteDatabase.close();
}
throw th;
}
} catch (Throwable th2) {
th = th2;
}
}
@Override // android.database.sqlite.SQLiteOpenHelper
public void onCreate(SQLiteDatabase sQLiteDatabase) {
sQLiteDatabase.execSQL("CREATE TABLE IF NOT EXISTS REPORTS(id INTEGER PRIMARY KEY AUTOINCREMENT , stack_trace TEXT NOT NULL, crash_date TEXT NOT NULL,crashType TEXT NOT NULL );");
}
@Override // android.database.sqlite.SQLiteOpenHelper
public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
}
}