Friday, October 26, 2012

Add reboot options Motorola fire power menu

This tutorial will show you how to add " reboot - reboot recovery - reboot download " options to your phone's power menu, the menu that shows up when you long-press the power button

-Download this file: android.policy.jar and this one too framework-res.apk
-Put them inside "/system/framework/" folder

It will work correctly on global rom, and maybe Chinese rom too


if it's not working correctly, restore your old framework-res.apk and android.policy.jar back

then decompile framework-res.apk
add these strings to strings.xml in the very end.

<string name="global_action_reboot">Restart</string>
<string name="global_action_reboot_recovery">Recovery menu</string>
<string name="global_action_reboot_download">MBM Flash-mode</string>

then add the needed lines in public.xml like here:

<public type="string" name="global_action_reboot" id="0x01040c93" />
<public type="string" name="global_action_reboot_recovery" id="0x01040c94" />
<public type="string" name="global_action_reboot_download" id="0x01040c95" />

The public ids may differ from device to other according to framework
And by pubic id i mean " 0x01040c93" for example..
you have to change the ids according to the last number " <public type="string" name" you see then add the three lines with the three consecutive public ids
publice id can contain numbers from 0-9 and letters from a-f

hope you understand :)


And i need a developer help me port another options to power menu
for example SCREENSHOT, mobile data, wifi, bluetooth.