- 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
385 lines
9.2 KiB
Smali
385 lines
9.2 KiB
Smali
.class public abstract Lcom/mbridge/msdk/activity/MBBaseActivity;
|
|
.super Landroid/app/Activity;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/view/Display;
|
|
|
|
.field private b:Landroid/view/OrientationEventListener;
|
|
|
|
.field private c:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->c:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Lcom/mbridge/msdk/activity/MBBaseActivity;I)I
|
|
.locals 0
|
|
|
|
.line 12
|
|
iput p1, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->c:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static synthetic a(Lcom/mbridge/msdk/activity/MBBaseActivity;)Landroid/view/Display;
|
|
.locals 0
|
|
|
|
.line 12
|
|
iget-object p0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->a:Landroid/view/Display;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 2
|
|
|
|
.line 136
|
|
: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 138
|
|
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, "MBBaseActivity"
|
|
|
|
.line 143
|
|
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 b()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->a:Landroid/view/Display;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 150
|
|
invoke-static {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity$$ExternalSyntheticApiModelOutline0;->m(Lcom/mbridge/msdk/activity/MBBaseActivity;)Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->a:Landroid/view/Display;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "window"
|
|
|
|
.line 152
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/WindowManager;
|
|
|
|
invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->a:Landroid/view/Display;
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->a:Landroid/view/Display;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 156
|
|
invoke-virtual {v0}, Landroid/view/Display;->getRotation()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v0, -0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public static synthetic b(Lcom/mbridge/msdk/activity/MBBaseActivity;)I
|
|
.locals 0
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity;->b()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic c(Lcom/mbridge/msdk/activity/MBBaseActivity;)I
|
|
.locals 0
|
|
|
|
.line 12
|
|
iget p0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->c:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic d(Lcom/mbridge/msdk/activity/MBBaseActivity;)Landroid/view/OrientationEventListener;
|
|
.locals 0
|
|
|
|
.line 12
|
|
iget-object p0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic e(Lcom/mbridge/msdk/activity/MBBaseActivity;)V
|
|
.locals 2
|
|
|
|
.line 1160
|
|
new-instance v0, Lcom/mbridge/msdk/activity/MBBaseActivity$2;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, p0, p0, v1}, Lcom/mbridge/msdk/activity/MBBaseActivity$2;-><init>(Lcom/mbridge/msdk/activity/MBBaseActivity;Landroid/content/Context;I)V
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
.line 1198
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->canDetectOrientation()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1199
|
|
iget-object p0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
invoke-virtual {p0}, Landroid/view/OrientationEventListener;->enable()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1201
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->disable()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1202
|
|
iput-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getNotchParams()V
|
|
.locals 4
|
|
|
|
.line 19
|
|
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
|
|
|
|
new-instance v1, Lcom/mbridge/msdk/activity/MBBaseActivity$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/mbridge/msdk/activity/MBBaseActivity$1;-><init>(Lcom/mbridge/msdk/activity/MBBaseActivity;)V
|
|
|
|
const-wide/16 v2, 0x1f4
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
.line 89
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 91
|
|
:try_start_0
|
|
invoke-virtual {p0, p1}, Landroid/app/Activity;->requestWindowFeature(I)Z
|
|
|
|
.line 92
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x400
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V
|
|
|
|
.line 93
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x200
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V
|
|
|
|
.line 95
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity;->a()V
|
|
|
|
.line 96
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity;->b()I
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 99
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 100
|
|
invoke-static {v0, p1}, Lcom/google/android/gms/ads/internal/util/zzx$$ExternalSyntheticApiModelOutline1;->m(Landroid/view/WindowManager$LayoutParams;I)V
|
|
|
|
.line 101
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, 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 p1
|
|
|
|
const-string v0, "MBBaseActivity"
|
|
|
|
.line 104
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDestroy()V
|
|
.locals 1
|
|
|
|
.line 120
|
|
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 122
|
|
invoke-virtual {v0}, Landroid/view/OrientationEventListener;->disable()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/activity/MBBaseActivity;->b:Landroid/view/OrientationEventListener;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onResume()V
|
|
.locals 1
|
|
|
|
.line 110
|
|
invoke-super {p0}, Landroid/app/Activity;->onResume()V
|
|
|
|
.line 111
|
|
sget-boolean v0, Lcom/mbridge/msdk/foundation/d/b;->c:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 114
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity;->getNotchParams()V
|
|
|
|
.line 115
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onWindowFocusChanged(Z)V
|
|
.locals 0
|
|
|
|
.line 129
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onWindowFocusChanged(Z)V
|
|
|
|
.line 130
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/activity/MBBaseActivity;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public abstract setTopControllerPadding(IIIII)V
|
|
.end method
|