[Tutorial]Howto Add Cpu Control & Stats in Settings.apk ! - Sony Cross-Device General

Hello People !!
As you know i have Cpu control and stats under developer options
as in my modified settings.apk and i wanna share to ya`ll howto add
{
"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"
}
REQUIREMENTS:
You need to know how to decompile, compile and sign an apk.
Notepad++
A Deoxeded Rom.
Settings.apk
The attachment from below
[Black and White CpuSettings + Stats]
+++++++++++++++++++++++++
1. Download the atachemtent witht the cpu apps
2. Decompile settings.apk
3. Go to res/values/strings.xml
add the following lines:
Code:
<string name="cpu_control">CPU Control</string>
<string name="cpu_control_summary">Manage CPU frequencies and governor</string>
<string name="cpu_stats">CPU Stats</string>
<string name="cpu_stats_summary">Monitor CPU usage</string>
<string name="cpu_setting_header">System</string>
Save it and close it
5. Now navigate to res/xml/development_prefs
add the following lines:
Code:
<PreferenceCategory android:title="@string/cpu_setting_header" android:key="cpu_setting_header">
<PreferenceScreen android:title="@string/cpu_control" android:key="cpu_control" android:summary="@string/cpu_control_summary">
<intent android:targetPackage="it.sineo.android.noFrillsCPUClassic" android:action="android.intent.action.MAIN" android:targetClass="it.sineo.android.noFrillsCPUClassic.activity.MainActivity" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/cpu_stats" android:key="cpu_stats" android:summary="@string/cpu_stats_summary">
<intent android:targetPackage="com.bvalosek.cpuspy" android:action="android.intent.action.MAIN" android:targetClass="com.bvalosek.cpuspy.ui.HomeActivity" />
</PreferenceScreen>
</PreferenceCategory>
6. Save and close it
7. Recompile the settings
8. Make a flashable zip with the 2 apps
Cpusettings.apk and cpustats.apk and
your modified settings.apk
9. Flash and enjoy
..Credits.. ​
@DaRk-L0rD For Little Help
@ZN6: For the CPU apps​

Enjoy this tut !!

Very very nyc and useful guide bro... Not as much of hard.. Its looking very easy for me.. Surely will try

Rajeev said:
Very very nyc and useful guide bro... Not as much of hard.. Its looking very easy for me.. Surely will try
Click to expand...
Click to collapse
thanks bro @Rajeev
its kinda easy todo

Very nyc tut

Good work bro

dipesh1502 said:
Very nyc tut
Click to expand...
Click to collapse
AndroidNoob69 said:
Good work bro
Click to expand...
Click to collapse
DaRk-L0rD said:
Click to expand...
Click to collapse
Thanks brothers and teammates @dipesh1502, @AndroidNoob69 and @DaRk-L0rD
Sent From Cybertron With My Powerfull Xperia P

13 downloads
5 thanks
Thanks lazy ones !

I added my xperia sp official 4.3 settings and not avalibe this development.
Please help.

jancsessz said:
I added my xperia sp official 4.3 settings and not avalibe this development.
Please help.
Click to expand...
Click to collapse
I dont know what you mean be clear please !
Btw
Wow someone founed this thread.. Great !!
Sent From Cybertron With My Powerfull Xperia P

Pandemic said:
I dont know what you mean be clear please !
Btw
Wow someone founed this thread.. Great !!
Sent From Cybertron With My Powerfull Xperia P
Click to expand...
Click to collapse
I assume this method won't work on Samsung devices, right??
I mean this tut should be only for Sony devices, cuz it's under [Development Projects for Sony Devices], am I right?

this is just adding an app to settings? this is really universal not just for this device.

ricky310711 said:
this is just adding an app to settings? this is really universal not just for this device.
Click to expand...
Click to collapse
With this tutorial you will add the cpu settings and stats under the developer option menu. If you want to add them in the settings menu, you have to edit the settings_header.xml in the xml folder.
Most likely this tutorial works for all devices

Yeah this is on the portal !!
http://www.xda-developers.com/andro...ttings-into-sony-xperia-device-settings-menu/
Happy me ^^
Sent From Cybertron With My Powerfull Xperia P

DaRk-L0rD said:
With this tutorial you will add the cpu settings and stats under the developer option menu. If you want to add them in the settings menu, you have to edit the settings_header.xml in the xml folder.
Most likely this tutorial works for all devices
Click to expand...
Click to collapse
development settings is the right place for it
and yeah its universal! ill be adding it to the S3(SmartDroid) soon
thanks to the OP! good job!

ricky310711 said:
development settings is the right place for it
and yeah its universal! ill be adding it to the S3(SmartDroid) soon
thanks to the OP! good job!
Click to expand...
Click to collapse
@ricky310711
Yes indeed and then down below in developer options what i have, my pleasure and ok let me know if it works for Samsung
Sent From Cybertron With My Powerfull Xperia P

Pandemic said:
Hello People !!
As you know i have Cpu control and stats under developer options
as in my modified settings.apk and i wanna share to ya`ll howto add
....​
Click to expand...
Click to collapse
Hi,
can't u add already compiled .apk??? so, who don't have compile skill can take benefit from it.... ​

