How to do Extended Power Menu (EPM) S4 VZW - Verizon Samsung Galaxy S 4

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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:
<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:
<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

Mine
Mine

More great stuff!

I want one too!
Sent from my SPH-L710 using xda app-developers app

Looks cool:laugh::good:

Related

[Q] About framework

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to change that yellow color to blue or other color ? I should edit or add any xml file on framework-re.apk ?
Please help me with this... I want to change the yellow color to cyan color...
Well, it is in an xml file. You'll first need to decompile the framework-res.apk then open the relevant xml file. Can't remember off hand what it's called, but it's something like horizontal_progress and vertical_progress, most probably in one of the layout folders. You'll then need to find the colour values and changes them to what you want.
Sorry, not been much help, but hope it gives you something to go on.
There is no landscape_progress and horizantal progress.. There is some xml files and there is preference.xml and preference_dialog.xml
preference.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<ImageView android:layout_gravity="center_vertical" android:background="@drawable/btn_circle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:src="@drawable/ic_btn_round_more"
xmlns:android="http://schemas.android.com/apk/res/android" />
preference_dialog.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/body" android:paddingLeft="8.0dip" android:paddingTop="10.0dip" android:paddingRight="8.0dip" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false">
<ProgressBar android:id="@id/progress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="12.0dip" android:max="10000" style="@android:style/Widget.ProgressBar" />
<TextView android:layout_gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>
L0cke said:
Well, it is in an xml file. You'll first need to decompile the framework-res.apk then open the relevant xml file. Can't remember off hand what it's called, but it's something like horizontal_progress and vertical_progress, most probably in one of the layout folders. You'll then need to find the colour values and changes them to what you want.
Sorry, not been much help, but hope it gives you something to go on.
Click to expand...
Click to collapse
Can you remember the xml file name ?
Almost right.....
progress_horizontal.xml located in framework-res.apk/res/drawable/
use a hex colour chart to help you if you dont have any image editing software, here's an online chart
http://www.colorschemer.com/online.html
When editing the code you need to follow the ARGB layout:
A=Alpha(transparency/Opacity) 00=transparent ff=opaque
R=Red
G=Green
B=Blue
Edit the parts highlighted in red, there are 3 lines this is just one:
<gradient android:startColor="#50007fff" android:endColor="#80070274" android:angle="270.0" android:centerColor="#800018ff" />
Hope this helps, if you need any more find me over here-
http://forum.xda-developers.com/showthread.php?t=1433053

[GUIDE][ICS] Custom Carrier Label for Stock / Stock Based ROM

I just found the trick to manipulate carrier label on notification bar when I'm exploring decompiled stock based SystemUI.apk..
Wanna know how to do that ??
Check this out :
Here I'm using lidroid's modified SystemUI, should work on other stock based SystemUI
First you need to decompile your SystemUI.apk
Open res/layout/status_bar_tracking.xml with any good xml editor (here I'm using NP++)
Find this line:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
and change to:
Code:
<textView android:text="@string/carrier_label" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Save
Now open res/values/strings.xml
Add this line above </resources> :
Code:
<string name="carrier_label">ENTER_YOUR_COOLEST_TEXT_HERE</string>
so it'll be looked a like this:
Code:
<string name="carrier_label">ENTER_YOUR_COOLEST_TEXT_HERE</string>
</resources>
p.s. : change the ENTER_YOUR_COOLEST_TEXT_HERE with your desired label
Now save
Recompile (build) your SystemUI.apk
Push to your phone and you are.......
Done !!
The result will be looked like this :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Mine :
Remember to
ALWAYS MAKE BACKUP !!
before doing anything above..
I don't responsible of any negative things like bootloop, bricked device, burned SD card, you late to go to school, or the third world war caused by the guide above..
You have been warned !!
Click to expand...
Click to collapse
Good luck..
nice find mate .. thanks for the share
if you lazy to do ,try this app http://forum.xda-developers.com/showthread.php?t=901865
dont know if it work on ICS ,just try its easier for noob like me
btw thanks for share :good:
Does anyone now how to bring the Carrier Label in the bottom of the statusbar Expanded view, in Gingerbread? Tried searching the forum and google, but with no luck...
iiandskater said:
i just found the trick to manipulate carrier label on notification bar when i'm exploring decompiled stock based systemui.apk..
Wanna know how to do that ??
Check this out :
here i'm using lidroid's modified systemui, should work on other stock based systemui
first you need to decompile your systemui.apk
open res/layout/status_bar_tracking.xml with any good xml editor (here i'm using np++)
find this line:
Code:
<com.android.systemui.statusbar.phone.carrierlabel android:textappearance="@style/textappearance.statusbar.clock" android:textcolor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingbottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
and change to:
Code:
<textview android:text="@string/carrier_label" android:textappearance="@style/textappearance.statusbar.clock" android:textcolor="#ff33b5e5" android:gravity="center" android:layout_gravity="bottom" android:paddingbottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
save
now open res/values/strings.xml
add this line above </resources> :
Code:
<string name="carrier_label">enter_your_coolest_text_here</string>
so it'll be looked a like this:
Code:
<string name="carrier_label">enter_your_coolest_text_here</string>
</resources>
p.s. : Change the enter_your_coolest_text_here with your desired label
now save
recompile (build) your systemui.apk
push to your phone and you are.......
done !!
the result will be looked like this :
mine :
good luck..
Click to expand...
Click to collapse
ur status bar is so cool i mean d icons can u make a zip and share???
What do you use to decompile/recompile? Also can you set the clock in the middle of the status bar?
Sent from my SPH-D710 using xda premium
i try but it do not work.
i think my room need more edit at: res\values\public.xlm but i do not know add line:
<public type="string" name="carrier_label" id="0x7f08001c" />
cool
looks very nice bro
Hi, will this work on jellybean??

[How To][Guide] Fast Scene Recognition & Photostack On Stock Camera ICS

Hi guys ...
I shared a tutorial for you and is very easy to do
How to enable faster scane recognition :
Open Root Explorer go to the folder data> data> com.sonyericsson.android.camera> shared_prefs
open com.sonyericsson.android.camera.cameracapability_pref.xml
<map>
<int name="max_picture_width_1" value="640" />
<boolean name="scenerecognition_supported_0" value="true" />
<boolean name="scenerecognition_supported_1" value="false" />
<int name="max_picture_width_0" value="3264" />
</ map>
Set to
<boolean name="scenerecognition_supported_1" value="true" />
How to enable Photostack like this Screenshot :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open com.sonyericsson.android.camera.photostack_sharedprefs.xml
<map>
<boolean name="photostack_sharedprefs_open_state" value="false" />
</map>
Set to
<map>
<boolean name="photostack_sharedprefs_open_state" value="true" />
</map>
How to enable Photostack in Camera 3D Panorama :
Go to the folder data> data> com.sonyericsson.android.camera3d > shared_prefs
open com.sonyericsson.android.camera.photostack_sharedprefs
<map>
<boolean name="photostack_sharedprefs_open_state" value="false" />
</map>
Set to
<map>
<boolean name="photostack_sharedprefs_open_state" value="true" />
</map>
Thanks to iridaki for inspiration modify from folder data>data
INFO you can achieve the photostack manually thru the camera, just drag the photo to the left.
yes but it locked immediately upon opening the camera
By Rizal Lovins [email protected]"Love Indonesia"
Can't I ask a question?what is photo stack?and how does it work?
Sent from my LT29i (fke)using xda app-developers app
Photo stack means the way your last photos are shown. When the camera is just opened, the recent photos are put in front of the previous one (one stack), by putting a finger on it and dragging to the left, these photos appears side by side. The tip is only to open the stack by default.
I have another question : is there any drawback to enable faster scene recognition ? Why Sony didn't enable it ?
jimRnor said:
Can't I ask a question?what is photo stack?and how does it work?
Sent from my LT29i (fke)using xda app-developers app
Click to expand...
Click to collapse
Pandemic said:
Rizal, you should take a look for the 3d camera, i/we dont have shared_prefs in there, so why creating another thread here?? im still waiting
Best Regards
..:: [email protected]€m!c ::..
Click to expand...
Click to collapse
Hi Pandemic, i'm sorry I will take screenshoot for you later
By Rizal Lovins [email protected]

[How To][Guide] Fast Scene Recognition & Photostack On Stock Camera ICS

Hi guys ...
I shared a tutorial for you and is very easy to do
How to enable faster scane recognition :
Open Root Explorer go to the folder data> data> com.sonyericsson.android.camera> shared_prefs
open com.sonyericsson.android.camera.cameracapability_pref.xml
<map>
<int name="max_picture_width_1" value="640" />
<boolean name="scenerecognition_supported_0" value="true" />
<boolean name="scenerecognition_supported_1" value="false" />
<int name="max_picture_width_0" value="3264" />
</ map>
Set to
<boolean name="scenerecognition_supported_1" value="true" />
How to enable Photostack like this Screenshot :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Open com.sonyericsson.android.camera.photostack_sharedprefs.xml
<map>
<boolean name="photostack_sharedprefs_open_state" value="false" />
</map>
Set to
<map>
<boolean name="photostack_sharedprefs_open_state" value="true" />
</map>
How to enable Photostack in Camera 3D Panorama :
Go to the folder data> data> com.sonyericsson.android.camera3d > shared_prefs
open com.sonyericsson.android.camera.photostack_sharedprefs
<map>
<boolean name="photostack_sharedprefs_open_state" value="false" />
</map>
Set to
<map>
<boolean name="photostack_sharedprefs_open_state" value="true" />
</map>
Thanks to iridaki for inspiration modify from folder data>data
INFO you can achieve the photostack manually thru the camera, just drag the photo to the left.
yes but it locked immediately upon opening the camera
By Rizal Lovins [email protected]"Love Indonesia"
Can this works with CM 10?
Sent from my Xperia Mini Pro using xda app-developers app
Ok, I tried it. I will have to play with it for some time to notice the difference. I will report my findings soon.
firda4415 said:
Can this works with CM 10?
Sent from my Xperia Mini Pro using xda app-developers app
Click to expand...
Click to collapse
No, because CM10 Not using Sony Camera
By Rizal Lovins [email protected]"Love Indonesia"
Update: Ok, after days of testing. I realized that the xml file goes back to its original settings even after you changing the lines and correcting its permission.
:good: job! trying now
is it cant to be applied on cm9 ?
SoloRazr said:
Ok, I tried it. I will have to play with it for some time to notice the difference. I will report my findings soon.
Click to expand...
Click to collapse
+1
Sent from my WT19i using Tapatalk 2

[DISCONTINUED][GUIDE] Adding PIE Controls to ROM [4.0+]

PIE Controls in 4.0+ ROMS
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In this guide i will be telling you how to implement PIE Controls in any ICS or above roms!!
Click to expand...
Click to collapse
Requirements:
Code:
* Apktool or anyother tool to decompile/recompile apks
* [URL="http://forum.xda-developers.com/showthread.php?t=1330150"]LMT Launcher[/URL]
* Settings.apk
Step 1:
Decompile your settings.apk and your LMTLauncher.apk as well.
Step 2:
Inside of the decompiled LMT launcher, open the AndroidManifest.xml file and delete the below line. Now save and exit.
Code:
<category android:name="android.intent.category.LAUNCHER" />
Step 3:
Navigate to the res->xml folder inside of your decompiled settings apk and open the settings_headers.xml file.
Paste the code below where you feel fit.
I have chosen to place the code under the "<intent android:action="com.android.settings.MANUFACTURER_ APPLICATION_SETTING" />" line.
Code:
</header>
<header android:title="@string/navigation_settings" />
<header android:id="@id/pienav_settings" android:title="@string/pienav_label">
<intent android:targetPackage="com.android.lmt" android:action="android.intent.action.MAIN" android:targetClass="com.android.lmt.LMT" />
Step 4:
Navigate to the res->values folder inside of you decompiled settings apk and open the strings.xml file.
Paste the following code at the bottom of the file above the "</resources>" line.
Code:
<string name="navigation_settings">Navigation</string>
<string name="pienav_label">Pie Controls</string>
Step 5:
Navigate to the res->values folder inside of you decompiled settings apk and open the ids.xml file.
Paste the following code at the bottom of the file above the "</resources>" line
Code:
<item type="id" name="pienav_settings">false</item>
Step 6:
Recompile the apks!!! Probably you wont get any errors!! If so post your errors i will try my best to help you out!!!
Step 7:
You may need to sign your LMTLauncher.apk as you have modded the AndroidManifest.xml file but no need of Settings.apk!!
Step 8:
Create a flashable zip and flash it!!! Using adb or using root explorer to replace apps may not work at times!!!
Credits:
Code:
* Xda
* Google

Categories

Resources