Files
rr3-apk/smali_classes4/com/mbridge/msdk/newreward/function/common/DatabaseUtils.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

212 lines
4.6 KiB
Smali

.class public final Lcom/mbridge/msdk/newreward/function/common/DatabaseUtils;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private constructor <init>()V
.locals 0
.line 11
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static beginTransaction(Landroid/database/sqlite/SQLiteDatabase;)V
.locals 2
.line 25
invoke-static {p0}, Lcom/mbridge/msdk/newreward/function/common/DatabaseUtils;->isDatabaseAvailable(Landroid/database/sqlite/SQLiteDatabase;)Z
move-result v0
if-nez v0, :cond_0
return-void
.line 29
:cond_0
:try_start_0
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 31
sget-boolean v0, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "DatabaseUtils"
const-string v1, "beginTransaction"
.line 32
invoke-static {v0, v1, p0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_1
:goto_0
return-void
.end method
.method public static closeCursor(Landroid/database/Cursor;)V
.locals 2
if-nez p0, :cond_0
return-void
.line 71
:cond_0
:try_start_0
invoke-interface {p0}, Landroid/database/Cursor;->close()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 73
sget-boolean v0, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "DatabaseUtils"
const-string v1, "closeCursor"
.line 74
invoke-static {v0, v1, p0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_1
:goto_0
return-void
.end method
.method public static endTransaction(Landroid/database/sqlite/SQLiteDatabase;)V
.locals 2
.line 53
invoke-static {p0}, Lcom/mbridge/msdk/newreward/function/common/DatabaseUtils;->isDatabaseAvailable(Landroid/database/sqlite/SQLiteDatabase;)Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->inTransaction()Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
.line 57
:cond_0
:try_start_0
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 59
sget-boolean v0, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "DatabaseUtils"
const-string v1, "endTransaction"
.line 60
invoke-static {v0, v1, p0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_1
:goto_0
return-void
.end method
.method public static isDatabaseAvailable(Landroid/database/sqlite/SQLiteDatabase;)Z
.locals 2
const/4 v0, 0x0
if-eqz p0, :cond_0
.line 17
:try_start_0
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->isOpen()Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->isReadOnly()Z
move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
if-nez p0, :cond_0
const/4 v0, 0x1
nop
:catch_0
:cond_0
return v0
.end method
.method public static setTransactionSuccessful(Landroid/database/sqlite/SQLiteDatabase;)V
.locals 2
.line 39
invoke-static {p0}, Lcom/mbridge/msdk/newreward/function/common/DatabaseUtils;->isDatabaseAvailable(Landroid/database/sqlite/SQLiteDatabase;)Z
move-result v0
if-nez v0, :cond_0
return-void
.line 43
:cond_0
:try_start_0
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 45
sget-boolean v0, Lcom/mbridge/msdk/MBridgeConstans;->DEBUG:Z
if-eqz v0, :cond_1
const-string v0, "DatabaseUtils"
const-string v1, "setTransactionSuccessful"
.line 46
invoke-static {v0, v1, p0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_1
:goto_0
return-void
.end method