nnneha said:
Hi,
can't u add already compiled .apk??? so, who don't have compile skill can take benefit from it....
Click to expand...
Click to collapse
Has to be device and android version specific mate.

Pandemic said:
@ricky310711
Yes indeed and then down below in developer options what i have, my pleasure and ok let me know if it works for Samsung
Sent From Cybertron With My Powerfull Xperia P
Click to expand...
Click to collapse
works fine on the SGS3 gt-i930.

Related

[Guide] How to add banner in "About Phone" | Noob friendly

Hello folks .... I’ve backed to xda after a looong time because exams
My new TUT for adding logo in "About Phone" .
Inspired by this THREAD
Credits :
@gravtec for inspiring big thanks for you bro .
What you need ? :
Latest APKTOOL package .
A brain .
PC .
Knowledge in decompiling and recompiling .
Lets start the GUIDE !
Resources
APKTOOL here .
Image Resolution : 700*215 .
Guide​
First Part​
Decompile Settings
Go to res/Layout folder
Download this file
paste it in Layout folder
Second Part​
Copy the image to res/drawable folder
Rename it to logo and it must be "PNG" !
EX: logo.png
Click to expand...
Click to collapse
Third Part​
Go to res/xml
open device_info_settings.xml
Add this
<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
Click to expand...
Click to collapse
after this line
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
Click to expand...
Click to collapse
EX :
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
Click to expand...
Click to collapse
SAMPLE
{
"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"
}
IF you see this Guide useful ... Hit thanks
Reserved for future
More things will add for this feature
Does this works only in Sony Devices ?
laura almeida said:
Does this works only in Sony Devices ?
Click to expand...
Click to collapse
I am wondering about that to
laura almeida said:
Does this works only in Sony Devices ?
Click to expand...
Click to collapse
No, it can works perfectly on another devices as well. That thread was created on Sony forum, but can be usable on you Galaxy s3. Cheers!
laura almeida said:
Does this works only in Sony Devices ?
Click to expand...
Click to collapse
Is supposed to work in all devices just becouse it is android CODE for all phone
Wow, this seems surprisingly simple enough. Can't wait to try this.
Help
Friend did not understand the tutorial ... can add some images!
Umm... this is basically the same as making ANY layout change in any Android application .
You don't have to do this in just Settings! This can be done in ANY app.
However, this resolution will be different in different devices like XXHDPI, XHDPI, and the XXXHDPI on the uber resolution devices. You really should just look at the border sizes (typically 10-20px per edge, depending on the resolution of the device.).
Oh, and don't forget to RESIGN the apk. Some devices may not play nice with an Altered Settings application that isn't signed with system-level keys.
That is all.
A problem: I don't have the red line in my settings
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
Click to expand...
Click to collapse
Help?
LeJolly said:
A problem: I don't have the red line in my settings
Help?
Click to expand...
Click to collapse
If you dont have it ... so no need to for it ... past the code after the first line
abo hani said:
If you dont have it ... so no need to for it ... past the code after the first line
Click to expand...
Click to collapse
Thanks, I kinda realized that and I can always restore a backup, but just wanted to make sure
abo hani said:
Hello folks .... I’ve backed to xda after a looong time because exams
My new TUT for adding logo in "About Phone" .
Inspired by this THREAD
Credits :
@gravtec for inspiring big thanks for you bro .
What you need ? :
Latest APKTOOL package .
A brain .
PC .
Knowledge in decompiling and recompiling .
Lets start the GUIDE !
Resources
APKTOOL here .
Image Resolution : 700*215 .
Guide​
First Part​
Decompile Settings
Go to res/Layout folder
Download this file
paste it in Layout folder
Second Part​
Copy the image to res/drawable folder
Rename it to logo and it must be "PNG" !
Third Part​
Go to res/xml
open device_info_settings.xml
Add this after this line
EX :
SAMPLE
IF you see this Guide useful ... Hit thanks
Click to expand...
Click to collapse
i followed your steps and modified my setting.apk but when i replace original settings.apk
it gave me bootloops........
Sir .. plsssssssss help me....
Vkas Raj said:
i followed your steps and modified my setting.apk but when i replace original settings.apk
it gave me bootloops........
Sir .. plsssssssss help me....
Click to expand...
Click to collapse
Did you drag Meta-Inf folder from original to modded one (you need to know how to decompile !)
laura almeida said:
Does this works only in Sony Devices ?
Click to expand...
Click to collapse
safariking said:
I am wondering about that to
Click to expand...
Click to collapse
herna said:
No, it can works perfectly on another devices as well. That thread was created on Sony forum, but can be usable on you Galaxy s3. Cheers!
Click to expand...
Click to collapse
kusanou said:
Wow, this seems surprisingly simple enough. Can't wait to try this.
Click to expand...
Click to collapse
Marília de Oliveira said:
Friend did not understand the tutorial ... can add some images!
Click to expand...
Click to collapse
werty100 said:
Is supposed to work in all devices just becouse it is android CODE for all phone
Click to expand...
Click to collapse
Its layout changes ... so it must work on all android devices
For the photo here you go :
http://forum.xda-developers.com/showthread.php?t=2560726
See examples
Cool!
Did in my Settings and everything worked. look at the picture below! Tested on Xperia Mini Pro Sk17a - with custom rom based on ics firmware 587. I hope more new stuff! Nevertheless, Keep your work. Thank you :good:
When i click on About Phone my Settings force close
▶theDr0idman◀ said:
When i click on About Phone my Settings force close
Click to expand...
Click to collapse
Send me your settings.apk I do for you
Sent from my SK17a using XDA Free mobile app
Marília de Oliveira said:
Send me your settings.apk I do for you
Sent from my SK17a using XDA Free mobile app
Click to expand...
Click to collapse
I have sent you a PM
▶theDr0idman◀ said:
When i click on About Phone my Settings force close
Click to expand...
Click to collapse
You may did a wrong editing in About Settings XML .
Sent from my LT26w using Tapatalk

