[MOD] [JVP] Statusbar Tweaks - EDT - 6/14/11

Search This thread

Romanbb

Inactive Recognized Developer
Sep 18, 2009
3,591
6,961
Seattle
aokp.co
Hey guys,

So in order to prepare for our (eventual) Vibrant Gingerbread release I started working on porting a couple of my mods to JVP just to learn and this just sort of happened.

With Gingerbread, I only needed to change one thing in the system, SystemUI.apk. The rest is set with my app. Furthermore, with how the app is setup, these mods can easily be ported to (I'm guessing) any Gingerbread ROM.

How the mods work: with how it is setup, there's almost no smali editing (I'm just as surprised as you are). I simply coded widgets in Java, and decompiled the new Smali classes and put them into SystemUI. Then all I had to do was change the SystemUI statusbar.xml layout to include my new widget. However, I had to add in some smali code to get the battery & the signal bar to toggle, however, they're very easy edits :). Now on to the good stuff.


Installing
You can install the EDT Tweaks app or you can push it to /system/app
You must push SystemUI.apk to /system/app

I don't want to make a flashable quite yet because I want more experienced users to test this out, etc.

ROM Developers
You may use this in your ROM, however I have a few conditions:
-Keep the EDT "About" section intact. You may add to it, but do NOT remove anything from it.
-Do not rename the EDT Tweaks app, but you may provide your own icon for it

kanging is bad mkay

Sources
For people who wish to incorporate this into their own framework or modify it the sources are in my github (link in my sig, I suck at github btw)

Porting
As I said earlier, there's minimal smali editing. So. To port this to your SystemUI.apk you need to first decompile both of our SystemUIs, then grab the extra files from mine (BatteryText*.smali & Clock*.smali) and put them in yours.

Next, you can just grab my SystemUI.apk/res/layout/status_bar.xml and put it in the same location as yours. I doubt yours has changed much :).

Alright almost done! Now to get the icons toggling (my text widgets will toggle without the following smali edits) you can just copy my StatusBarPolicy.smali over to yours OR if you really want to know the edits I did (if you're not using a Galaxy S based phone) open up com/android/systemui/statusbar/policy/StatusBarPolicy.smali and search for "# start." All of my additions start with it and will end with a similar tag. I can help if you like, just message me.

Bugs
- any modifications to the icons will take a minute to update (signal bar toggle & battery icon toggle, just unplug/replug to toggle it, or it will show when percent goes down)


Changelog
6/14/11
-- initial release

To Do
- dBm text!
- your suggestions... maybe

Screenshots



Woops, I may have posted this in the wrong section. Sorry if that's the case.
 

Attachments

  • SystemUI.apk
    218.1 KB · Views: 5,499
  • EDT.apk
    111.8 KB · Views: 13,401
  • JVP_StatasbarTweeks_CWM_615.zip
    414.1 KB · Views: 5,325
Last edited:

f3n0m3no

Senior Member
Jun 13, 2010
386
86
Constanta
Please make it flashable. This way you can attract more users and who knows maybe some donations since this is a very good idea. Keep up the good work

Sent from my GT-I9000 using XDA App
 

zs0mby

Senior Member
Jan 22, 2011
182
37
Targu Mures
can you modify the app so it changes the battery icon colors not the battery text style color that you made? in my opinion it would be more awesome :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 87
    Hey guys,

    So in order to prepare for our (eventual) Vibrant Gingerbread release I started working on porting a couple of my mods to JVP just to learn and this just sort of happened.

    With Gingerbread, I only needed to change one thing in the system, SystemUI.apk. The rest is set with my app. Furthermore, with how the app is setup, these mods can easily be ported to (I'm guessing) any Gingerbread ROM.

    How the mods work: with how it is setup, there's almost no smali editing (I'm just as surprised as you are). I simply coded widgets in Java, and decompiled the new Smali classes and put them into SystemUI. Then all I had to do was change the SystemUI statusbar.xml layout to include my new widget. However, I had to add in some smali code to get the battery & the signal bar to toggle, however, they're very easy edits :). Now on to the good stuff.


    Installing
    You can install the EDT Tweaks app or you can push it to /system/app
    You must push SystemUI.apk to /system/app

    I don't want to make a flashable quite yet because I want more experienced users to test this out, etc.

    ROM Developers
    You may use this in your ROM, however I have a few conditions:
    -Keep the EDT "About" section intact. You may add to it, but do NOT remove anything from it.
    -Do not rename the EDT Tweaks app, but you may provide your own icon for it

    kanging is bad mkay

    Sources
    For people who wish to incorporate this into their own framework or modify it the sources are in my github (link in my sig, I suck at github btw)

    Porting
    As I said earlier, there's minimal smali editing. So. To port this to your SystemUI.apk you need to first decompile both of our SystemUIs, then grab the extra files from mine (BatteryText*.smali & Clock*.smali) and put them in yours.

    Next, you can just grab my SystemUI.apk/res/layout/status_bar.xml and put it in the same location as yours. I doubt yours has changed much :).

    Alright almost done! Now to get the icons toggling (my text widgets will toggle without the following smali edits) you can just copy my StatusBarPolicy.smali over to yours OR if you really want to know the edits I did (if you're not using a Galaxy S based phone) open up com/android/systemui/statusbar/policy/StatusBarPolicy.smali and search for "# start." All of my additions start with it and will end with a similar tag. I can help if you like, just message me.

    Bugs
    - any modifications to the icons will take a minute to update (signal bar toggle & battery icon toggle, just unplug/replug to toggle it, or it will show when percent goes down)


    Changelog
    6/14/11
    -- initial release

    To Do
    - dBm text!
    - your suggestions... maybe

    Screenshots



    Woops, I may have posted this in the wrong section. Sorry if that's the case.
    2
    Please make it flashable. This way you can attract more users and who knows maybe some donations since this is a very good idea. Keep up the good work

    Sent from my GT-I9000 using XDA App

    Ok, as requested, flashable attached in the OP. Let me know if it works okay for you.
    1
    btw i love such posts or simmilar:
    i used it on my phone and it does not work? why, any ideas?
    we all have crystal balls hehe
    1
    Testing and working with 2.3.5 JVU!

    Is it possible to also costumize the bluetooth (on and off) and signal icons (good, bad and without signal) with diferent colors?
    Thanks