[MOD] [JVP] Statusbar Tweaks - EDT - 6/14/11
[MOD] [JVP] Statusbar Tweaks - EDT - for Galaxy S
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.
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.
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
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)
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.
- 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)
-- initial release
- dBm text!
- your suggestions... maybe