Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

How to do Extended Power Menu (EPM) S4 VZW

OP EMSpilot

24th January 2014, 09:28 PM   |  #1  
EMSpilot's Avatar
OP Recognized Themer
Flag Havasu
Thanks Meter: 1,558
 
807 posts
Join Date:Joined: May 2012
Donate to Me
More


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
Last edited by EMSpilot; 24th January 2014 at 09:48 PM.
The Following 4 Users Say Thank You to EMSpilot For This Useful Post: [ View ]
24th January 2014, 09:29 PM   |  #2  
EMSpilot's Avatar
OP Recognized Themer
Flag Havasu
Thanks Meter: 1,558
 
807 posts
Join Date:Joined: May 2012
Donate to Me
More
Mine
Mine
The Following User Says Thank You to EMSpilot For This Useful Post: [ View ]
24th January 2014, 09:30 PM   |  #3  
Naddict's Avatar
Senior Member
Flag 28.2S, 92.1W
Thanks Meter: 13,818
 
8,466 posts
Join Date:Joined: Nov 2011
More
More great stuff!
24th January 2014, 09:51 PM   |  #4  
rompnit's Avatar
Recognized Contributor / Themer
Flag Granger, IN
Thanks Meter: 17,701
 
2,900 posts
Join Date:Joined: Aug 2008
Donate to Me
More
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: 20,108
 
4,831 posts
Join Date:Joined: Apr 2012
Donate to Me
More
Looks cool
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes