Files
rr3-apk/smali_classes4/com/mbridge/msdk/foundation/db/j.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

560 lines
12 KiB
Smali

.class public Lcom/mbridge/msdk/foundation/db/j;
.super Lcom/mbridge/msdk/foundation/db/a;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/mbridge/msdk/foundation/db/a<",
"Lcom/mbridge/msdk/foundation/entity/g;",
">;"
}
.end annotation
# static fields
.field private static a:Lcom/mbridge/msdk/foundation/db/j;
# direct methods
.method private constructor <init>(Lcom/mbridge/msdk/foundation/db/f;)V
.locals 0
.line 13
invoke-direct {p0, p1}, Lcom/mbridge/msdk/foundation/db/a;-><init>(Lcom/mbridge/msdk/foundation/db/f;)V
return-void
.end method
.method public static a(Lcom/mbridge/msdk/foundation/db/f;)Lcom/mbridge/msdk/foundation/db/j;
.locals 2
sget-object v0, Lcom/mbridge/msdk/foundation/db/j;->a:Lcom/mbridge/msdk/foundation/db/j;
if-nez v0, :cond_1
const-class v0, Lcom/mbridge/msdk/foundation/db/j;
.line 18
monitor-enter v0
:try_start_0
sget-object v1, Lcom/mbridge/msdk/foundation/db/j;->a:Lcom/mbridge/msdk/foundation/db/j;
if-nez v1, :cond_0
.line 20
new-instance v1, Lcom/mbridge/msdk/foundation/db/j;
invoke-direct {v1, p0}, Lcom/mbridge/msdk/foundation/db/j;-><init>(Lcom/mbridge/msdk/foundation/db/f;)V
sput-object v1, Lcom/mbridge/msdk/foundation/db/j;->a:Lcom/mbridge/msdk/foundation/db/j;
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
.line 22
:cond_0
:goto_0
monitor-exit v0
goto :goto_2
:goto_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
:cond_1
:goto_2
sget-object p0, Lcom/mbridge/msdk/foundation/db/j;->a:Lcom/mbridge/msdk/foundation/db/j;
return-object p0
.end method
.method private declared-synchronized b(Lcom/mbridge/msdk/foundation/entity/g;)J
.locals 6
monitor-enter p0
const-wide/16 v0, -0x1
.line 128
:try_start_0
invoke-static {}, Lcom/mbridge/msdk/foundation/db/a/a;->a()Lcom/mbridge/msdk/foundation/db/a/a;
move-result-object v2
invoke-virtual {v2, p1}, Lcom/mbridge/msdk/foundation/db/a/a;->a(Lcom/mbridge/msdk/foundation/entity/g;)V
.line 129
new-instance v2, Landroid/content/ContentValues;
invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V
const-string v3, "id"
.line 130
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->a()Ljava/lang/String;
move-result-object v4
invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
const-string v3, "fc_a"
.line 131
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->c()I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
const-string v3, "fc_b"
.line 132
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->d()I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
const-string v3, "ts"
.line 133
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->f()J
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v4
invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
const-string v3, "impression_count"
.line 134
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->e()I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
const-string v3, "click_count"
.line 135
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->b()I
move-result v4
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
const-string v3, "ts"
.line 136
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->f()J
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
invoke-virtual {v2, v3, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
.line 137
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez p1, :cond_0
.line 138
monitor-exit p0
return-wide v0
.line 140
:cond_0
:try_start_1
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p1
const-string v3, "frequence"
const/4 v4, 0x0
invoke-virtual {p1, v3, v4, v2}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J
move-result-wide v0
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-wide v0
:catchall_0
move-exception p1
.line 141
monitor-exit p0
throw p1
.line 143
:catch_0
monitor-exit p0
return-wide v0
.end method
# virtual methods
.method public final declared-synchronized a()V
.locals 4
monitor-enter p0
.line 30
:try_start_0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
const-wide/32 v2, 0x5265c00
sub-long/2addr v0, v2
.line 31
invoke-static {}, Lcom/mbridge/msdk/foundation/db/a/a;->a()Lcom/mbridge/msdk/foundation/db/a/a;
move-result-object v2
invoke-virtual {v2, v0, v1}, Lcom/mbridge/msdk/foundation/db/a/a;->a(J)V
const-string v2, "ts< ? "
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/String;
.line 33
invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
aput-object v0, v3, v1
.line 34
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v0
if-eqz v0, :cond_0
.line 35
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v0
const-string v1, "frequence"
invoke-virtual {v0, v1, v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
.line 37
monitor-exit p0
throw v0
.line 39
:catch_0
:cond_0
:goto_0
monitor-exit p0
return-void
.end method
.method public final declared-synchronized a(Lcom/mbridge/msdk/foundation/entity/g;)V
.locals 1
monitor-enter p0
.line 114
:try_start_0
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/g;->a()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/foundation/db/j;->b(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
.line 115
invoke-direct {p0, p1}, Lcom/mbridge/msdk/foundation/db/j;->b(Lcom/mbridge/msdk/foundation/entity/g;)J
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
.line 117
:cond_0
:goto_0
monitor-exit p0
return-void
:goto_1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized a(Ljava/lang/String;)V
.locals 2
monitor-enter p0
.line 68
:try_start_0
invoke-static {}, Lcom/mbridge/msdk/foundation/db/a/a;->a()Lcom/mbridge/msdk/foundation/db/a/a;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/mbridge/msdk/foundation/db/a/a;->a(Ljava/lang/String;)V
.line 69
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/foundation/db/j;->b(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "UPDATE frequence Set impression_count=impression_count+1 WHERE id= ?"
.line 71
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v1
if-eqz v1, :cond_0
.line 72
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
invoke-virtual {v1, v0, p1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
.line 77
:cond_0
:goto_0
monitor-exit p0
return-void
:goto_1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized b(Ljava/lang/String;)Z
.locals 5
monitor-enter p0
const/4 v0, 0x0
const/4 v1, 0x0
.line 84
:try_start_0
monitor-enter p1
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
:try_start_1
const-string v2, "SELECT id FROM frequence WHERE id= ?"
.line 86
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v3
filled-new-array {p1}, [Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v2, v4}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;
move-result-object v1
if-eqz v1, :cond_0
.line 88
invoke-interface {v1}, Landroid/database/Cursor;->getCount()I
move-result v2
if-lez v2, :cond_0
.line 89
monitor-exit p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
.line 99
:try_start_2
invoke-interface {v1}, Landroid/database/Cursor;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 89
monitor-exit p0
const/4 p1, 0x1
return p1
:catchall_0
move-exception p1
goto :goto_1
:catchall_1
move-exception v2
goto :goto_0
.line 91
:cond_0
:try_start_3
monitor-exit p1
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
if-eqz v1, :cond_1
.line 99
:try_start_4
invoke-interface {v1}, Landroid/database/Cursor;->close()V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
.line 91
:cond_1
monitor-exit p0
return v0
.line 94
:goto_0
:try_start_5
monitor-exit p1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_1
:try_start_6
throw v2
:try_end_6
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0
.catchall {:try_start_6 .. :try_end_6} :catchall_2
:catchall_2
move-exception p1
if-eqz v1, :cond_2
.line 99
:try_start_7
invoke-interface {v1}, Landroid/database/Cursor;->close()V
.line 101
:cond_2
throw p1
:catch_0
if-eqz v1, :cond_3
.line 99
invoke-interface {v1}, Landroid/database/Cursor;->close()V
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_0
goto :goto_2
:goto_1
monitor-exit p0
throw p1
.line 96
:cond_3
:goto_2
monitor-exit p0
return v0
.end method