Files
rr3-apk/smali_classes4/com/mbridge/msdk/foundation/db/i.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

405 lines
8.9 KiB
Smali

.class public final Lcom/mbridge/msdk/foundation/db/i;
.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/f;",
">;"
}
.end annotation
# static fields
.field private static a:Lcom/mbridge/msdk/foundation/db/i;
# direct methods
.method private constructor <init>(Lcom/mbridge/msdk/foundation/db/f;)V
.locals 0
.line 12
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 declared-synchronized a(Lcom/mbridge/msdk/foundation/db/f;)Lcom/mbridge/msdk/foundation/db/i;
.locals 2
const-class v0, Lcom/mbridge/msdk/foundation/db/i;
monitor-enter v0
:try_start_0
sget-object v1, Lcom/mbridge/msdk/foundation/db/i;->a:Lcom/mbridge/msdk/foundation/db/i;
if-nez v1, :cond_0
.line 17
new-instance v1, Lcom/mbridge/msdk/foundation/db/i;
invoke-direct {v1, p0}, Lcom/mbridge/msdk/foundation/db/i;-><init>(Lcom/mbridge/msdk/foundation/db/f;)V
sput-object v1, Lcom/mbridge/msdk/foundation/db/i;->a:Lcom/mbridge/msdk/foundation/db/i;
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
:cond_0
:goto_0
sget-object p0, Lcom/mbridge/msdk/foundation/db/i;->a:Lcom/mbridge/msdk/foundation/db/i;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 19
monitor-exit v0
return-object p0
:goto_1
monitor-exit v0
throw p0
.end method
.method private declared-synchronized a(Ljava/lang/String;Ljava/lang/String;)Z
.locals 2
monitor-enter p0
const/4 v0, 0x0
:try_start_0
const-string v1, "select id from fq_info where unitId= ? and id= ? "
filled-new-array {p1, p2}, [Ljava/lang/String;
move-result-object p1
.line 65
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p2
invoke-virtual {p2, v1, p1}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;
move-result-object p1
if-eqz p1, :cond_0
.line 66
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
move-result p2
if-lez p2, :cond_0
.line 67
invoke-interface {p1}, Landroid/database/Cursor;->close()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 68
monitor-exit p0
const/4 p1, 0x1
return p1
:catchall_0
move-exception p1
goto :goto_1
:catch_0
move-exception p1
goto :goto_0
:cond_0
if-eqz p1, :cond_1
.line 71
:try_start_1
invoke-interface {p1}, Landroid/database/Cursor;->close()V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 73
:cond_1
monitor-exit p0
return v0
.line 76
:goto_0
:try_start_2
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 78
monitor-exit p0
return v0
:goto_1
monitor-exit p0
throw p1
.end method
# virtual methods
.method public final declared-synchronized a(Lcom/mbridge/msdk/foundation/entity/f;)V
.locals 5
monitor-enter p0
.line 38
:try_start_0
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v0
: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 v0, :cond_0
.line 39
monitor-exit p0
return-void
:cond_0
if-eqz p1, :cond_2
.line 42
:try_start_1
new-instance v0, Landroid/content/ContentValues;
invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V
const-string v1, "id"
.line 43
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->a()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
const-string v1, "time"
.line 44
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->b()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
const-string v1, "unitId"
.line 45
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->d()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
const-string v1, "type"
.line 46
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->c()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
.line 47
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->d()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->a()Ljava/lang/String;
move-result-object v2
invoke-direct {p0, v1, v2}, Lcom/mbridge/msdk/foundation/db/i;->a(Ljava/lang/String;Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_1
const-string v1, "id = ? AND unitId = ? "
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/String;
.line 49
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->a()Ljava/lang/String;
move-result-object v3
const/4 v4, 0x0
aput-object v3, v2, v4
invoke-virtual {p1}, Lcom/mbridge/msdk/foundation/entity/f;->d()Ljava/lang/String;
move-result-object p1
const/4 v3, 0x1
aput-object p1, v2, v3
.line 50
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p1
const-string v3, "fq_info"
invoke-virtual {p1, v3, v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
goto :goto_1
:catchall_0
move-exception p1
goto :goto_2
:catch_0
move-exception p1
goto :goto_0
.line 52
:cond_1
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p1
const-string v1, "fq_info"
const/4 v2, 0x0
invoke-virtual {p1, v1, v2, v0}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
.line 57
:goto_0
:try_start_2
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 59
:cond_2
:goto_1
monitor-exit p0
return-void
:goto_2
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized a(Ljava/lang/String;)V
.locals 4
monitor-enter p0
.line 25
:try_start_0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
const-wide/32 v2, 0x5265c00
sub-long/2addr v0, v2
const-string v2, "time< ? and unitId=?"
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/String;
.line 27
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
const/4 v0, 0x1
aput-object p1, v3, v0
.line 28
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p1
if-eqz p1, :cond_0
.line 29
invoke-virtual {p0}, Lcom/mbridge/msdk/foundation/db/a;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;
move-result-object p1
const-string v0, "fq_info"
invoke-virtual {p1, v0, 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 p1
.line 32
monitor-exit p0
throw p1
.line 34
:catch_0
:cond_0
:goto_0
monitor-exit p0
return-void
.end method