[Guide][TUT] Animation in Honami framework-res

Hey , guys actually i'm new , i do not have so much knowledge, and also my english is very awful
So,if somewhere you don't understand ,just tell me , thanks​
Let's see what i'll teaching you today
picture prview
Android Defaul
{
"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"
}
Honami style
It's used for unknown progress,and honami styles spinner by a lot of pictures , so you can replace it by yourself
for example​
Seems like
So, here we go
1.Decompile framework-res.apk
2.Download resources
View attachment resources.zip
put file into drawable and drawable-hdpi
3.go to res\values\styles.xml open it with notepad2
search code
HTML:
progress_medium_holo
change to
HTML:
semc_progress_medium_holo
search code
HTML:
progress_small_holo
change to
HTML:
semc_progress_small_holo
search code
HTML:
progress_large_holo
change to
HTML:
semc_progress_large_holo
and add code before </resources>
HTML:
<style name="Widget.Holo.ProgressBar.ActionBar" parent="@style/Widget.Holo.ProgressBar">
<item name="indeterminateDrawable">@drawable/semc_progress_actionbar_holo</item>
</style>
seems like this
All right,Compile and enjoy it
there is a check Animation i still not figure out how does it work
If you interested,contact me
like it ? how about press thanks
nice job dude :good: .
do you also know how to change tab indicators ?
Can you post a guide for transforming it to Honami Framework Styles ?
XT-107 said:
nice job dude :good: .
do you also know how to change tab indicators ?
Click to expand...
Click to collapse
Your Poingt Being
abo hani said:
Can you post a guide for transforming it to Honami Framework Styles ?
Click to expand...
Click to collapse
Witch style ? I don't get it
ljg211314 said:
Your Poingt Being
Click to expand...
Click to collapse
i meant do you know how to port tab indicators ?
XT-107 said:
i meant do you know how to port tab indicators ?
Click to expand...
Click to collapse
you mean this ?
or this ?
ljg211314 said:
you mean this ?
Click to expand...
Click to collapse
yes
XT-107 said:
yes
Click to expand...
Click to collapse
it's simple , i'll try it , some resources in drawable and drawable-hdpi and styles.xml
I'll try to hack it right now
ljg211314 said:
it's simple , i'll try it , some resources in drawable and drawable-hdpi and styles.xml
I'll try to hack it right now
Click to expand...
Click to collapse
awesome dude , looking forward :good:
XT-107 said:
awesome dude , looking forward :good:
Click to expand...
Click to collapse
Here, there is txt file means to you need to change code in stylea.xml
If you still don't understand ,I will create a new guide tomorrow:silly:
View attachment 2879318
ljg211314 said:
Here, there is txt file means to you need to change code in stylea.xml
If you still don't understand ,I will create a new guide tomorrow:silly:
View attachment 2879318
Click to expand...
Click to collapse
thanks . i'll try now
XT-107 said:
thanks . i'll try now
Click to expand...
Click to collapse
W: Could not find sources
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:3659: error: Resource entry Widget.Holo.Light.ActionBar.TabView already has bag item background.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:1995: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:3662: error: Resource entry Widget.Holo.Light.TabWidget already has bag item tabLayout.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:1837: Originally defined here.
facing this problem
here's my style.xml
XT-107 said:
W: Could not find sources
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:3659: error: Resource entry Widget.Holo.Light.ActionBar.TabView already has bag item background.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:1995: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:3662: error: Resource entry Widget.Holo.Light.TabWidget already has bag item tabLayout.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:1837: Originally defined here.
facing this problem
here's my style.xml
Click to expand...
Click to collapse
delete the 1995 and 1837 line in your style.xml and try again
XT-107 said:
W: Could not find sources
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:3659: error: Resource entry Widget.Holo.Light.ActionBar.TabView already has bag item background.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:1995: Originally defined here.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:3662: error: Resource entry Widget.Holo.Light.TabWidget already has bag item tabLayout.
C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\styles.xml:1837: Originally defined here.
facing this problem
here's my style.xml
Click to expand...
Click to collapse
Visit Here , A new guide by me
http://forum.xda-developers.com/crossdevice-dev/sony/guide-honami-style-tab-indicators-t2835607
Touchwiz
Ok i have to say...
Well done. Your theme-ing looks nice.
But is there anyone out there that is willing to share a TUT on how to theme 4.4.2 touchwiz framework?
Thanks in advance.
nice guide man thanks!
and congratulations your thread is on XDA PORTAL POSTS
To OP, @ljg211314, whatever image host that you used to post pictures in your threads & posts, it is down. So all the images in your threads & posts are not displayed. Hence, I request you to take necessary action so that the images in your threads & posts are displayed properly.
are this work with mm 6.0.1?

