Files
rr3-apk/smali_classes2/com/fyber/inneractive/sdk/util/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

166 lines
3.7 KiB
Smali

.class public final Lcom/fyber/inneractive/sdk/util/i;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/fyber/inneractive/sdk/player/cache/j$f;
# instance fields
.field public a:Ljava/io/File;
.field public b:Landroid/graphics/Bitmap;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Ljava/io/File;)V
.locals 6
.line 1
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 2
new-instance v2, Landroid/media/MediaMetadataRetriever;
invoke-direct {v2}, Landroid/media/MediaMetadataRetriever;-><init>()V
.line 4
:try_start_0
invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V
const/16 v3, 0x2000
.line 5
invoke-virtual {v2, v3}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;
const-wide/16 v3, 0x1
.line 6
invoke-virtual {v2, v3, v4}, Landroid/media/MediaMetadataRetriever;->getFrameAtTime(J)Landroid/graphics/Bitmap;
move-result-object v3
iput-object v3, p0, Lcom/fyber/inneractive/sdk/util/i;->b:Landroid/graphics/Bitmap;
if-eqz v3, :cond_0
.line 7
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I
move-result v3
if-lez v3, :cond_0
iget-object v3, p0, Lcom/fyber/inneractive/sdk/util/i;->b:Landroid/graphics/Bitmap;
invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I
move-result v3
if-lez v3, :cond_0
iput-object p1, p0, Lcom/fyber/inneractive/sdk/util/i;->a:Ljava/io/File;
: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
goto :goto_3
:catch_0
move-exception p1
goto :goto_1
.line 14
:cond_0
:goto_0
:try_start_1
invoke-virtual {v2}, Landroid/media/MediaMetadataRetriever;->release()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_2
:goto_1
:try_start_2
const-string v3, "Failed getting frame from video file%s"
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
.line 15
invoke-static {p1}, Lcom/fyber/inneractive/sdk/util/t;->a(Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object p1
const/4 v5, 0x0
aput-object p1, v4, v5
invoke-static {v3, v4}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 18
:try_start_3
invoke-virtual {v2}, Landroid/media/MediaMetadataRetriever;->release()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
.line 22
:catchall_1
:goto_2
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
sub-long/2addr v2, v0
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "FirstFrameDownloadMediaProcessor processing finished in %dms"
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 23
:goto_3
:try_start_4
invoke-virtual {v2}, Landroid/media/MediaMetadataRetriever;->release()V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_2
.line 26
:catchall_2
throw p1
.end method