It seems that you messed up the android.policy.jar, you know that you have to extract first the classes.dex then do the baksmali then do the smali to make a new classes.dex and finally put it in the jar file replacing the older dex, I did it that way with some v10 and v20 and the powermenu worked.
Also I think this thread is more "theming" than "dev" so it should be in the other section.
Personally I prefer to use combo buttons to reboot and to go to recovery (mi power button is kinda broke), to do that just add this to the init.rc
Code:
# Reboot : HOME + VolUp
service rbt /system/bin/reboot
oneshot
disabled
keycodes 102 115
# Recovery : HOME + VolDown
service rcvry /system/bin/reboot recovery
oneshot
disabled
keycodes 102 114
I got the idea from a post of BuglessPete
|