Post Reply

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

OP Pandemic

1st February 2014, 02:26 PM   |  #1  
Pandemic's Avatar
OP Senior Member
Flag MePpEl
Thanks Meter: 11,914
 
15,671 posts
Join Date:Joined: Aug 2010
Donate to Me
More
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, 990 views)
Last edited by Pandemic; 16th May 2014 at 02:56 PM.
The Following 51 Users Say Thank You to Pandemic For This Useful Post: [ View ]
1st February 2014, 02:27 PM   |  #2  
Pandemic's Avatar
OP Senior Member
Flag MePpEl
Thanks Meter: 11,914
 
15,671 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Enjoy this tut !!
The Following 6 Users Say Thank You to Pandemic For This Useful Post: [ View ]
1st February 2014, 02:53 PM   |  #3  
Rajeev's Avatar
Senior Member
Flag Chennai , I N D I A
Thanks Meter: 10,216
 
7,978 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Very very nyc and useful guide bro... Not as much of hard.. Its looking very easy for me.. Surely will try
The Following User Says Thank You to Rajeev For This Useful Post: [ View ]
1st February 2014, 02:56 PM   |  #4  
Pandemic's Avatar
OP Senior Member
Flag MePpEl
Thanks Meter: 11,914
 
15,671 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by Rajeev

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
The Following User Says Thank You to Pandemic For This Useful Post: [ View ]
1st February 2014, 03:24 PM   |  #5  
dipesh1502's Avatar
Recognized Themer
Flag MUMbai
Thanks Meter: 3,712
 
2,365 posts
Join Date:Joined: Sep 2013
Donate to Me
More
Very nyc tut
The Following User Says Thank You to dipesh1502 For This Useful Post: [ View ]
1st February 2014, 03:26 PM   |  #6  
AndroidNoob69's Avatar
Senior Member
Flag Singapore
Thanks Meter: 543
 
1,419 posts
Join Date:Joined: Jun 2013
Donate to Me
More
Good work bro
The Following User Says Thank You to AndroidNoob69 For This Useful Post: [ View ]
1st February 2014, 04:16 PM   |  #7  
DaRk-L0rD's Avatar
Recognized Contributor / Themer
Isla de Muerta
Thanks Meter: 4,904
 
2,007 posts
Join Date:Joined: Sep 2012
Donate to Me
More
The Following User Says Thank You to DaRk-L0rD For This Useful Post: [ View ]
1st February 2014, 04:45 PM   |  #8  
Pandemic's Avatar
OP Senior Member
Flag MePpEl
Thanks Meter: 11,914
 
15,671 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by dipesh1502

Very nyc tut

Quote:
Originally Posted by AndroidNoob69

Good work bro

Quote:
Originally Posted by DaRk-L0rD

Thanks brothers and teammates @dipesh1502, @AndroidNoob69 and @DaRk-L0rD

Sent From Cybertron With My Powerfull Xperia P
The Following User Says Thank You to Pandemic For This Useful Post: [ View ]
2nd February 2014, 04:56 PM   |  #9  
Pandemic's Avatar
OP Senior Member
Flag MePpEl
Thanks Meter: 11,914
 
15,671 posts
Join Date:Joined: Aug 2010
Donate to Me
More
13 downloads
5 thanks
Thanks lazy ones !
The Following 3 Users Say Thank You to Pandemic For This Useful Post: [ View ]
15th February 2014, 09:22 AM   |  #10  
jancsessz's Avatar
Senior Member
Thanks Meter: 591
 
478 posts
Join Date:Joined: Aug 2013
Donate to Me
More
I added my xperia sp official 4.3 settings and not avalibe this development.
Please help.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Sony Cross-Device Development General by ThreadRank