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

Search This thread
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


2epsgg2.png


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

33z4fbq.jpg


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>

w2blub.jpg


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​
 
Last edited:

jancsessz

Senior Member
Aug 16, 2013
724
1,160
I added my xperia sp official 4.3 settings and not avalibe this development.
Please help.
 

Inl

Member
Feb 2, 2014
42
20
I dont know what you mean be clear please !

Btw
Wow someone founed this thread.. Great !!

Sent From Cybertron With My Powerfull Xperia P

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?
 

DaRk-L0rD

Senior Member
Sep 29, 2012
2,139
5,462
Isla Muerta
this is just adding an app to settings? this is really universal not just for this device.

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 ;)
 

Ricky Divjakovski

Recognized Developer / Inactive RC
Feb 4, 2013
5,255
7,678
28
Sydney
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 ;)

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!
 
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
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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    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


    2epsgg2.png


    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

    33z4fbq.jpg


    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>

    w2blub.jpg


    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​
    7
    Enjoy this tut !!
    3
    13 downloads
    5 thanks :rolleyes:
    Thanks lazy ones !
    2
    Hey @Pandemic, sorry if i was spamming your thread but i have conclusion here.

    What you wrote :

    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=""[COLOR="RoyalBlue"]it.sineo.android.noFrillsCP UClassic[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="[COLOR="rgb(65, 105, 225)"]it.sineo.android.noFrillsCPUC lassic.activity.MainActivity[/COLOR]" />
    </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.[COLOR="RoyalBlue"]HomeAc tivity[/COLOR]" />
    </PreferenceScreen>

    It should be :

    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="[COLOR="red"]it.sineo.android.noFrillsCPUClassic[/COLOR]" android:action="android.intent.action.MAIN" android:targetClass="[COLOR="Red"]it.sineo.android.noFrillsCPUClassic.activity.MainActivity[/COLOR]" />
    </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="[COLOR="red"]com.bvalosek.cpuspy.ui.HomeActivity[/COLOR]" />
    </PreferenceScreen>
    [COLOR="Red"]</PreferenceCategory>[/COLOR]

    Clear me if i wrong guys :D
    1
    hi mini,
    will you integrate this mod on V8???
    hope you release V8 soon :p

    Already done :)
    also added some other usefull features to v8!!
    Yes you can expect to see v8 soon...
    But back to OP :)