[HELP] Custom battery icons for EB 4.0.4 - T-Mobile LG G2x

I love the EB ROM and the ICS look and feel. However I can't stand the battery icon and percentage distributions. I'm trying to create my own.
I went into the systemui.apk, decompiled with APK multi-tool, edited stat_sys_battery and stat_sys_battery_charge XMLs and swapped PNGs.
I edited the sys_battery XML to look like this:
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
All the way until I got to 100. I did the same thing for the sys_battery_charge XML but of course in its specific structure but the same method.
Compiled APK and set permissions to RW R R and placed into system/app and replaced old systemui.apk.
The new battery Icon appears and looks great but it is NOT accurately portraying the phones real battery percentage level. I even went as far as editing the same XMLs in the framework-res.apk but it had ZERO affect on my issue.
Any help please is GREATLY appreciated! This is my first attempt at doing any coding/theming/etc. so I am a complete newbie at this kinda stuff.

Screenshot
Sent from my LG-P999 using xda premium

Got it up and running. Look in EB 4.0.4 AOSP ROM thread for download.

Related

[Guide]Smooth Spinners for GB and ICS - HyperDroid

This Guide is intended for rom developers/cooks to add some visual candy for they roms.
All credits are due to ihlades, and we would want to thank him for all his efforts to the Open Source community, a true example of a respected developer and we are very proud to have him here at XDA...Thanks!!, to pongster who has been sharing this since he opensourced his GBX project over at the HD2 forums, and all the great devs who help other users into becoming true modders, thanks!!
We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).
you must have basic compiling/decompiling knowledge and already have the tools set up to it to edit xmls.
The xmls are located at framework-res.apk/res/drawable
This is the list of the xmls to edit
progress_large.xml
progress_large_white.xml
progress_medium.xml
progress_medium_white.xml
progress_small.xml
progress_small_titlebar.xml
progress_small_white
search_spinner.xml
copy and paste replacing current code with this code into them
progress_large.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_76" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_large_white.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_76" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_medium.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_48" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_medium_white.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_48" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_small.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_small_titlebar.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
progress_small_white.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_white_16" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
search_spinner.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_20" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
then compile back.
If you noticed, all we are doing is increasing the frames count in the same time, giving the spinners the smooth animation it deserves
here are the xmls zipped uncompiled for your commodity, just replace them in framework-res.apk/res/drawable, then compile back.
and here is a vrtheme for it, it should work in any device (untested and dont come crying here it doesnt work, if it doesnt, then do the whole process which is about 1 min if you know what you are doing)
Great tutorial this new year!
You are the man Doc
Any screenshots from GB? I can try with ICS
neobuddy89 said:
Any screenshots from GB? I can try with ICS
Click to expand...
Click to collapse
Screenshots? Impossible, you will need a video for it...ill give u a hint frames/sec
Try to search for hyperdroid in youtube, there are plenty of videos there. Look at the spinnibg circle when the device is "thinking", its not pause like on stock, its smooth
doctorcete said:
We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).
Click to expand...
Click to collapse
Thank you very much for this interesting job.
But what's about Sense GB ROMs?
I've edited xml files according your tutorial in the framework-res.apk in my 3.5 Sense ROM for HD2 and received permanent FC of HTC Sense.
Any advice?
alexdoux25 said:
Thank you very much for this interesting job.
But what's about Sense GB ROMs?
I've edited xml files according your tutorial in the framework-res.apk in my 3.5 Sense ROM for HD2 and received permanent FC of HTC Sense.
Any advice?
Click to expand...
Click to collapse
FC?, u edited and compiled framework?, I modded sense before (HTC Desire HD), and it fid not gave me problems. Upload your framework, Ill do it for ya. But it should work when compiling framework-res.apk.
doctorcete said:
FC?, u edited and compiled framework?, I modded sense before (HTC Desire HD), and it fid not gave me problems. Upload your framework, Ill do it for ya. But it should work when compiling framework-res.apk.
Click to expand...
Click to collapse
Thanks once more.
I've solved FC problems already.
It was my mistake compiling apk. Now everything is OK.
hey, i jz tried it out on xperia x10 and its working.
jz to report
alexdoux25 said:
Thanks once more.
I've solved FC problems already.
It was my mistake compiling apk. Now everything is OK.
Click to expand...
Click to collapse
Great, i was sure there was a nonsense prob, glad u figured it out.
xcxa23 said:
hey, i jz tried it out on xperia x10 and its working.
jz to report
Click to expand...
Click to collapse
, its a nice mod isnt it?
doctorcete said:
This Guide is intended for rom developers/cooks to add some visual candy for they roms.
All credits are due to ihlades, and we would want to thank him for all his efforts to the Open Source community, a true example of a respected developer and we are very proud to have him here at XDA...Thanks!!, to pongster who has been sharing this since he opensourced his GBX project over at the HD2 forums, and all the great devs who help other users into becoming true modders, thanks!!
We (Hyperdroid Team) have been using this mod in three devices now (SGT, HD2 and S2), so we are confident it will work in any android based device running gingerbread (we have not tested yet on ICS).
you must have basic compiling/decompiling knowledge and already have the tools set up to it to edit xmls.
The xmls are located at framework-res.apk/res/drawable
This is the list of the xmls to edit
progress_large.xml
progress_large_white.xml
progress_medium.xml
progress_medium_white.xml
progress_small.xml
progress_small_titlebar.xml
progress_small_white
search_spinner.xml
copy and paste replacing current code with this code into them
Code:
<?xml version="1.0" encoding="UTF-8"?>
<animated-rotate android:drawable="@drawable/spinner_black_20" android:pivotX="50.0%" android:pivotY="50.0%" android:frameDuration="25" android:framesCount="48"
xmlns:android="http://schemas.android.com/apk/res/android" />
then compile back.
If you noticed, all we are doing is increasing the frames count in the same time, giving the spinners the smooth animation it deserves
here are the xmls zipped uncompiled for your commodity, just replace them in framework-res.apk/res/drawable, then compile back.
and here is a vrtheme for it, it should work in any device (untested and dont come crying here it doesnt work, if it doesnt, then do the whole process which is about 1 min if you know what you are doing)
Click to expand...
Click to collapse
Will it work with Froyo on my Galaxy 3?
absolutly love this mod on my Galaxy note..
a question though - can anything be done to smooth out the progress bar ?
Mitch
mitchsub said:
absolutly love this mod on my Galaxy note..
a question though - can anything be done to smooth out the progress bar ?
Mitch
Click to expand...
Click to collapse
Yes there is, as a matter of fact we use that mod aswell.
At mobile right now so cant give u specifics, but that is related to progressbar, adding more png to drawable hdpi and to xml that call for them, I will get back to you on that one.
If you notice, this are very simple moda that make our devices better. Very simple ones.
doctorcete said:
Yes there is, as a matter of fact we use that mod aswell.
At mobile right now so cant give u specifics, but that is related to progressbar, adding more png to drawable hdpi and to xml that call for them, I will get back to you on that one.
If you notice, this are very simple moda that make our devices better. Very simple ones.
Click to expand...
Click to collapse
would very much appreciate that mate - hopefully the chef's will incorporate them in their up and coming ROM's although I might have a play myself
three things I don't like about my Note is -
1. Spinners - which you have sorted
2. Progress Bar - which I would like to smooth out
3. Unlock and Call select - also like to smooth out
thanks again for you time and guide
Mitch
mitchsub said:
would very much appreciate that mate - hopefully the chef's will incorporate them in their up and coming ROM's although I might have a play myself
three things I don't like about my Note is -
1. Spinners - which you have sorted
2. Progress Bar - which I would like to smooth out
3. Unlock and Call select - also like to smooth out
thanks again for you time and guide
Mitch
Click to expand...
Click to collapse
So u would basically want a hyperdroid rom dont you
Ill try to do the progress bar stuff today
Sent from my GT-P1000 using Tapatalk
D.O.C said:
So u would basically want a hyperdroid rom dont you
Ill try to do the progress bar stuff today
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
Thanks D.O.C,nice one.
Hope to see and smooth progress bar
Hi, I know there are a few topic about this, but I checked it and don't have an answer.
I want to get work this: http://forum.xda-developers.com/showthread.php?t=1427510
So I dowloaded smoothspinners.7z and copy famework-res.apk from my phon to place-apk-here-for-modding in sdk folder (I installed APK Multi-Tool version 2.0)
I opened APK Multi-Tool and chose 9 (decompile) next go to project folder and replace file from smoothspinners.7z to framework-res.apk/res/drawable.
After that I chose 11 (compile) in APK Multi-Tool
"is this a system apk?" I chose "y"(yes)
"Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure least # of errors" I chose "n" (no)
Next rename "unsignedframework-res.apk" from place-apk-here-for-modding to framework-res.apk and copy to android-sdk/platform-tools/
Next I adb:
adb remount
adb push /system/framework/framework-res.apk
adb remount
Next change permission to 644
And after reboot I have bootloop
Can someone help me, please? (of coures I have backup in recovery so my phon work, but I want to know what I made wrong in this steps)
atomic339 said:
Hi, I know there are a few topic about this, but I checked it and don't have an answer.
I want to get work this: http://forum.xda-developers.com/showthread.php?t=1427510
So I dowloaded smoothspinners.7z and copy famework-res.apk from my phon to place-apk-here-for-modding in sdk folder (I installed APK Multi-Tool version 2.0)
I opened APK Multi-Tool and chose 9 (decompile) next go to project folder and replace file from smoothspinners.7z to framework-res.apk/res/drawable.
After that I chose 11 (compile) in APK Multi-Tool
"is this a system apk?" I chose "y"(yes)
"Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure least # of errors" I chose "n" (no)
Next rename "unsignedframework-res.apk" from place-apk-here-for-modding to framework-res.apk and copy to android-sdk/platform-tools/
Next I adb:
adb remount
adb push /system/framework/framework-res.apk
adb remount
Next change permission to 644
And after reboot I have bootloop
Can someone help me, please? (of coures I have backup in recovery so my phon work, but I want to know what I made wrong in this steps)
Click to expand...
Click to collapse
Seems like you are not copying signatures. Copy from original apk to new meta-inf folfer and androidmanifest.xml
Sent from my GT-I9100 using xda premium
Great mod, my spinners look great now.....so smooth! I would also be interested in the progress bars mod as well
Great Eye Candy! Thanks for this.
I may have missed it, but I did not see it mentioned in this thread:
This worked perfectly in Froyo (HTC Sense)!
Made a bigger difference in the 'feel' than I expected!
I know the thread is getting a little old, but I was also curious about the Smoother Progress Bar, or smoother anything else for that matter! Any update on that one?
DocHoliday77 said:
Great Eye Candy! Thanks for this.
I may have missed it, but I did not see it mentioned in this thread:
This worked perfectly in Froyo (HTC Sense)!
Made a bigger difference in the 'feel' than I expected!
I know the thread is getting a little old, but I was also curious about the Smoother Progress Bar, or smoother anything else for that matter! Any update on that one?
Click to expand...
Click to collapse
Would like to know that to
btw: getting a bootloop :/ so I reverted changes