[4.3+][NO-ROOT] Fixed Z3 Conversations App v.1.1

if anybody is willing to support my work and help me in getting a new phone
can easily donate at my paypal or donate bitcoins as well
bitcoins : 16DYbLFZzXRVBetBpxZ9XUo9WFxXKfT4kj
conversations app for rooted phones with superuser so far
Requirements :-
- Superuser Mod
you may use this as you wish, just please give credits if in a rom or etc
App will install in 4.2, but is buggy at the moment, testing
Instructions :-
- Remove Previous Conversations.apk from /system/app if rooted, if superuser Mod is enabled or going to use No Root version, skip this step
- Install As Normal App
Or Move to /system/app and set rw-r-r permissions
ScreenShots :-
{
"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"
}
Please Report All FC's/ bugs with screenshots/logcat if possible
ChangeLog : -
v1.1
- Fixed Receiving Messages
- Added Non Root
Hope you enjoy the work, and please if you want to share, please ask
using in ROMs and etc is allowed without permission, just give credit
i am using it on CM11 from Z3 dump
and everything is working fine
i have copied some framework and permissions files from Z3 dump
Conversations.apk , TeleService.apk and WapPushManager.apk
Black_Eyes said:
i am using it on CM11 from Z3 dump
and everything is working fine
i have copied some framework and permissions files from Z3 dump
Conversations.apk , TeleService.apk and WapPushManager.apk
Click to expand...
Click to collapse
Yes it shud be fine since cm11 is kitkat
It has problem in 4.3
kongaz2 has already ported it!
Anyways good work!
Black_Eyes said:
i am using it on CM11 from Z3 dump
and everything is working fine
i have copied some framework and permissions files from Z3 dump
Conversations.apk , TeleService.apk and WapPushManager.apk
Click to expand...
Click to collapse
Can you explain more detailed please? I'm on RXS ROM which is CM11 based and want to use this Conversation from Z3.
10x in advance!
Sent from my LT18i using XDA Premium 4 mobile app
dipesh1502 said:
kongaz2 has already ported it!
Anyways good work!
Click to expand...
Click to collapse
He has? Where can i find, i have been trying to XD
dipesh1502 said:
kongaz2 has already ported it!
Anyways good work!
Click to expand...
Click to collapse
Could you post link when you get time, i still can't find
Sahaab said:
Could you post link when you get time, i still can't find
Click to expand...
Click to collapse
+1
Sent from my LT18i using XDA Premium 4 mobile app
pls port for 4.1 :crying:
thanks
sa-techno said:
pls port for 4.1 :crying:
thanks
Click to expand...
Click to collapse
Well its not working properly, so no point
Sahaab said:
Could you post link when you get time, i still can't find
Click to expand...
Click to collapse
it's here:http://forum.xda-developers.com/xperia-t-v/themes-apps/port-conversations-4-4-4-xperia-z3-t2868641
it said there for xperia tx but it works fine on my xperia v
been using it for a couple days now
fixed conversations app and shud be workable on non root and all, anybody willing to test?
Sahaab said:
fixed conversations app and shud be workable on non root and all, anybody willing to test?
Click to expand...
Click to collapse
Also on AOSP?
WhiteNeo said:
Also on AOSP?
Click to expand...
Click to collapse
also added non-root version , so please test, it should
Sahaab said:
also added non-root version , so please test, it should
Click to expand...
Click to collapse
Force close on OmniRom.
Unfortunately, I cant provide a log for now. If you want to add aosp support in future, let me know. I will help you with logcats
WhiteNeo said:
Force close on OmniRom.
Unfortunately, I cant provide a log for now. If you want to add aosp support in future, let me know. I will help you with logcats
Click to expand...
Click to collapse
well i hopefully will soon enough
Sahaab said:
well i hopefully will soon enough
Click to expand...
Click to collapse
You just can't keep your contributions off the forum :laugh: lol. Cool port :good: will try it soon. If you can make a flashable zip with everything needed, It would be great
Omessy7 said:
You just can't keep your contributions off the forum :laugh: lol. Cool port :good: will try it soon. If you can make a flashable zip with everything needed, It would be great
Click to expand...
Click to collapse
hahaha XD
and just need this single apk
should work
nice nice again, srsly if I have u in front of me I'll kiss u xD
j/k dude, but great job... working in SP 4.3 .207 rooted.... but is the phone u have so no relevant xD
Anyone tested in CM11? can reach contacts app? (contacts photo)
btw u can try port Contacs app from Z3
QBerto said:
nice nice again, srsly if I have u in front of me I'll kiss u xD
j/k dude, but great job... working in SP 4.3 .207 rooted.... but is the phone u have so no relevant xD
Anyone tested in CM11? can reach contacts app? (contacts photo)
btw u can try port Contacs app from Z3
Click to expand...
Click to collapse
is there anything different in it? Contacts app is a lot of work

