5,598,297 Members 47,950 Now Online
XDA Developers Android and Mobile Development Forum

How to do Extended Power Menu (EPM) S4 VZW

Tip us?
 
EMSpilot
Old
(Last edited by EMSpilot; 24th January 2014 at 08:48 PM.)
#1  
EMSpilot's Avatar
Recognized Themer - OP
Thanks Meter 926
Posts: 486
Join Date: May 2012
Location: Havasu

 
DONATE TO ME
Default How to do Extended Power Menu (EPM) S4 VZW



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


- - - - - - - - - - - - - - - - - - - - -

Device: Verizon GS4 SCH-1545
Modem: I545VRUEMK2
ROM:MY OWN BUILD BASED OFF MK2
Nova Launcher


- - - - - - - - - - - - - - - - - - - - -

ASU Sun Devil Theme & Alum!!!
Purple Green Jelly Bean Theme
MOAR MA6 Text Colors
The Following 4 Users Say Thank You to EMSpilot For This Useful Post: [ Click to Expand ]
 
EMSpilot
Old
#2  
EMSpilot's Avatar
Recognized Themer - OP
Thanks Meter 926
Posts: 486
Join Date: May 2012
Location: Havasu

 
DONATE TO ME
Default Mine

Mine


- - - - - - - - - - - - - - - - - - - - -

Device: Verizon GS4 SCH-1545
Modem: I545VRUEMK2
ROM:MY OWN BUILD BASED OFF MK2
Nova Launcher


- - - - - - - - - - - - - - - - - - - - -

ASU Sun Devil Theme & Alum!!!
Purple Green Jelly Bean Theme
MOAR MA6 Text Colors
The Following User Says Thank You to EMSpilot For This Useful Post: [ Click to Expand ]
 
Naddict
Old
#3  
Naddict's Avatar
Forum Moderator
Thanks Meter 13091
Posts: 7,629
Join Date: Nov 2011
Location: 28.2S, 92.1W
More great stuff!
Every time you don't use search, a kitten, bunny, baby turtle, and fuzzy Harp Seal are killed.

Read the Rules! -- Search Before You Post! -- Learn about XDA -- Need A Moderators Help? -- Get the Most out of XDA! -- Curious about GPL?
 
rompnit
Old
#4  
rompnit's Avatar
Recognized Contributor / Themer
Thanks Meter 14883
Posts: 2,526
Join Date: Aug 2008
Location: Granger, IN

 
DONATE TO ME
I want one too!

Sent from my SPH-L710 using xda app-developers app
 
sbreen94
Old
#5  
sbreen94's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 14270
Posts: 3,911
Join Date: Apr 2012

 
DONATE TO ME
Looks cool
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes