Files
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

293 lines
12 KiB
Java

package com.mbridge.msdk.foundation.db;
/* loaded from: classes4.dex */
public class l extends a {
private static l a;
private l(f fVar) {
super(fVar);
}
public static l a(f fVar) {
if (a == null) {
synchronized (l.class) {
try {
if (a == null) {
a = new l(fVar);
}
} finally {
}
}
}
return a;
}
public final synchronized void a(String str, String str2, long j) {
if (str == null) {
str = "";
}
try {
} catch (Exception unused) {
} catch (Throwable th) {
throw th;
}
if (getWritableDatabase() == null) {
return;
}
getWritableDatabase().execSQL("DELETE from reporterror where url= ? and data= ? and time_stamp= ? or count > ?", new Object[]{str2, str, String.valueOf(j), 5});
}
/* JADX WARN: Code restructure failed: missing block: B:24:0x0035, code lost:
if (r0 == null) goto L24;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final synchronized int a() {
/*
r10 = this;
monitor-enter(r10)
r0 = 1
java.lang.String[] r3 = new java.lang.String[r0] // Catch: java.lang.Throwable -> L30
java.lang.String r0 = " count(*) "
r9 = 0
r3[r9] = r0 // Catch: java.lang.Throwable -> L30
r0 = 0
android.database.sqlite.SQLiteDatabase r1 = r10.getReadableDatabase() // Catch: java.lang.Throwable -> L26 java.lang.Exception -> L28
java.lang.String r2 = "reporterror"
r4 = 0
r5 = 0
r6 = 0
r7 = 0
r8 = 0
android.database.Cursor r0 = r1.query(r2, r3, r4, r5, r6, r7, r8) // Catch: java.lang.Throwable -> L26 java.lang.Exception -> L28
if (r0 == 0) goto L2a
boolean r1 = r0.moveToFirst() // Catch: java.lang.Throwable -> L26 java.lang.Exception -> L28
if (r1 == 0) goto L2a
int r9 = r0.getInt(r9) // Catch: java.lang.Throwable -> L26 java.lang.Exception -> L28
goto L2a
L26:
r1 = move-exception
goto L3a
L28:
r1 = move-exception
goto L32
L2a:
if (r0 == 0) goto L38
L2c:
r0.close() // Catch: java.lang.Throwable -> L30
goto L38
L30:
r0 = move-exception
goto L40
L32:
r1.printStackTrace() // Catch: java.lang.Throwable -> L26
if (r0 == 0) goto L38
goto L2c
L38:
monitor-exit(r10)
return r9
L3a:
if (r0 == 0) goto L3f
r0.close() // Catch: java.lang.Throwable -> L30
L3f:
throw r1 // Catch: java.lang.Throwable -> L30
L40:
monitor-exit(r10)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.foundation.db.l.a():int");
}
/* JADX WARN: Removed duplicated region for block: B:34:0x00ae A[Catch: all -> 0x0099, TRY_ENTER, TryCatch #4 {, blocks: (B:26:0x00a6, B:7:0x0095, B:34:0x00ae, B:35:0x00b1), top: B:3:0x0003 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final synchronized java.util.List<com.mbridge.msdk.foundation.entity.l> a(int r13) {
/*
r12 = this;
monitor-enter(r12)
r0 = 5
r1 = 0
r12.b(r0) // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
android.database.sqlite.SQLiteDatabase r2 = r12.getReadableDatabase() // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
java.lang.String r3 = "reporterror"
r4 = 0
r5 = 0
r6 = 0
r7 = 0
r8 = 0
r9 = 0
java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
r0.<init>() // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
r0.append(r13) // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
java.lang.String r13 = ""
r0.append(r13) // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
java.lang.String r10 = r0.toString() // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
android.database.Cursor r13 = r2.query(r3, r4, r5, r6, r7, r8, r9, r10) // Catch: java.lang.Throwable -> L9b java.lang.Exception -> L9d
if (r13 == 0) goto L93
int r0 = r13.getCount() // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8e
if (r0 <= 0) goto L93
java.util.ArrayList r0 = new java.util.ArrayList // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8e
r0.<init>() // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8e
L34:
boolean r1 = r13.moveToNext() // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
if (r1 == 0) goto L8c
java.lang.String r1 = "url"
int r1 = r13.getColumnIndex(r1) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r1 = r13.getString(r1) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r2 = "data"
int r2 = r13.getColumnIndex(r2) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r2 = r13.getString(r2) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r3 = "method"
int r3 = r13.getColumnIndex(r3) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r3 = r13.getString(r3) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r4 = "unitId"
int r4 = r13.getColumnIndex(r4) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r4 = r13.getString(r4) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r5 = "count"
int r5 = r13.getColumnIndex(r5) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
int r5 = r13.getInt(r5) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
java.lang.String r6 = "time_stamp"
int r6 = r13.getColumnIndex(r6) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
long r6 = r13.getLong(r6) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
com.mbridge.msdk.foundation.entity.l r8 = new com.mbridge.msdk.foundation.entity.l // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
r8.<init>(r1, r3, r2, r4) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
int r5 = r5 + 1
r8.a(r5) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
r8.a(r6) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
r0.add(r8) // Catch: java.lang.Throwable -> L87 java.lang.Exception -> L8a
goto L34
L87:
r0 = move-exception
r1 = r13
goto Lac
L8a:
r1 = move-exception
goto La1
L8c:
r1 = r0
goto L93
L8e:
r0 = move-exception
r11 = r1
r1 = r0
r0 = r11
goto La1
L93:
if (r13 == 0) goto Laa
r13.close() // Catch: java.lang.Throwable -> L99
goto Laa
L99:
r13 = move-exception
goto Lb2
L9b:
r0 = move-exception
goto Lac
L9d:
r13 = move-exception
r0 = r1
r1 = r13
r13 = r0
La1:
r1.printStackTrace() // Catch: java.lang.Throwable -> L87
if (r13 == 0) goto La9
r13.close() // Catch: java.lang.Throwable -> L99
La9:
r1 = r0
Laa:
monitor-exit(r12)
return r1
Lac:
if (r1 == 0) goto Lb1
r1.close() // Catch: java.lang.Throwable -> L99
Lb1:
throw r0 // Catch: java.lang.Throwable -> L99
Lb2:
monitor-exit(r12)
throw r13
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.foundation.db.l.a(int):java.util.List");
}
private synchronized int b(int i) {
try {
} catch (Exception unused) {
return -1;
}
return getWritableDatabase().rawQuery("DELETE FROM reporterror WHERE count >= ?", new String[]{String.valueOf(i)}).getCount();
}
public final synchronized int a(String str) {
try {
String[] strArr = {str};
if (getWritableDatabase() == null) {
return -1;
}
return getWritableDatabase().delete("reporterror", "url=?", strArr);
} catch (Exception unused) {
return -1;
}
}
/* JADX WARN: Code restructure failed: missing block: B:20:0x002a, code lost:
if (r0 == null) goto L17;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final synchronized int b() {
/*
r11 = this;
monitor-enter(r11)
r0 = 1
java.lang.String[] r3 = new java.lang.String[r0] // Catch: java.lang.Throwable -> L22
java.lang.String r0 = " count(*) "
r10 = 0
r3[r10] = r0 // Catch: java.lang.Throwable -> L22
r0 = 0
android.database.sqlite.SQLiteDatabase r1 = r11.getReadableDatabase() // Catch: java.lang.Throwable -> L24 java.lang.Exception -> L26
java.lang.String r2 = "reporterror"
r4 = 0
r5 = 0
r6 = 0
r7 = 0
r8 = 0
r9 = 0
android.database.Cursor r0 = r1.query(r2, r3, r4, r5, r6, r7, r8, r9) // Catch: java.lang.Throwable -> L24 java.lang.Exception -> L26
int r10 = r0.getCount() // Catch: java.lang.Throwable -> L24 java.lang.Exception -> L26
L1e:
r0.close() // Catch: java.lang.Throwable -> L22
goto L2d
L22:
r0 = move-exception
goto L35
L24:
r1 = move-exception
goto L2f
L26:
r1 = move-exception
r1.printStackTrace() // Catch: java.lang.Throwable -> L24
if (r0 == 0) goto L2d
goto L1e
L2d:
monitor-exit(r11)
return r10
L2f:
if (r0 == 0) goto L34
r0.close() // Catch: java.lang.Throwable -> L22
L34:
throw r1 // Catch: java.lang.Throwable -> L22
L35:
monitor-exit(r11)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.foundation.db.l.b():int");
}
}