[Mod] Extended Power Menu MIUI 10 - V10.0.2.0.O Stable & V8.11.15 Developer

xphyle1971

Senior Member
Apr 25, 2012
381
95
48
Any issues to report?
Just updated to 8.7.19. First thing I noticed is that there doesn't appear to be a way to get to the settings menu when swiping down from the home screen. There's no settings button/cog anymore. What am I missing??? The only way I could get to the settings menu is by hitting the settings app icon in the app drawer.
 

N.ORMs

Member
Apr 26, 2017
32
6
0
7th Cloud
Just updated to 8.7.19. First thing I noticed is that there doesn't appear to be a way to get to the settings menu when swiping down from the home screen. There's no settings button/cog anymore. What am I missing??? The only way I could get to the settings menu is by hitting the settings app icon in the app drawer.
It is not an issue. It is there in the setting - notification & status bar - notification shade shortcut (last one)
 
  • Like
Reactions: kenet and trapntan

kenet

Senior Member
Jun 15, 2010
355
526
93
Leon
www.androidmod.net
Guide bro?
Decompile the services.jar, and go to.

services.jar\smali\com\android\server\policy

You open with a text editor the MiuiGlobalActions$1.smali

Search:
Code:
const-string/jumbo v1, "shutdown"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 129
    new-instance v1, Lcom/android/server/policy/MiuiGlobalActions$1$1;

    const-string/jumbo v2, "ShutdownThread"

    invoke-direct {v1, p0, v2}, Lcom/android/server/policy/MiuiGlobalActions$1$1;-><init>(Lcom/android/server/policy/MiuiGlobalActions$1;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/android/server/policy/MiuiGlobalActions$1$1;->start()V

    goto :goto_0

    .line 140
    :cond_4
    const-string/jumbo v1, "dismiss"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 141
    iget-object v1, p0, Lcom/android/server/policy/MiuiGlobalActions$1;->this$0:Lcom/android/server/policy/MiuiGlobalActions;

    invoke-static {v1}, Lcom/android/server/policy/MiuiGlobalActions;->-get0(Lcom/android/server/policy/MiuiGlobalActions;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0
.end method

And you replace it with this:

Code:
const-string/jumbo v1, "recovery"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    :try_start_1
    invoke-static {}, Lcom/android/server/policy/MiuiGlobalActions;->-wrap0()Landroid/os/IPowerManager;

    move-result-object v1

    const/4 v2, 0x0

    const-string/jumbo v3, "recovery"

    const/4 v4, 0x0

    invoke-interface {v1, v2, v3, v4}, Landroid/os/IPowerManager;->reboot(ZLjava/lang/String;Z)V
    :try_end_1
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    :catch_1
    move-exception v0

    goto :goto_0

    :cond_4
    const-string/jumbo v1, "bootloader"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    :try_start_2
    invoke-static {}, Lcom/android/server/policy/MiuiGlobalActions;->-wrap0()Landroid/os/IPowerManager;

    move-result-object v1

    const/4 v2, 0x0

    const-string/jumbo v3, "bootloader"

    const/4 v4, 0x0

    invoke-interface {v1, v2, v3, v4}, Landroid/os/IPowerManager;->reboot(ZLjava/lang/String;Z)V
    :try_end_2
    .catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_0

    :catch_2
    move-exception v0

    goto :goto_0

    :cond_5
    const-string/jumbo v1, "shutdown"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6

    new-instance v1, Lcom/android/server/policy/MiuiGlobalActions$1$1;

    const-string/jumbo v2, "ShutdownThread"

    invoke-direct {v1, p0, v2}, Lcom/android/server/policy/MiuiGlobalActions$1$1;-><init>(Lcom/android/server/policy/MiuiGlobalActions$1;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/android/server/policy/MiuiGlobalActions$1$1;->start()V

    goto :goto_0

    :cond_6
    const-string/jumbo v1, "dismiss"

    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/android/server/policy/MiuiGlobalActions$1;->this$0:Lcom/android/server/policy/MiuiGlobalActions;

    invoke-static {v1}, Lcom/android/server/policy/MiuiGlobalActions;->-get0(Lcom/android/server/policy/MiuiGlobalActions;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_0
.end method
Recompile. And you'll have the services.jar finished.



Then add this file to your rom or mod in.

system\media\theme\default\

https://mega.nz/#!gw8kGaxC!3huuObcrf...rQCPWhP4JRgTOE

and finished.

Sorry for my English.