- 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
134 lines
3.1 KiB
Smali
134 lines
3.1 KiB
Smali
.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private isAvailable:Z
|
|
|
|
.field private loadAttempted:Z
|
|
|
|
.field private nativeLibraries:[Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public varargs constructor <init>([Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->nativeLibraries:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final declared-synchronized isAvailable()Z
|
|
.locals 5
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->loadAttempted:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->isAvailable:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 25
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
:try_start_1
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->loadAttempted:Z
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->nativeLibraries:[Ljava/lang/String;
|
|
|
|
.line 29
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_1
|
|
|
|
aget-object v4, v1, v3
|
|
|
|
.line 30
|
|
invoke-static {v4}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->isAvailable:Z
|
|
:try_end_2
|
|
.catch Ljava/lang/UnsatisfiedLinkError; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:catch_0
|
|
:try_start_3
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->isAvailable:Z
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 36
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:goto_1
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final varargs declared-synchronized setLibraries([Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->loadAttempted:Z
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
const-string v1, "Cannot set libraries after loading"
|
|
|
|
.line 18
|
|
invoke-static {v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/LibraryLoader;->nativeLibraries:[Ljava/lang/String;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 20
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|