[Galaxy S6 General] asc1977:
How to Advance Power Menu on Marshmallow 6.0.1

Decompile Service.jar /smali/com/android/server/policy/GlobalActions.smali

Open notepad++

Search for this line

new-instance v5, Lcom/android/server/policy/GlobalActions$9

new-instance v5, Lcom/android/server/policy/GlobalActions$[COLOR="Red"]9[/COLOR]; Change it to [COLOR="Blue"]99[/COLOR]

sget-boolean v4, Lcom/android/server/policy/GlobalActions;->mNewFeatureForM:Z

if-eqz v4, :cond_7

const v4, 0x[COLOR="Green"]108095f [/COLOR] [COLOR="Red"]Remember this numbers or what numbers gonna be here[/COLOR]

:goto_4
const v6, 0x10408cf

move-object/from16 v0, p0

invoke-direct {v5, v0, v4, v6}, Lcom/android/server/policy/GlobalActions$[COLOR="Red"]9[/COLOR];-><init>(Lcom/android/server/policy/GlobalActions;II)V change it to [COLOR="Blue"]99[/COLOR]

Search for this line

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mConfirmPowerOffIconResId:I [COLOR="Red"]OR Search [/COLOR][COLOR="Green"]108095f [/COLOR]

Delete only the red line then SAVE

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mConfirmPowerOffIconResId:I

[COLOR="Red"] const v1, 0x108095f

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mRestartIconResId:I

const v1, 0x1080960

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mConfirmRestartIconResId:I[/COLOR]

const v1, 0x108095c

iput v1, p0, Lcom/android/server/policy/GlobalActions;->mEmergencyIconResId:I

Open /smali/com/android/server/policy/ GlobalActions$SinglePressAction and add the blue lines

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/server/policy/GlobalActions;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x40a
name = "SinglePressAction"
.end annotation

[COLOR="Blue"]# static fields
.field public static rebootMode:I

.field public static final rebootOptions:[Ljava/lang/String;

.field public static final rebootString:[Ljava/lang/String;[/COLOR]

# instance fields

and then

# direct methods
[COLOR="Blue"].method static constructor <clinit>()V
.registers 9

const/4 v8, 0x5

const/4 v7, 0x4

const/4 v6, 0x3

const/4 v5, 0x2

const/4 v4, 0x1

const/4 v3, 0x0

new-array v0, v8, [Ljava/lang/String;

const-string/jumbo v2, "Reboot"

aput-object v2, v0, v3

const-string/jumbo v2, "Hot Reboot"

aput-object v2, v0, v4

const-string/jumbo v2, "Download"

aput-object v2, v0, v5

const-string/jumbo v2, "Recovery"

aput-object v2, v0, v6

const-string/jumbo v2, "Safe Mode"

aput-object v2, v0, v7

sput-object v0, Lcom/android/server/policy/GlobalActions$SinglePressAction;->rebootString:[Ljava/lang/String;

new-array v1, v8, [Ljava/lang/String;

const-string v2, "Reboot"

aput-object v2, v1, v3

const-string v2, "Hot Reboot"

aput-object v2, v1, v4

const-string v2, "Download"

aput-object v2, v1, v5

const-string v2, "Recovery"

aput-object v2, v1, v6

const-string v2, "Safe Mode"

aput-object v2, v1, v7

sput-object v1, Lcom/android/server/policy/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method
[/COLOR]
.method protected constructor <init>(II)V

Download attached smalis (Smali_MM.zip) and paste it in services.jar\smali\com\android\server\policy folder

To change power menu title GlobalActions$99, find const-string v2, "Advanced Power Menu" and change to what you want.

Credit and Thanks:

[MENTION=4819130]kmokhtar79[/MENTION] - for hes Tutorial

[MENTION=7308585]kep2008[/MENTION] - For hes Tutorial

[MENTION=3136944]Repulsa[/MENTION]