[GUIDE][2.3+]Add real-time CPU info to Statusbar

Search This thread

mariozawa

Senior Member
Jul 1, 2012
443
1,015
Malolos, Bulacan
www.facebook.com
I'm not responsible to any damage to your phone.
I'm the only responsible for making it cooler by 1%.

What is this?
Just a CPU stat.

Features
Show/Hide
Show/Hide Governor

How to use
Download the attached files.

Install CPUSpied.apk
(Normal install, Special Install,Push whatever you like)

Decompile your SystemUI.apk
Extract the smali files.
Paste it to your smali directory.
SystemUI.apk/smali/HERE

Go to res/layout/status_bar.xml
add this to anywhere you like.
In my condition I want to add it to left side so I will put it before
<com.android.systemui.statusbar.IconMerger

Here is the code.

PHP:
<potato.mariozawa.statusbar.CPUSpy android:textColor="#ffffff" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />



If you have errors in recompiling try to use other APK multi-tool specially to our friends using mobile APK tool.

Screenies

attachment.php


Credits
PotatoInc
Our friends from Lenox Evolution

If you want to use this to your awesome ROM/Theme beware this will add coolness :p
Just put us in the credits side


 

Attachments

  • cuu.jpg
    cuu.jpg
    58.8 KB · Views: 12,646
  • CPUSpied.apk
    694.7 KB · Views: 1,710
  • smali.zip
    3.3 KB · Views: 1,268

icedventimocha

Senior Member
Real-time CPU ussage updated every second ;)

Sent from my GT-I9300 using Tapatalk

Nice work. Gonna do this up when I get home.

EDIT: Easy as pie. Would like to point out that you can also place this in the dropdown header (I did as my status bar is pretty full). Just add it to the last linear layout in status_bar_expanded_header.xml

asyju7u2.jpg


EDIT AGAIN: looks even better in status_bar_expanded.xml

use9u7uh.jpg

Sent from my Galaxy Note II
 
Last edited:

mariozawa

Senior Member
Jul 1, 2012
443
1,015
Malolos, Bulacan
www.facebook.com
Nice work. Gonna do this up when I get home.

EDIT: Easy as pie. Would like to point out that you can also place this in the dropdown header (I did as my status bar is pretty full). Just add it to the last linear layout in status_bar_expanded_header.xml



EDIT AGAIN: looks even better in status_bar_expanded.xml


Sent from my Galaxy Note II


Cool :D

do we need deodex rom for this mod ??
Yes you need.:good:
 

RBDoMGaM

Senior Member
Aug 1, 2012
139
74
30
Ouvidor
Samsung Galaxy S9
Working good in my Genesis GP-353 AOSP ICS, thanks!
Only a sugestion to you, i use few mods by you and PotatoInc and one mod to show ram usage bar in statusbar expanded would be perfect :D
Thanks again for your awesome work!
 

Attachments

  • ss1.png
    ss1.png
    27.1 KB · Views: 258
Last edited:

vampir4997

Senior Member
Jul 18, 2010
1,505
248
Can someone help me out with this please. Pm me ty

Sent from my Nexus 5 using XDA Premium 4 mobile app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    I'm not responsible to any damage to your phone.
    I'm the only responsible for making it cooler by 1%.

    What is this?
    Just a CPU stat.

    Features
    Show/Hide
    Show/Hide Governor

    How to use
    Download the attached files.

    Install CPUSpied.apk
    (Normal install, Special Install,Push whatever you like)

    Decompile your SystemUI.apk
    Extract the smali files.
    Paste it to your smali directory.
    SystemUI.apk/smali/HERE

    Go to res/layout/status_bar.xml
    add this to anywhere you like.
    In my condition I want to add it to left side so I will put it before
    <com.android.systemui.statusbar.IconMerger

    Here is the code.

    PHP:
    <potato.mariozawa.statusbar.CPUSpy android:textColor="#ffffff" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />



    If you have errors in recompiling try to use other APK multi-tool specially to our friends using mobile APK tool.

    Screenies

    attachment.php


    Credits
    PotatoInc
    Our friends from Lenox Evolution

    If you want to use this to your awesome ROM/Theme beware this will add coolness :p
    Just put us in the credits side


    3
    First LOL. Hahaha this is another top grossing mod. And ill be waiting for the Portal to add this. :D Hihih. Ill be handsome now. hahahah
    2
    Real-time CPU ussage updated every second ;)

    Sent from my GT-I9300 using Tapatalk

    Nice work. Gonna do this up when I get home.

    EDIT: Easy as pie. Would like to point out that you can also place this in the dropdown header (I did as my status bar is pretty full). Just add it to the last linear layout in status_bar_expanded_header.xml

    asyju7u2.jpg


    EDIT AGAIN: looks even better in status_bar_expanded.xml

    use9u7uh.jpg

    Sent from my Galaxy Note II
    2
    Nice work. Gonna do this up when I get home.

    EDIT: Easy as pie. Would like to point out that you can also place this in the dropdown header (I did as my status bar is pretty full). Just add it to the last linear layout in status_bar_expanded_header.xml



    EDIT AGAIN: looks even better in status_bar_expanded.xml


    Sent from my Galaxy Note II


    Cool :D

    do we need deodex rom for this mod ??
    Yes you need.:good:
    1
    Neat guide. Just one question before I start, is the CPU frequency just the max clock setting or does it show cpu load?

    Sent from my Galaxy Note II

    Real-time CPU ussage updated every second ;)

    Sent from my GT-I9300 using Tapatalk