[Android Software/Hacking General [Developers Only]] gride:
My device is ZT-180

android.policy.jar - GlobalActions.smali

.method private createDialog()Landroid/app/AlertDialog;
.registers 11

.prologue
const/4 v9, 0x5

.line 122
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$1;

const v2, 0x1080031

const v3, 0x1080032

const v4, 0x104011b

const v5, 0x104011c

const v6, 0x104011d

move-object v1, p0

invoke-direct/range {v0 .. v6}, Lcom/android/internal/policy/impl/GlobalActions$1;-><init>(Lcom/android/internal/policy/impl/GlobalActions;IIIII)V

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mSilentModeToggle:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;

.line 157
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$2;

const v1, 0x1080030

const v2, 0x104011a

invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$2;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->powerAction:Lcom/android/internal/policy/impl/GlobalActions$Action;

.line 158
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$6;

const v3, 0x01080390

const v4, 0x01040376

invoke-direct {v0, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$6;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->powerAction:Lcom/android/internal/policy/impl/GlobalActions$Action;

.line 175
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

const/4 v1, 0x0

invoke-direct {v0, p0, v1}, Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;-><init>(Lcom/android/internal/policy/impl/GlobalActions;Lcom/android/internal/policy/impl/GlobalActions$1;)V

iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

.line 177
new-instance v7, Landroid/app/AlertDialog$Builder;

iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

invoke-direct {v7, v0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

.line 179
.local v7, ab:Landroid/app/AlertDialog$Builder;
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mAdapter:Lcom/android/internal/policy/impl/GlobalActions$MyAdapter;

invoke-virtual {v7, v0, p0}, Landroid/app/AlertDialog$Builder;->setAdapter(Landroid/widget/ListAdapter;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

move-result-object v0

const/4 v1, 0x1

invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setInverseBackgroundForced(Z)Landroid/app/AlertDialog$Builder;

move-result-object v0

const v1, 0x1040118

invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

.line 183
invoke-virtual {v7}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

move-result-object v8

.line 184
.local v8, dialog:Landroid/app/AlertDialog;
invoke-virtual {v8}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

move-result-object v0

const/16 v1, 0x7d8

invoke-virtual {v0, v1}, Landroid/view/Window;->setType(I)V

.line 185
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

const v1, 0x10d0001

invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v0

if-nez v0, :cond_68

.line 187
invoke-virtual {v8}, Landroid/app/AlertDialog;->getWindow()Landroid/view/Window;

move-result-object v0

invoke-virtual {v0, v9, v9}, Landroid/view/Window;->setFlags(II)V

.line 191
:cond_68
invoke-virtual {v8, p0}, Landroid/app/AlertDialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

.line 193
return-object v8
.end method

.line 157 - is power off function

.line 158 - is my code for reboot.

After building I can see only "reboot" item. What I do wrong?