Remove All Ads from XDA
Honor View 10

How to do Extended Power Menu (EPM) S4 VZW

1,029 posts
Thanks Meter: 2,032
By EMSpilot, Recognized Themer on 24th January 2014, 09:28 PM
Post Reply Email Thread

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>
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" />
type="string" name="epm_download" id="0x01040a09" />
type="string" name="epm_flashlight" id="0x01040a0a" />
type="string" name="epm_screenshot" id="0x01040a0b" />
type="drawable" name="ic_lock_recovery" id="0x01081082" />
type="drawable" name="ic_lock_download" id="0x01081083" />
type="drawable" name="ic_lock_flashlight" id="0x01081084" />
type="drawable" name="ic_lock_screenshot" id="0x01081085" />
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.


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

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.



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.

The Following 4 Users Say Thank You to EMSpilot For This Useful Post: [ View ] Gift EMSpilot Ad-Free
24th January 2014, 09:29 PM |#2  
EMSpilot's Avatar
OP Recognized Themer
Flag Havasu
Thanks Meter: 2,032
Donate to Me
The Following User Says Thank You to EMSpilot For This Useful Post: [ View ] Gift EMSpilot Ad-Free
24th January 2014, 09:30 PM |#3  
Naddict's Avatar
Senior Member
Flag 28.2S, 92.1W
Thanks Meter: 13,907
More great stuff!
24th January 2014, 09:51 PM |#4  
rompnit's Avatar
Senior Member
Flag Granger, IN
Thanks Meter: 20,657
Donate to Me
I want one too!

Sent from my SPH-L710 using xda app-developers app
24th January 2014, 10:15 PM |#5  
sbreen94's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 22,736
Donate to Me
Looks cool
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes