vendredi 24 janvier 2014

How to do Extended Power Menu (EPM) S4 VZW topic






This mod is based off of Verizon MK2 build.

First we start off with framework-res.apk

Decompile framework-res.apk

Now you will choose a name for the EPM.

I call mine "Sun Devil Options" It is called Phone Options on a stock S4.

Go to framework-res\res\values\strings.xml open with Notepad++ and find <string name="power_dialog">Phone options</string> change the red text to your desired EPM menu name.

Then at the end of string.xml add the following just before </resources> to look like this


PHP Code:







    <string name="epm_recovery">Recovery</string>
    <
string name="epm_download">Download</string>
    <
string name="epm_flashlight">Flashlight</string>
    <
string name="epm_screenshot">Screenshot</string>
</
resources









Now save strings.xml

Now go to framework-res\res\values\public.xml

Add the following at the bottom just before </resources> to look like this:


PHP Code:







    <public type="string" name="epm_recovery" id="0x01040a08" />
    <public 
type="string" name="epm_download" id="0x01040a09" />
    <public 
type="string" name="epm_flashlight" id="0x01040a0a" />
    <public 
type="string" name="epm_screenshot" id="0x01040a0b" />
    <public 
type="drawable" name="ic_lock_recovery" id="0x01081082" />
    <public 
type="drawable" name="ic_lock_download" id="0x01081083" />
    <public 
type="drawable" name="ic_lock_flashlight" id="0x01081084" />
    <public 
type="drawable" name="ic_lock_screenshot" id="0x01081085" />
</
resources









Now save public.xml

Now you need to add 4 png images to framework-res\res\drawable-sw360dp-xxhdpi. You can use any 96 x 96 png.

ic_lock_recovery.png
ic_lock_download.png
ic_lock_flashlight.png
ic_lock_screenshot.png

Here are my png images. You are free to use them png-images.zip

Now compile framework-res upload to phone via adb or use a flash zip push it back to system/framework

Now we have a couple of choices.

You can flash my android.policy.jar zip #1 which will ask for conformation after selecting an option.



Or you can flash my android.policy.jar zip #2 and your phone will execute the selection immediately without asking for a conformation.

Downloads android.policy.jar-#1 android.policy.jar-#2 png-images.zip

I will be putting up a smali "how to" on my android.policy.jar EPM soon.

I want to thank the following folks for making this mod. If I forgot someone please PM me and I will add you to the list.

jeboo
sbreen94
rompnit
Naddict





Aucun commentaire:

Enregistrer un commentaire