- 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
334 lines
8.2 KiB
Smali
334 lines
8.2 KiB
Smali
.class public Lcom/mbridge/msdk/newreward/player/BaseActivity;
|
|
.super Landroid/app/Activity;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private final TAG:Ljava/lang/String;
|
|
|
|
.field activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
|
|
|
|
const-string v0, "BaseActivity"
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->TAG:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private hideNavigationBar()V
|
|
.locals 2
|
|
|
|
.line 101
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v1, 0x4000000
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
.line 103
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x1002
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
const-string v1, "BaseActivity"
|
|
|
|
.line 108
|
|
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private setActivityFull()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 82
|
|
:try_start_0
|
|
invoke-virtual {p0, v0}, Landroid/app/Activity;->requestWindowFeature(I)Z
|
|
|
|
.line 83
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0x400
|
|
|
|
invoke-virtual {v1, v2, v2}, Landroid/view/Window;->setFlags(II)V
|
|
|
|
.line 84
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, 0x200
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
.line 86
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/newreward/player/BaseActivity;->hideNavigationBar()V
|
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x1c
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
.line 89
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
.line 90
|
|
invoke-static {v1, v0}, Lcom/google/android/gms/ads/internal/util/zzx$$ExternalSyntheticApiModelOutline1;->m(Landroid/view/WindowManager$LayoutParams;I)V
|
|
|
|
.line 91
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const-string v1, "BaseActivity"
|
|
|
|
.line 94
|
|
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private updateScreenSize(Z)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 114
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object p1
|
|
|
|
.line 115
|
|
iget p1, p1, Landroid/util/DisplayMetrics;->widthPixels:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onBackPressed()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "onBackPressed"
|
|
|
|
.line 70
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;->bindMethodName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 24
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 25
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/newreward/player/BaseActivity;->setActivityFull()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDestroy()V
|
|
.locals 2
|
|
|
|
.line 60
|
|
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "onDestroy"
|
|
|
|
.line 62
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;->bindMethodName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPause()V
|
|
.locals 2
|
|
|
|
.line 37
|
|
invoke-super {p0}, Landroid/app/Activity;->onPause()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "onPause"
|
|
|
|
.line 39
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;->bindMethodName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onResume()V
|
|
.locals 2
|
|
|
|
.line 44
|
|
invoke-super {p0}, Landroid/app/Activity;->onResume()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "onResume"
|
|
|
|
.line 46
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;->bindMethodName(Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/mbridge/msdk/foundation/controller/a;->a(Landroid/content/Context;)V
|
|
|
|
.line 48
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/newreward/player/BaseActivity;->hideNavigationBar()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStart()V
|
|
.locals 2
|
|
|
|
.line 30
|
|
invoke-super {p0}, Landroid/app/Activity;->onStart()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "onStart"
|
|
|
|
.line 32
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;->bindMethodName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStop()V
|
|
.locals 2
|
|
|
|
.line 53
|
|
invoke-super {p0}, Landroid/app/Activity;->onStop()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/newreward/player/BaseActivity;->activityPresenter:Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v1, "onStop"
|
|
|
|
.line 55
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/newreward/player/presenter/ActivityPresenter;->bindMethodName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onWindowFocusChanged(Z)V
|
|
.locals 0
|
|
|
|
.line 75
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onWindowFocusChanged(Z)V
|
|
|
|
.line 76
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/newreward/player/BaseActivity;->hideNavigationBar()V
|
|
|
|
.line 77
|
|
invoke-direct {p0, p1}, Lcom/mbridge/msdk/newreward/player/BaseActivity;->updateScreenSize(Z)V
|
|
|
|
return-void
|
|
.end method
|