transparent status bar?

i am on a rooted german ICS rom and was wondering wether its poosible to have a transparent status bar?
I'm searching for itit too, i know it is possible but how?
I think that it is possible, but to make it happened you have to change some .png for the statusbar.
I believe it requires smali edits in systemui.apk
Sent from my GT-N7000
actually you can mod the apk file and edit the color of status bar as alpha blending = 1
this is the method the status bar is drawn as far as i recall it doesn't have PNG files for the actual background though you can define that too.
look at this:
http://forum.xda-developers.com/showthread.php?t=1531222
http://forum.xda-developers.com/showthread.php?t=1624819
you will find it here
wich png or xml you need to edit? by the SystemUI.apk?
_giggino_ said:
wich png or xml you need to edit? by the SystemUI.apk?
Click to expand...
Click to collapse
if i'am not mistaken it's at the unpacked classes by the resources/values/... a file in there is the one needed sorry but i dont remember the exact name of it XD
I m searchin fr it fr a long tym...and still lookin fr a simple way to make it transparent....I dunn want to flash another rom fr just a transparent bar...im on goa rom and lovin it...best rom...
better you follow this guide
http://forum.xda-developers.com/showthread.php?t=1085118
sahilarora2003 said:
I m searchin fr it fr a long tym...and still lookin fr a simple way to make it transparent....I dunn want to flash another rom fr just a transparent bar...im on goa rom and lovin it...best rom...
Click to expand...
Click to collapse
You can using a custom status bar on stock lq2 its transparent with bunch of toggles looks much better then the stock one all icons in blue with 15 toggles
I will add xda thread link if you guys interested
Sent from my GT-N7000 using xda premium
crossmedia said:
You can using a custom status bar on stock lq2 its transparent with bunch of toggles looks much better then the stock one all icons in blue with 15 toggles
I will add xda thread link if you guys interested
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
I just want to flash the transparent status bar..i hv working blue toggles which are included in the rom which im using..i love it.is there any way i can make it transparent by editing some files or smthin like tht?
Sent from my GT-N7000 using xda app-developers app
As mentioned before, its a smali edit. Then you can either set the status bar colour to transparent or set the drawable to look for an image. I'll post a quick tutorial when I get to my computer. Really easy to do providing you know how to (de)compile properly
Handwritten by my AOKP'd up Desire HD & Note
K Dotty said:
As mentioned before, its a smali edit. Then you can either set the status bar colour to transparent or set the drawable to look for an image. I'll post a quick tutorial when I get to my computer. Really easy to do providing you know how to (de)compile properly
Handwritten by my AOKP'd up Desire HD & Note
Click to expand...
Click to collapse
I'll wait fr ur tutorial...
Sent from my GT-N7000 using xda app-developers app
Im writing this presuming you already know how to decompile ICS apk's, if not.......google is your friend
Make a backup of your systemUI just incase.
Decompile your SystemUI,
Navigate to /SystemUI/smali/com/android/systemui/statusbar/StatusBar.smali
In StatusBar.Smali, search for this line;
Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
A few lines above this change;
Code:
const/16 v16, [B]0x4[/B]
To
Code:
const/16 v16, [B]-0x3[/B]
Save the file then navigate to SystemUI/res/values/drawables.xml
Look for the following line;
Code:
<item type="drawable" name="status_bar_background">[B]#ff000000[/B]</item>
Change the hex value (#ff000000) the what ever you want ((ff = 100% transparency)(000000 = black)
#00000000 - completely transparent
#7f000000 - roughly 50% translucent I think
Save the file then recompile SystemUI.apk, and then push the apk back to your phone with the correct permissions and if compile correctly you should have a transparent status bar
If something goes wrong, I'm not responsible....blah blah blah!!
Iv only done this on CM9 & AOSP/AOKP but it should work with stock/tw roms as long as they're ics.
I'm still not next to my computer so I can't remember the line of code to set the status bar as an image rather than a color, I'll post it as soon as I get home.
Handwritten by my AOKP'd up Desire HD & Note
How do I get a background Image, Like the attached Screenshot ?
Thanks!

[MOD][GUIDE] Remove Ongoing Notification

This is a quick way to remove the aggrivating Ongoing WiFi notification in the drop down menu. There may be other ways to do it via smali or xml but I have not found them yet so this will work for now.
I am including a flashable ZIP as well but it "may" cause issues if your on a custom ROM.
The Guide....
Decompile framework-res.apk
First verify these lines are not already there, if not, add the following code to res/values/drawables
Code:
<item type="drawable" name="stat_sys_wifi_connected">false</item>
<item type="drawable" name="stat_sys_wifi_disabled">false</item>
<item type="drawable" name="stat_sys_wifi_dummy">false</item>
<item type="drawable" name="stat_sys_wifi_no_network">false</item>
<item type="drawable" name="stat_sys_wifi_not_connected">false</item>
Remove the following .pngs from res/drawables-hdpi and drawables-xhdpi
Code:
stat_sys_wifi_connected.png
stat_sys_wifi_disabled.png
stat_sys_wifi_dummy.png
stat_sys_wifi_no_network.png
stat_sys_wifi_not_connected.png
Recompile and push to /system/framework
This is meant for a stock deodexed BLK3 Rom. Nandroid First!
Ongoing Removal Zip Download
Not working on CleanROM 5.5.1
I know it says stock K3, but CR is stock based..
Sent from my Commodore 64..
READY.
load"*", 8,1
Hypnosis4U2NV said:
Not working on CleanROM 5.5.1
I know it says stock K3, but CR is stock based..
Sent from my Commodore 64..
READY.
load"*", 8,1
Click to expand...
Click to collapse
Can you be more specific? Did it bootloop, get stuck on splash, or just not remove the ongoing notifications?
This is just a framework-res mod, so it should be fairly compatible with most roms, but if the rom your on has made changes to framework-res you may have complications.
I tested it on my stock BLK3 rom and it worked fine.
Hypnosis4U2NV said:
Not working on CleanROM 5.5.1
I know it says stock K3, but CR is stock based..
Sent from my Commodore 64..
READY.
load"*", 8,1
Click to expand...
Click to collapse
Lol its already removed from CleanROM. This is how I have been removing it from all the jellybean leaks. I did this mod for the last few cleanroms and is released in the roms from scott
Sent from my SCH-I535 using xda app-developers app
---------- Post added at 05:02 PM ---------- Previous post was at 04:56 PM ----------
Didact74 said:
This is a quick way to remove the aggrivating Ongoing WiFi notification in the drop down menu. There may be other ways to do it via smali or xml but I have not found them yet so this will work for now.
I am including a flashable ZIP as well but it "may" cause issues if your on a custom ROM.
The Guide....
Decompile framework-res.apk
First verify these lines are not already there, if not, add the following code to res/values/drawables
Code:
<item type="drawable" name="stat_sys_wifi_connected">false</item>
<item type="drawable" name="stat_sys_wifi_disabled">false</item>
<item type="drawable" name="stat_sys_wifi_dummy">false</item>
<item type="drawable" name="stat_sys_wifi_no_network">false</item>
<item type="drawable" name="stat_sys_wifi_not_connected">false</item>
Remove the following .pngs from res/drawables-hdpi and drawables-xhdpi
Code:
stat_sys_wifi_connected.png
stat_sys_wifi_disabled.png
stat_sys_wifi_dummy.png
stat_sys_wifi_no_network.png
stat_sys_wifi_not_connected.png
Recompile and push to /system/framework
This is meant for a stock deodexed BLK3 Rom. Nandroid First!
Ongoing Removal Zip Download
Click to expand...
Click to collapse
Just a fyi you don't have to add those lines in the xml. You can just 7 zip open the framework and delete the 5 pngs from the drawable/hdpi folder this how I've done all the jellybean leaks for everyone and causes no issues and you don't have to recompile so it's a little quicker.
Sent from my SCH-I535 using xda app-developers app
This worked great for me on stock odex even. Framework-res is not an odexed file, so it should work on any "stock" unmodified framework. If used on a modded framework as the op says it will break those mods.
Sent from my SCH-I535 using Tapatalk 2
I apologize, it was the setting in wifi to disable it.. Sorry for the confusion..
Sent from my Commodore 64..
READY.
load"*", 8,1
rwc95 said:
Just a fyi you don't have to add those lines in the xml. You can just 7 zip open the framework and delete the 5 pngs from the drawable/hdpi folder this how I've done all the jellybean leaks for everyone and causes no issues and you don't have to recompile so it's a little quicker.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
Thanks Man!
The way I did it was go into the WiFi settings then hit menu and then advanced. Then I proceeded to uncheck and turn off everything that would turn the WiFi back on. I'm running Jelly Bean's build 6. Hope this helps for someone that doesn't feel confident flashing or messing with decompiling.
Sent from my SCH-I535 using xda premium
john21511 said:
The way I did it was go into the WiFi settings then hit menu and then advanced. Then I proceeded to uncheck and turn off everything that would turn the WiFi back on. I'm running Jelly Bean's build 6. Hope this helps for someone that doesn't feel confident flashing or messing with decompiling.
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
I think everyone is confusing the ongoing wifi in pulldown with the pop up Window that scans for networks. This mod is to remove the ongoing wifi stuff that stays in the pulldown that can not be turned off unless already removed from the rom your running. The pop up Window can be disabled on any rom by going to the wifi settings and un checking notify me at the top. Hope this halfway clarifies.
Sent from my SCH-I535 using xda app-developers app
Got bored and decided to flash this on my stock rooted k3 and it worked perfect but for some reason gave me a nav bar haha its cool tho I have a nandroid
Sent from my SCH-I535 using Tapatalk 2
rwc95 said:
Just a fyi you don't have to add those lines in the xml. You can just 7 zip open the framework and delete the 5 pngs from the drawable/hdpi folder this how I've done all the jellybean leaks for everyone and causes no issues and you don't have to recompile so it's a little quicker.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
I used this method. Thanks a ton for that and thanks to the OP.
Sent from my SCH-I535 using xda premium
rwc95 said:
Lol its already removed from CleanROM. This is how I have been removing it from all the jellybean leaks. I did this mod for the last few cleanroms and is released in the roms from scott
Sent from my SCH-I535 using xda app-developers app
---------- Post added at 05:02 PM ---------- Previous post was at 04:56 PM ----------
Just a fyi you don't have to add those lines in the xml. You can just 7 zip open the framework and delete the 5 pngs from the drawable/hdpi folder this how I've done all the jellybean leaks for everyone and causes no issues and you don't have to recompile so it's a little quicker.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
+1 on just removing/renaming the png files. Works like a charm without any side effects that I've noticed.
Does anyone have the original stock framework-res.apk for jelly bean? Flashed this zip and everything was fine, but one of the only games I play does not work anymore. Thanks!
NM, just did a nandroid restore.
will try with deodexed 4.2 OTA and pos results
To anyone wondering it doesn't work with 4.1.2 VRBMB1 official stock rooted, you will get boot loops. Thank you for making this anyways though does anyone know any ways to remove the ongoing notification in VRBMB1?
joshua5683 said:
To anyone wondering it doesn't work with 4.1.2 VRBMB1 official stock rooted, you will get boot loops. Thank you for making this anyways though does anyone know any ways to remove the ongoing notification in VRBMB1?
Click to expand...
Click to collapse
I was able to rename the .png files on VRBMB1 without a problem. I adb pulled framework-res.apk, opened in 7-zip, deleted the 5 .png files, and copied the .apk back to /system/app/framework
Works just fine. Perhaps it's best to avoid decompiling/recompiling the framework. Using 7-zip is just fine.
dunderball said:
I was able to rename the .png files on VRBMB1 without a problem. I adb pulled framework-res.apk, opened in 7-zip, deleted the 5 .png files, and copied the .apk back to /system/app/framework
Works just fine. Perhaps it's best to avoid decompiling/recompiling the framework. Using 7-zip is just fine.
Click to expand...
Click to collapse
Guys, the way i do it is just like the tutorial in the first post. Remove the PNG's and add the lines to drawable. The reason you add the lines to drawable is to retain the IDs in res/public. If you remove the PNGs then try to recompile you will get errors because there are still IDs in res/public that point to the now removed PNGs. If you try to remove the IDs from res/public then it will throw your hexidecimal ID order out of whack and will cause recompiling errors. Like the tutorial shows in the first post, by adding these lines to res/drawable
Code:
<item type="drawable" name="stat_sys_wifi_connected">false</item>
<item type="drawable" name="stat_sys_wifi_disabled">false</item>
<item type="drawable" name="stat_sys_wifi_dummy">false</item>
<item type="drawable" name="stat_sys_wifi_no_network">false</item>
<item type="drawable" name="stat_sys_wifi_not_connected">false</item>
you still retain the IDs in res/public but they no longer point to the PNGs you removed, they now point to the dummy's you added to res/drawable.
If you want to just open the APK with winzip or whatever and remove the PNGs thats fine too, however, if you go to make other changes that would require you to decompile/recompile you will get errors.
Didact74 said:
Guys, the way i do it is just like the tutorial in the first post. Remove the PNG's and add the lines to drawable. The reason you add the lines to drawable is to retain the IDs in res/public. If you remove the PNGs then try to recompile you will get errors because there are still IDs in res/public that point to the now removed PNGs. If you try to remove the IDs from res/public then it will throw your hexidecimal ID order out of whack and will cause recompiling errors. Like the tutorial shows in the first post, by adding these lines to res/drawable
Code:
<item type="drawable" name="stat_sys_wifi_connected">false</item>
<item type="drawable" name="stat_sys_wifi_disabled">false</item>
<item type="drawable" name="stat_sys_wifi_dummy">false</item>
<item type="drawable" name="stat_sys_wifi_no_network">false</item>
<item type="drawable" name="stat_sys_wifi_not_connected">false</item>
you still retain the IDs in res/public but they no longer point to the PNGs you removed, they now point to the dummy's you added to res/drawable.
If you want to just open the APK with winzip or whatever and remove the PNGs thats fine too, however, if you go to make other changes that would require you to decompile/recompile you will get errors.
Click to expand...
Click to collapse
No PC here is there a way to do this on the phone
Sent from my SCH-I535
hitman980206 said:
No PC here is there a way to do this on the phone
Sent from my SCH-I535
Click to expand...
Click to collapse
I'm pretty certain you can remove the .png files using NinjaMorph.

[Q] how to change notification panel style...

Hi Everyone...
Recently i had took a simple project...trying to mod a rom and give it a new look...i did all things what i know... like Systemui,Farmwork_res,Settings, etc,etc...but now i want to change the notification panel of my rom...and want to add lawa v5 notification panel style on my rom...But i didn't find any tutorial about this...I asked one bro and he said that to change notification panel you have to edit System ui/res/values/style.xml...But he didn't tell me that what i change in this xml...Can anybody help me in changing notification panel style?!!or give me a proper tutorial please....
Md.Shafikul.islam said:
Nobody helps me... :'(
Click to expand...
Click to collapse
hey, i dont know how to do that. but i can recommend that ( actually i am doing in that way)
1. find any systemui.apk that has the style what you want.
2. decompile it and go to res/values/style.xml
3. match your style.xml and your downloanded style.xml
4. try to simulate your xml to that xml .
hope this helps.
thanks bro...
SmiLeToLife said:
hey, i dont know how to do that. but i can recommend that ( actually i am doing in that way)
1. find any systemui.apk that has the style what you want.
2. decompile it and go to res/values/style.xml
3. match your style.xml and your downloanded style.xml
4. try to simulate your xml to that xml .
hope this helps.
Click to expand...
Click to collapse
i will try it...but can i change my styles with another style?mean replaced it?!!or add all things from another style to my style?!!by notepad?!!
Md.Shafikul.islam said:
i will try it...but can i change my styles with another style?mean replaced it?!!or add all things from another style to my style?!!by notepad?!!
Click to expand...
Click to collapse
don't try to change whole lines !!!
for example :
in your style.xml -- > <style name="BackgroundOnlyTheme" parent= @ANDROID:style/Theme.Holo.
in dowloanded style.xml --> <style name="BackgroundOnlyTheme" parent= @ANDROID:style/Theme.Holo.Light">
so you have to edit your line and add '' Light '' end of it. it will look like @ANDROID:style/Theme.Holo.Light
The important thing is you have to figure out what lines are related to your notification panel!!!
I am doing the same thing right now. I have couple cm11 themes and i am changing my sytles, colors, dimens according to theme's styles, colors.xml etc ..
I am using notepad++.
Just open the 2 xmls that you wanan check. Put them side by side and check the lines.
if something going wrong when your systemui get function ... you have to come back to your xml and check the line again.
The last say --> maybe you will need to change some drawble xmls and some drawble hdpi/ xhdpi/ xxhdpi files according to your dpi .
thanks again
SmiLeToLife said:
don't try to change whole lines !!!
for example :
in your style.xml -- > <style name="BackgroundOnlyTheme" parent= @ANDROID:style/Theme.Holo.
in dowloanded style.xml --> <style name="BackgroundOnlyTheme" parent= @ANDROID:style/Theme.Holo.Light">
so you have to edit your line and add '' Light '' end of it. it will look like @ANDROID:style/Theme.Holo.Light
The important thing is you have to figure out what lines are related to your notification panel!!!
I am doing the same thing right now. I have couple cm11 themes and i am changing my sytles, colors, dimens according to theme's styles, colors.xml etc ..
I am using notepad++.
Just open the 2 xmls that you wanan check. Put them side by side and check the lines.
if something going wrong when your systemui get function ... you have to come back to your xml and check the line again.
The last say --> maybe you will need to change some drawble xmls and some drawble hdpi/ xhdpi/ xxhdpi files according to your dpi .
Click to expand...
Click to collapse
thanks again..but can you say that whichs xml on drawable may need to edit?plz.....
Md.Shafikul.islam said:
thanks again..but can you say that whichs xml on drawable may need to edit?plz.....
Click to expand...
Click to collapse
it depends on the rom ...
i had to edit
- ic_notify_button_bg.xml
- notification_header_bg.xml
- qs_tile_background.xml
- system_bar_notification_header_bg.xml
in drawble. I am running kitkat 4.4
maybe you need to edit those xmsl as well, maybe you dont need, maybe you dont have those xmls. not sure
Okey...got it....
SmiLeToLife said:
it depends on the rom ...
i had to edit
- ic_notify_button_bg.xml
- notification_header_bg.xml
- qs_tile_background.xml
- system_bar_notification_header_bg.xml
in drawble. I am running kitkat 4.4
maybe you need to edit those xmsl as well, maybe you dont need, maybe you dont have those xmls. not sure
Click to expand...
Click to collapse
:good: last question. do i change the another's xml in values too?!!like color.xml....etc.etc?!!
Md.Shafikul.islam said:
:good: last question. do i change the another's xml in values too?!!like color.xml....etc.etc?!!
Click to expand...
Click to collapse
maybe ... it depends on the theme's color and style. For instance: you will set your notifaction panel is white and if ur text color is white then you will not be able to read/see your notification you gotta see what's hapening after editing styles ... if it's ok then no problem. if it is as my mention then you gotta edit your colors.xml ...
i hope you got the concept of the work.
you can search any tutorial for editing notification panel. All necessary steps can be found. according to those tutorials you can edit your systemui.
For instance:
In the tutorial will say let's edit this line according to that .... you have to find this line at the xml in your lewa systemui and edit according to it
good luck happy theming ...

Change Statusbar Icons to the Pixel ones

Hi,
how could I change the Icons in the statusbar (wifi, battery, ...) from the HTC ones to the ones from the Pixel?
=dave= said:
Hi,
how could I change the Icons in the statusbar (wifi, battery, ...) from the HTC ones to the ones from the Pixel?
Click to expand...
Click to collapse
ViperU comes with them on the full rom (not the magisk one)
Cryosx said:
ViperU comes with them on the full rom (not the magisk one)
Click to expand...
Click to collapse
I don't see them in the rom. the hub is empty too.
fix-this! said:
I don't see them in the rom. the hub is empty too.
Click to expand...
Click to collapse
Just making sure, but is there a difference between pixel icons and stock Android icons?
If there isn't, ViperU should have them because I distinctly remember the icons being different from HTC's. Especially the VPN icon.
decompile the system ui apk and replace the stock stat_sys images with the pixel ones
badboys rom has aosp based statusbar icons.
Digitalkarma said:
decompile the system ui apk and replace the stock stat_sys images with the pixel ones
Click to expand...
Click to collapse
the google statusbar icons are not imgs u can swap, the icons are done w/ xml
fix-this! said:
badboys rom has aosp based statusbar icons.
Click to expand...
Click to collapse
yep, the stock icons are hideous!
OMJ said:
the google statusbar icons are not imgs u can swap, the icons are done w/ xml
yep, the stock icons are hideous!
Click to expand...
Click to collapse
wow how times have changed since the m7. i thought U11 system ui would be the same.
is the xml edit a matter of changing the img reference to another folder that do have the google status images already embedded somewhere? or is it a smali edit?
with the m7 i could either do xml reference edit or overwrite image files.
Digitalkarma said:
wow how times have changed since the m7. i thought U11 system ui would be the same.
is the xml edit a matter of changing the img reference to another folder that do have the google status images already embedded somewhere? or is it a smali edit?
with the m7 i could either do xml reference edit or overwrite image files.
Click to expand...
Click to collapse
Are you rooted? I have a Layer I made that works on the HTC 10 to give AOSP style signal icons. If you want to try it let me know. Basically copy it into /system/vendor/overlay and set permissions.
https://drive.google.com/file/d/0B1iRsZPFZo3ER2FoeUg2VnBjWTg/view?usp=drivesdk
jsaxon2 said:
Are you rooted? I have a Layer I made that works on the HTC 10 to give AOSP style signal icons. If you want to try it let me know. Basically copy it into /system/vendor/overlay and set permissions.
https://drive.google.com/file/d/0B1iRsZPFZo3ER2FoeUg2VnBjWTg/view?usp=drivesdk
Click to expand...
Click to collapse
i don't have an U11 yet. still on the fence, but once sprint officially brings the Solar Red or Amazing Silver to their network and maybe drop the retail price down by $50-100 then i'm on the U11. i know it aint going to be $696 for long hoping by Fall/Winter they worked all the production kinks out, drop the price a little and maybe include a few extra goodies in there to entice the late adopters once sales cools off
Digitalkarma said:
wow how times have changed since the m7. i thought U11 system ui would be the same.
is the xml edit a matter of changing the img reference to another folder that do have the google status images already embedded somewhere? or is it a smali edit?
with the m7 i could either do xml reference edit or overwrite image files.
Click to expand...
Click to collapse
the stock htc icons on the unlocked version are images that can be swapped...I'm sure there are several ways to accomplish the same goal, but my method adds the google xmls back to systemui (ie..google_stat_sys_signal_0.xml) then I change the resource value in HtcIcons.smali to point to those xmls, here's an example of one of the xmls...I'm not sure how the Pixel sets those icons, xml or imgs
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="17.0dip" android:width="17.0dip" android:autoMirrored="true" android:viewportWidth="24.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z" />
</vector>
jsaxon2 said:
Are you rooted? I have a Layer I made that works on the HTC 10 to give AOSP style signal icons. If you want to try it let me know. Basically copy it into /system/vendor/overlay and set permissions.
https://drive.google.com/file/d/0B1iRsZPFZo3ER2FoeUg2VnBjWTg/view?usp=drivesdk
Click to expand...
Click to collapse
Do you happen to know how to change the VPN icon as well?
Cryosx said:
Do you happen to know how to change the VPN icon as well?
Click to expand...
Click to collapse
I do not, sorry. I never use VPN so never looked for it.
OMJ said:
the stock htc icons on the unlocked version are images that can be swapped...I'm sure there are several ways to accomplish the same goal, but my method adds the google xmls back to systemui (ie..google_stat_sys_signal_0.xml) then I change the resource value in HtcIcons.smali to point to those xmls, here's an example of one of the xmls...I'm not sure how the Pixel sets those icons, xml or imgs
Code:
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="17.0dip" android:width="17.0dip" android:autoMirrored="true" android:viewportWidth="24.0" android:viewportHeight="24.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#ffffffff" android:pathData="M2.000000,22.000000l20.000000,0.000000 0.000000,-20.000000z" />
</vector>
Click to expand...
Click to collapse
Does this work on Oreo? Can you please guide (some short instructions) me on how to modify status bar icons on U11 Oreo?
Pat123 said:
Does this work on Oreo? Can you please guide (some short instructions) me on how to modify status bar icons on U11 Oreo?
Click to expand...
Click to collapse
my method does not yet work on Oreo as apktool needs to be updated to modify & compile SystemUI

Categories

Resources