[Tutorial] Adding "Walkman" & "Movies" to Ultra Stamina Mode

In The Name of GOD​
Hi EveryOne
Here's a Tutorial on How to Add "Walkman" & "Movies" to Ultra Stamina Mode
{
"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"
}
Requirements:
1.USMHome.apk
2.Notepad ++ or any Editor
3.Apktool to Decompile apk
4.A Brain!
Tutorial:
1.First you need "USMHome.apk" (you can find it in system/app)
2.Decompile "USMHome.apk"
3.Open res/xml/settings_headers.xml
Add these Lines at the end of codes (like image below!)
Code:
<header android:icon="[B]@drawable/ic_walkman[/B]" android:id="[B]@id/walkman[/B]" android:title="[B]@string/walkman[/B]">
<intent android:targetPackage="com.sonyericsson.music" android:action="android.intent.action.MAIN" android:targetClass="com.sonyericsson.music.MusicActivity" />
</header>
<header android:icon="[B]@drawable/ic_movies[/B]" android:id="[B]@id/movies[/B]" android:title="[B]@string/movies[/B]">
<intent android:targetPackage="com.sonyericsson.video" android:action="android.intent.action.MAIN" android:targetClass="com.sonyericsson.video.browser.BrowserActivity" />
</header>
4. @drawable/ic_walkman & @drawable/ic_movies : This lines set the logo that is going to display in Setting
So you need "Walkman" & "Movies" Icon (you can use any png icon)
If you don't have the icons, you can download them from HERE
Next step is adding icons with right Dimension and Walkman & Moives icon must named ic_walkman & ic_movies in res/drawable-*dpi/
drawable-hdpi---------------------------------->48*48 Pixels
drawable-mdpi---------------------------------->32*32 Pixels
drawable-xhdpi--------------------------------->64*64 Pixels
drawable-xxhdpi-------------------------------->96*96 Pixels​
this icon will be show up in settings
5. @string/walkman & @string/movies : The Name that will Show in Setting
Open strings.xml and add this code
Code:
<string name="walkman">Walkman</string>
<string name="movies">Movies</string>
6. @id/walkman & @id/movies
Open res/values/ids.xml and add this code
Code:
<item type="id" name="walkman">false</item>
<item type="id" name="movies">false</item>
7.Recompile your Apk and Sign it
8. Transfer it to system/app and set Permissions
Note:
This Should work with any Xperia Rom that Support Ultra Stamina Mode.
I test it on my Xperia Z1 ST Ultimate Rom and it Worked Perfectly
So Test it on Your Own RISK
Updata:
if it's hard for you just replace this file
http://d-h.st/3Yy
Credits:
Madaditya : For his topic that teached me a lot
Hit Thanks if you find it helpful :good:​
Very Nice :good::good:
Awesome mahn you nailed it... Another form we were talking with @niaboc79 about adding this feature in his ROM and looks like you did it ... Can you add whatsapp also ?
shubham meena said:
Awesome mahn you nailed it... Another form we were talking with @niaboc79 about adding this feature in his ROM and looks like you did it ... Can you add whatsapp also ?
Click to expand...
Click to collapse
i didn't try it yet!
but in order to add whatsapp you need wifi connection
i think it's possible to add both of them
but what's the point of ultra stamina if you add wifi and another apps?
i Thought music and movie is more necessary than anything, so i just add them
Nice tutorial.:fingers-crossed:
Nice! Allthough if you're messing with /system/ you also need root, correct?
I believe you should add this requirement to the post (in big red letters) to avoid at least SOME questions in this matter.
sgiannouris said:
Nice! Allthough if you're messing with /system/ you also need root, correct?
I believe you should add this requirement to the post (in big red letters) to avoid at least SOME questions in this matter.
Click to expand...
Click to collapse
for changing it you need PC and flashtool
if you want replace file with Explore you will need root
but you can replace it with a flashable zip (or other ways) "without root"
is this work for 4.3 ?
Can we add user app(installed on /data/app) too?
Sent from my D6503 using Tapatalk 4
devilmaycry2020 said:
is this work for 4.3 ?
Click to expand...
Click to collapse
do you have ultra stamina in 4.3?
if yes, so it must work
hw0603 said:
Can we add user app(installed on /data/app) too?
Sent from my D6503 using Tapatalk 4
Click to expand...
Click to collapse
yes you can but not with this TUT
i will write new TUT for it
actually in new TUT i will tell you have to customize ultra stamina (how to add app in launcher and ......)
so wait for it :good:
yes you can but not with this TUT
i will write new TUT for it
actually in new TUT i will tell you have to customize ultra stamina (how to add app in launcher and ......)
so wait for it :good:[/QUOTE said:
OK Thanks. I gonna wait for that TUT
Click to expand...
Click to collapse
Considering that Internet browsing is disabled in ultra stamina, would FM radio works?
I regularly use the fm radio and it would be real good if it could be used in ultra stamina mode.
HotKillerZzz said:
Considering that Internet browsing is disabled in ultra stamina, would FM radio works?
I regularly use the fm radio and it would be real good if it could be used in ultra stamina mode.
Click to expand...
Click to collapse
i have fm radio in ultra stamina
it's enabled in stock
Very good guide Thanks
I tried to Z2 but I have this message
some ideas?
i have use 23...167 Rom 4.4.4 for Z2
Ambor said:
Very good guide Thanks
I tried to Z2 but I have this message
some ideas?
i have use 23...167 Rom 4.4.4 for Z2
Click to expand...
Click to collapse
yes
there is another guide
but i was busy
can you give me your SuperStamina.apk from System/app
i think i know how to make it work
samadipoor2 said:
yes
there is another guide
but i was busy
can you give me your SuperStamina.apk from System/app
i think i know how to make it work
Click to expand...
Click to collapse
Yes
Ambor said:
Yes
Click to expand...
Click to collapse
just replace and set permission
for preview of new guide
i add Movies to launcher
see it yourself
http://d-h.st/3Yy
samadipoor2 said:
just replace and set permission
for preview of new guide
i add Movies to launcher
see it yourself
http://d-h.st/3Yy
Click to expand...
Click to collapse
Thanks Bro will check
Bro works Thanks. Surely i will mention you in 2.2 MW
Ambor said:
Thanks Bro will check
Bro works Thanks. Surely i will mention you in 2.2 MW
Click to expand...
Click to collapse
you are welcome :good:
hope you and other enjoy it
samadipoor2 said:
you are welcome :good:
hope you and other enjoy it
Click to expand...
Click to collapse
Sure. Again thanks

[Guide] Add Xperia battery icon to cm SystemUI

{
"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"
}
Requirements:
-Knowledge on how to use apktool
-Notepad++
1- Decompile your SystemUI.apk
2- Download THIS ZIP and extract it
2- Move the extracted files to /res/
3- Open Notepad++, press Ctrl + F and choose the "Find in Files" tab
4- Set the directory to the layout folder of you decompiled systemUI
5- Find "<com.android.systemui.BatteryLevelTextView" and replace with "<com.android.systemui.BatteryLevelTextView android:background="@drawable/somc_sys_battery_percent_am" android:gravity="center" "
it should look like this:
6- Go to /res/values/dimens.xml
7- Find "battery_level_text_size" and set the value of it to "9.0sp"
8- Recompile and push it to your device
9- Set the Battery status style on settings to Text
10- Enjoy
Also checkout THIS GUIDE by abhishekr700
Confirmed working on cm12.1 bro....
Thanks... :good::good::good:
afah_me said:
Confirmed working on cm12.1 bro....
Thanks... :good::good::good:
Click to expand...
Click to collapse
Nice theme! Which is it?
STRYDER~007 said:
Nice theme! Which is it?
Click to expand...
Click to collapse
This is future update of my theme called "colorful xperia v1.6"
but WIP
nice guide sir :good:
but there's no charging indicator
take a look at this method http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361/
it works for me :laugh:
afah_me said:
This is future update of my theme called "colorful xperia v1.6"
but WIP
Click to expand...
Click to collapse
Nice work! Looking forward to use it..
can support to cm7?
Hi, I have a question, the battery level is not in the center of the battery icon for me. I feel like it is a bit more to the left and I want to move it a little to the right.. What value do I edit to accomplish that?
Edit: Nvm found what to edit to get what I needed
Lovely Guide ,,,
U r the boss
Araib93 said:
Hi, I have a question, the battery level is not in the center of the battery icon for me. I feel like it is a bit more to the left and I want to move it a little to the right.. What value do I edit to accomplish that?
Edit: Nvm found what to edit to get what I needed
Click to expand...
Click to collapse
How did you do it? Thanks!
vjtigas said:
How did you do it? Thanks!
Click to expand...
Click to collapse
Look for battery_padding_end and change its value from 2.0 to -2.0, also hit thanks that should do the trick
idid idamrep said:
nice guide sir :good:
but there's no charging indicator
take a look at this method http://forum.xda-developers.com/android/themes/how-to-change-battery-icon-kitkat-rom-t2919361/
it works for me :laugh:
Click to expand...
Click to collapse
Please, how you do that because I don't understanding any thing from this method?
And I want know what is your keyboard name?
Thanks....
I cant decompile nothing on Windows 10, can you help me please?
Hi folks, thanks for the nice thread. I added to my CM12.1 for Sony Scorpion (Xperia Z3 tablet compact). If somebody compiles, can pick the code here. https://github.com/GeyerA/platform_frameworks_base/commit/307ab760c54324c3437fbf0387af3b043015f4fa
@naheel azawy, thanks for the tutorial. How to add battery charging icon next to battery icon?
I can not find the folder " values" in ressurection remix with android 6.0.1
who tried this on cm13 odexed ?
anagramgenius said:
@naheel azawy, thanks for the tutorial. How to add battery charging icon next to battery icon?
Click to expand...
Click to collapse
this is i want to ask
naheel azawy said:
Requirements:
-Knowledge on how to use apktool
-Notepad++
1- Decompile your SystemUI.apk
2- Download THIS ZIP and extract it
2- Move the extracted files to /res/
3- Open Notepad++, press Ctrl + F and choose the "Find in Files" tab
4- Set the directory to the layout folder of you decompiled systemUI
5- Find "<com.android.systemui.BatteryLevelTextView" and replace with "<com.android.systemui.BatteryLevelTextView android:background="@drawable/somc_sys_battery_percent_am" android:gravity="center" "
it should look like this:
6- Go to /res/values/dimens.xml
7- Find "battery_level_text_size" and set the value of it to "9.0sp"
8- Recompile and push it to your device
9- Set the Battery status style on settings to Text
10- Enjoy
Also checkout THIS GUIDE by abhishekr700
Click to expand...
Click to collapse
look at mine
Will it work in cm11??

Categories

Resources