[Android Themes] ocoot:
This is just simple guide to add 4 way boot menu on reboot options. i'm already compare from [MENTION=2472412]cargobr151[/MENTION] thread and finished my mod on 1 hours :cyclops:

I only make this tutorial and attach needed files. Everyone can use it way they want to, but give credit to me first :good:

Guide:

1. decompile your framework-res.apk first, then open public.xml (we really need this)

2. download attachment files first (we need it later)

3. decompile your android.policy.jar

4. now open your GlobalActions.smali and public.xml (from framework-res.apk) on the same time

5.

Tricky part, be carefull on this part

6. find this line (another devices might have different number id on reboot button. You find right one by for example tracing reboot icon id from public.xml)

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$6;

const v2, 0x108004d

const v3, 0x1040362

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

7. now, we find the smali to call reboot action on power menu. that is GlobalActions$6 (we no need to change line, cz it wont work)

8. now open the attach file, rename the files like the smali above and then open that files, rename all GlobalActions$6 lines like to smali above.

example:

my att files called GlobalActions$6, and your smali to call reboot action mode is GlobalActions$7. so, you need to rename the att files to

GlobalActions$7

and change all of name the smaliinside from

GlobalActions$6

to be

GlobalActions$7

. i hope you understand, cz i'm bad on english to explanation

9. done for GlobalActions.smali, save it. now, move to GlobalActions$SinglePressAction.smali

10. before line "# instance fields" paste the code below

# static fields
.field protected static rebootMode:I

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

11. then after line "# direct methods" paste the code below

.method static constructor ()V
.registers 3

const/4 v0, 0x5

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

const/4 v1, 0x0

const-string v2, "Reboot"

aput-object v2, v0, v1

const/4 v1, 0x1

const-string v2, "Hot Boot"

aput-object v2, v0, v1

const/4 v1, 0x2

const-string v2, "Download"

aput-object v2, v0, v1

const/4 v1, 0x3

const-string v2, "Recovery"

aput-object v2, v0, v1

const/4 v1, 0x4

const-string v2, "Shutdown"

aput-object v2, v0, v1

sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;

return-void
.end method

12. now, we done. save that file. then we move again to the GlobalActions$6 (the files we download earlier)

13. in file "GlobalActions$6.smali" there is id 0x1110010, you need to check that this id is same in your public.xml earlier. if not, chage the id with your id from public.xml, that id called config_sf_slowBlur

14. check also that ids 0x104000a="ok" -string and 0x1040000 = "cancel" -string matches in your public.xml

15. then, follow this guide http://xdaforums.com/showpost.php?p=55357596&postcount=3

16. after done with all, save it. compile the jar file then flash. now you done

Screenshot:

Credits:

1. [MENTION=3076446]kahvitahra[/MENTION] for him guide 4 way reboot menu for JB

2. [MENTION=2472412]cargobr151[/MENTION] for him mod Reboot mode for Nexus 5

NB:

Sorry if my english very very bad, forgive me :fingers-crossed: