Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,820 Members 48,971 Now Online
XDA Developers Android and Mobile Development Forum

[Tutorial]Howto Add Cpu Control & Stats in Settings.apk !

Tip us?
 
Pandemic
Old
(Last edited by Pandemic; 16th May 2014 at 02:56 PM.)
#1  
Pandemic's Avatar
Senior Member - OP
Thanks Meter 11228
Posts: 15,033
Join Date: Aug 2010
Location: MePpEl

 
DONATE TO ME
Lightbulb [Tutorial]Howto Add Cpu Control & Stats in Settings.apk !

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




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
Attached Files
File Type: zip Black & White CpuSettings and Stats.zip - [Click for QR Code] (382.4 KB, 818 views)



... My Projects & Work ...
 

... Latest ...
>> [XZ]MoonWalker SuperB V3 <<
>> [XZL]MoonWalker SuperB V2 <<
-----------------------
||> All My Work <||


The Following 45 Users Say Thank You to Pandemic For This Useful Post: [ Click to Expand ]
 
Pandemic
Old
#2  
Pandemic's Avatar
Senior Member - OP
Thanks Meter 11228
Posts: 15,033
Join Date: Aug 2010
Location: MePpEl

 
DONATE TO ME
Enjoy this tut !!



... My Projects & Work ...
 

... Latest ...
>> [XZ]MoonWalker SuperB V3 <<
>> [XZL]MoonWalker SuperB V2 <<
-----------------------
||> All My Work <||


The Following 6 Users Say Thank You to Pandemic For This Useful Post: [ Click to Expand ]
 
Rajeev
Old
#3  
Rajeev's Avatar
Senior Member
Thanks Meter 7748
Posts: 7,028
Join Date: Nov 2012
Location: Chennai , I N D I A

 
DONATE TO ME
Very very nyc and useful guide bro... Not as much of hard.. Its looking very easy for me.. Surely will try
If You Like My Work Please Consider A Small Donation

For Donating Click Below

 
Please Do The Following:
Sign In To Your PayPal Account Page
Go To 'Send Payment'
Enter My Email ID "dipesh.febrius@gmail.com"
Option "Personal Payment" Doesn't Work For India, So Kindly Set "Online Purchases". And Check Goods or Service (Preferably Service)
Make The Payment of The Desired Amount of Donation You Want To Send.
Thank You For Your Kind Donations!
The Following User Says Thank You to Rajeev For This Useful Post: [ Click to Expand ]
 
Pandemic
Old
#4  
Pandemic's Avatar
Senior Member - OP
Thanks Meter 11228
Posts: 15,033
Join Date: Aug 2010
Location: MePpEl

 
DONATE TO ME
Quote:
Originally Posted by Rajeev View Post
Very very nyc and useful guide bro... Not as much of hard.. Its looking very easy for me.. Surely will try
thanks bro @Rajeev
its kinda easy todo



... My Projects & Work ...
 

... Latest ...
>> [XZ]MoonWalker SuperB V3 <<
>> [XZL]MoonWalker SuperB V2 <<
-----------------------
||> All My Work <||


The Following User Says Thank You to Pandemic For This Useful Post: [ Click to Expand ]
 
dipesh1502
Old
#5  
dipesh1502's Avatar
Recognized Themer
Thanks Meter 3561
Posts: 2,327
Join Date: Sep 2013
Location: MUMbai

 
DONATE TO ME
Very nyc tut


If You Like My Work Please Consider A Small Donation


For Donating Click Here
 
please do the following:
Sign in to your PayPal account page
Go to 'Send Payment'
Enter my email id "dipesh.febrius@gmail.com"
option "Personal payment" doesn't work for India, please set "Online purchases". and check Goods or Service (preferably service)
Make the payment of the desired amount of donation you want to send.
Thank you for your kind donations!
The Following User Says Thank You to dipesh1502 For This Useful Post: [ Click to Expand ]
 
AndroidNoob69
Old
#6  
AndroidNoob69's Avatar
Senior Member
Thanks Meter 439
Posts: 1,321
Join Date: Jun 2013
Location: Singapore

 
DONATE TO ME
Good work bro


My Work

Remember the BUTTON!
Phones:
Xperia P(White): Paranoid Android 4.43 Stable by percy_g2
Xperia Neo V(Blue): Carbon Rom by vishal_android_freak

The Following User Says Thank You to AndroidNoob69 For This Useful Post: [ Click to Expand ]
 
DaRk-L0rD
Old
#7  
DaRk-L0rD's Avatar
Recognized Contributor / Themer
Thanks Meter 4659
Posts: 1,951
Join Date: Sep 2012

 
DONATE TO ME

If you like my work, please consider buying me a beer! Thanks in advance!
Our Themes on Playstore

SONY XPERIA Z1 & T


MY CONTRIBUTIONS
The Following User Says Thank You to DaRk-L0rD For This Useful Post: [ Click to Expand ]
 
Pandemic
Old
#8  
Pandemic's Avatar
Senior Member - OP
Thanks Meter 11228
Posts: 15,033
Join Date: Aug 2010
Location: MePpEl

 
DONATE TO ME
Quote:
Originally Posted by dipesh1502 View Post
Very nyc tut
Quote:
Originally Posted by AndroidNoob69 View Post
Good work bro
Quote:
Originally Posted by DaRk-L0rD View Post
Thanks brothers and teammates @dipesh1502, @AndroidNoob69 and @DaRk-L0rD

Sent From Cybertron With My Powerfull Xperia P



... My Projects & Work ...
 

... Latest ...
>> [XZ]MoonWalker SuperB V3 <<
>> [XZL]MoonWalker SuperB V2 <<
-----------------------
||> All My Work <||


The Following User Says Thank You to Pandemic For This Useful Post: [ Click to Expand ]
 
Pandemic
Old
#9  
Pandemic's Avatar
Senior Member - OP
Thanks Meter 11228
Posts: 15,033
Join Date: Aug 2010
Location: MePpEl

 
DONATE TO ME
13 downloads
5 thanks
Thanks lazy ones !



... My Projects & Work ...
 

... Latest ...
>> [XZ]MoonWalker SuperB V3 <<
>> [XZL]MoonWalker SuperB V2 <<
-----------------------
||> All My Work <||


The Following 3 Users Say Thank You to Pandemic For This Useful Post: [ Click to Expand ]
 
jancsessz
Old
#10  
jancsessz's Avatar
Senior Member
Thanks Meter 533
Posts: 441
Join Date: Aug 2013

 
DONATE TO ME
I added my xperia sp official 4.3 settings and not avalibe this development.
Please help.
For Donating Click Here
 
Sign in to your PayPal account page
Go to 'Send Payment'
Enter my email id "jancsessz@citromail.hu"
option "Personal payment" doesn't work for Hungary, please set "Online purchases". and check Goods or Service (preferably service)
Make the payment of the desired amount of donation you want to send.
Thank you for your kind donations

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes