[MOD] Batterty percentage in locksreen status bar plus green carrier text - Nexus 5 Themes and Apps

I cannot find a way to have the battery % show itself in the status bar with the odexed 5.0 system. I have at least been able to show the battery percentage in the lockscreen status bar. I've also changed the carrier text to green instead of white simply because it looks cool. As long as you're on LRX210 this should work for you. Just move the SystemUI.apk to system/priv-app and set permissions to rw-r-r and reboot. See below to for screenshots and the apk for download.

Pain-N-Panic said:
I cannot find a way to have the battery % show itself in the status bar with the odexed 5.0 system. I have at least been able to show the battery percentage in the lockscreen status bar. I've also changed the carrier text to green instead of white simply because it looks cool. As long as you're on LRX210 this should work for you. Just move the SystemUI.apk to system/priv-app and set permissions to rw-r-r and reboot. See below to for screenshots and the apk for download.
Wonderful mod.. Can you make another mod for lrx22c? I can give you my sistemuy.apk
Click to expand...
Click to collapse

Sure. Just upload your systemUI
Sent from my Nexus 5 using xda premium

Pain-N-Panic said:
Sure. Just upload your systemUI
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
This is my systemUI... Thx for your big help!!

No problem. I'm working all weekend so it might be a bit before I get to it.
Sent from my Nexus 5 using xda premium

Thx you are a good man..
Sent from my Nexus 5 using XDA Free mobile app

Pain-N-Panic said:
I cannot find a way to have the battery % show itself in the status bar with the odexed 5.0 system. I have at least been able to show the battery percentage in the lockscreen status bar. I've also changed the carrier text to green instead of white simply because it looks cool. As long as you're on LRX210 this should work for you. Just move the SystemUI.apk to system/priv-app and set permissions to rw-r-r and reboot. See below to for screenshots and the apk for download.
Click to expand...
Click to collapse
It asks me to Enable Root Mode when I try to change the permissions. Do you have any idea why is asking that? And I believe the SystemUI.apk should be put to system/priv-app/SystemUI folder?

Can you please make the carrier text in pink. It will also looks good. For someone, somewhere...

norikk said:
It asks me to Enable Root Mode when I try to change the permissions. Do you have any idea why is asking that? And I believe the SystemUI.apk should be put to system/priv-app/SystemUI folder?
Click to expand...
Click to collapse
Its asking for root privileges needed to change permissions on a system app. That's normal. And yes, it the directory is system/priv-app/SystemUI
Sent from my Nexus 5 using xda premium

zagorteney said:
Can you please make the carrier text in pink. It will also looks good. For someone, somewhere...
Click to expand...
Click to collapse
Lol sure thing. I'll have it up by Monday night
Sent from my Nexus 5 using xda premium

Pain-N-Panic said:
Its asking for root privileges needed to change permissions on a system app. That's normal. And yes, it the directory is system/priv-app/SystemUI
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
Hey buddy, it worked. I forgot earlier to check a box in settings of my file manager to give root privileges. Is there a chance to show the battery % while the device is NOT in the lock screen only? And also is there a chance to make a white carrier font like it used to be?

This looks really cool, what xml file do you modify to get this, can you tell me how to do this cause I want to start modifying android when I have time
Sent from my Nexus 5 using XDA Free mobile app

norikk said:
Hey buddy, it worked. I forgot earlier to check a box in settings of my file manager to give root privileges. Is there a chance to show the battery % while the device is NOT in the lock screen only? And also is there a chance to make a white carrier font like it used to be?
Click to expand...
Click to collapse
As of right now I cannot figure out how to get the percentage to show when the screen is unlocked....if the SystemUI was not odexed it wouldn't be an issue. I'm not really a developer, I just dabble around in XML's and have read a lot on themeing android system files. Getting the percentage to show while the screen is unlocked is still a project I'm working on. If I get it to work trust me I will be sure to post it!
I believe the XML was keygaurd_status_bar.XML
All I did was change the hex color code for the carrier text from white (FFFFFFFF) to green (FF00FF00). Then in the textview parameter for battery percentage I changed the line android:visibility="gone" to android:visibility="visible "
Sent from my Nexus 5 using xda premium

Also I've noticed with this mod if you stick the phone on the charger and take it off the battery percentage in the lock screen disappears....once you reboot its back again. Have no idea how to fix that...
Sent from my Nexus 5 using xda premium

Thank you but where did you find that XML file, under which folder in the source code
Sent from my Nexus 5 using XDA Free mobile app

Hello, could you please change the carrier text back into regular white? I would love to use it in that standard design!
Could somebody help me to clarify, after I downloaded the SystemUI.apk it is an .zip but how shall I put the downloaded file into the system/priv-app? As far as I understand this should be an .apk?

It Is an apk file. Use 7-zip or similar software to unzip it..
Sent from my Nexus 5 using xda premium

shogun656 said:
Thank you but where did you find that XML file, under which folder in the source code
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
XML is located in res/layout. You have to decompile the apk to get to it.
Sent from my Nexus 5 using xda premium

Pain-N-Panic said:
XML is located in res/layout. You have to decompile the apk to get to it.
Sent from my Nexus 5 using xda premium
Click to expand...
Click to collapse
Thank you so much, I will take a look at it
Sent from my Nexus 5 using XDA Free mobile app

Related

How to edit system ui and framework apk to get percentage battery icon??

Hi all,
I know how to change the png's ect, and I know how to decompile the framework and system ui apks, but my problem is this:
The system ui apk only has something like 12 battery icon png's by default, so if I go and add something like 110 percentage battery icons, I will also have to edit some of the code ect to make the system recognise all of the battery images.
But I am not sure which code to edit, and I don't know how to edit it.
Would someone please be able to tell me how I would edit the code, as I know everything else about how to make the percentage battery mod, but I just need to edit the code.
Cheers
Corey
Sent from my Nexus 7 using xda premium
Anyone??
Corey
Sent from my Nexus 7 using xda premium
I just need to know which file it is I need to edit, as I can work the rest out myself, but I am not sure which file contains the code relating the to the battery icons.
Cheers
Corey
Sent from my Nexus 7 using xda premium
fishingfon said:
I just need to know which file it is I need to edit, as I can work the rest out myself, but I am not sure which file contains the code relating the to the battery icons.
Cheers
Corey
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
You need to decompile systemui.apk, edit 2 xml's (battery charging and one other in /Res/drawable - easiest to just take them from another 1% battery mod), and then add the images to the correct dpi folder. You can also try uot kitchen which will do it for you if you upload your framework-res.apk and systemui.apk. then you can compare the changes it makes to the xmls. Sorry its not more specific, but I can't remember it off the top of my head.
Sent from my Nexus 7 using xda premium
mwalt2 said:
You need to decompile systemui.apk, edit 2 xml's (battery charging and one other in /Res/drawable - easiest to just take them from another 1% battery mod), and then add the images to the correct dpi folder. You can also try uot kitchen which will do it for you if you upload your framework-res.apk and systemui.apk. then you can compare the changes it makes to the xmls. Sorry its not more specific, but I can't remember it off the top of my head.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Ok, thanks heaps.
I will have a go at making a mod tomorrow
Just one question, can I pull those 2 xml's from a non Nexus 7 battery mod? As if not, I will have to just edit the files, as the is no % battery mod available yet for the n7
Cheers
Corey
Sent from my Nexus 7 using xda premium
Ps,
And do u know where I can find those two xmls? As I can't seem to find them in settings.apk
Cheers
Corey
Edit:
I have found a xmlfile called "battery info" is that the right one?.
And do u know the name of the other xml file I need to edit?
Thanks again
Sent from my Nexus 7 using xda premium
Ignore all the above msgs, I have found the xml files I need
Thanks again for for your help
Cheers
Corey
Sent from my Nexus 7 using xda premium
Glad you figured it out. The .xml's from another battery mod should be fine.
They are SystemUI.apk/res/drawable/stat_sys_battery.xml and SystemUI.apk/res/drawable/stat_sys_battery_charge.xml (just in case it helps others).

Notification drop down background change

Been getting in to modding my phone. So far I've been able to change the lockscreens and glodots with my own images.
One thing I miss with paranoid android is not being able to change the notification dropdown image.
I have ninjamorph but have no idea what file I have to change and what size the image has to be. 540px 960px ring a bell?
Even if someone could give me a few pointers would be great.
Thanks
Steven
Sent from my Nexus 4 using xda premium
shenery said:
Been getting in to modding my phone. So far I've been able to change the lockscreens and glodots with my own images.
One thing I miss with paranoid android is not being able to change the notification dropdown image.
I have ninjamorph but have no idea what file I have to change and what size the image has to be. 540px 960px ring a bell?
Even if someone could give me a few pointers would be great.
Thanks
Steven
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
You can't do it that way. It is coming trikes by xml not an image. You have to redirect the xml to an image
Wayne Tech Nexus
zelendel said:
You can't do it that way. It is coming trikes by xml not an image. You have to redirect the xml to an image
Wayne Tech Nexus
Click to expand...
Click to collapse
Yeah well the way i changed the lock screens. I used someone else's hdpi and xml zip. Changed the png's and edited the XML. Rezipped and ran through zip themer. Worked a treat and I have lots of personalised lock screens. Even if someone could give me a zip that I could play around with?
Sent from my Nexus 4 using xda premium
shenery said:
Yeah well the way i changed the lock screens. I used someone else's hdpi and xml zip. Changed the png's and edited the XML. Rezipped and ran through zip themer. Worked a treat and I have lots of personalised lock screens. Even if someone could give me a zip that I could play around with?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
See that is alot easier then What you want to do. The background is built into the layout folder as a color code and not an image. So you would have to go in and change this in the apk as those tools dont allow editing of that folder.
zelendel said:
See that is alot easier then What you want to do. The background is built into the layout folder as a color code and not an image. So you would have to go in and change this in the apk as those tools dont allow editing of that folder.
Click to expand...
Click to collapse
How do I do that. Do I use apktool?
Sent from my Nexus 4 using xda premium
Anyone any ideas? I want to learn!
Sent from my Nexus 4 using xda premium
Well that's an attitude we could all use. Wanting to learn!
I'm not very sure on how to do it, but it should be this .
Get the framework-res (or sysemui..)
Decompile
Find the XML that points the colors or images to something
The line for the background should have something
<drawable name="notification_header_bg">#FF000000</drawable>
So change the color to your drawables.
Sent from my Nexus 4 using xda premium
Ok. Thank you I'll have a play about and see if I can work it out
Sent from my Nexus 4 using xda premium
Ok I think I've found the file. I will use apk tool tomorrow when I am at a laptop to decompile. So I'll be editing the XML file, but where would I put the image to tie up with it?
Sent from my Nexus 4 using xda premium
Am I getting warmer? Lol. I can see notification_bg.XML but on the next screenshot there doesn't seem to be a .png to fie up with that.
Sent from my Nexus 4 using xda premium
shenery said:
Am I getting warmer? Lol. I can see notification_bg.XML but on the next screenshot there doesn't seem to be a .png to fie up with that.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Because the XML links to a color code. You need to change it to a png
Sent from my Nexus 4 using xda premium
shenery said:
Am I getting warmer? Lol. I can see notification_bg.XML but on the next screenshot there doesn't seem to be a .png to fie up with that.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Ok here are the changes you will need to make.
For the toggles background you will need to change quick_settings.xml in the layout folder
<com.android.systemui.statusbar.phone.SettingsPanelView android:id="@id/settings_panel" android:background="@drawable/notification_panel_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
For the shade in the notifications you will need to change status_bar_expanded in the same layout folder
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" androidaddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"
Mind you those are for an AOKP rom. Once you decompile the system ui you will be able to see what your rom uses. Once again you can NOT make this change with ninja morph you will have to decompile the apk to see what it is using.
So let me see if I understand this right.
In the XML file in the layout folder I have to change it from a colour code to a .png file that I have made. And as there is no .png file for this I would have to put this file in the drawable folder to tie up with the XML file?
Sent from my Nexus 4 using xda premium
shenery said:
So let me see if I understand this right.
In the XML file in the layout folder I have to change it from a colour code to a .png file that I have made. And as there is no .png file for this I would have to put this file in the drawable folder to tie up with the XML file?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
SPOT ON.
Sent from my Nexus 4 using xda premium
zelendel said:
Ok here are the changes you will need to make.
For the toggles background you will need to change quick_settings.xml in the layout folder
<com.android.systemui.statusbar.phone.SettingsPanelView android:id="@id/settings_panel" android:background="@drawable/notification_panel_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
For the shade in the notifications you will need to change status_bar_expanded in the same layout folder
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" androidaddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_margin_left"
Mind you those are for an AOKP rom. Once you decompile the system ui you will be able to see what your rom uses. Once again you can NOT make this change with ninja morph you will have to decompile the apk to see what it is using.
Click to expand...
Click to collapse
One last thing. I can't for the life of me find what size I have to make the notification panel in px. Do you have that at hand?
Thanks
Sent from my Nexus 4 using xda premium
I'm having a go at this myself, did you find out the dimensions? Also how might I adapt this to just change the background colors?

[REQ] Signal / Wi-fi / Operator on the left side of status bar

You know, like in MIUI v5? Is there any ziptheme mod, or does anyone know what do I have to edit to have those icons on the left side of the staus bar?
Thanks in advance.
I also REALLY want this. I'm surprised no one has already made this happen, it seems like a no brainer customisation feature.
Sent from my Nexus 4 using Tapatalk 4 Beta
Gingerbread MIUI had the option. Would be neat but I doubt I'd use it.
Sent from my Nexus 4 using Tapatalk 4 Beta
http://forum.xda-developers.com/showthread.php?p=42136498
Post #4380
Try asking him how he did it
Edit: If someone would figure it out how to make it universal , and share it here? Dont forget to thank droidblaze
Sent from my Nexus 4 using xda app-developers app
Yeah it would be cool to see this as an option in ROMs
Sent from my Nexus 4 using Tapatalk 4 Beta
Please could someone ask the guy at the link above?
Wouldn't the notification icons be overlapped?
Sent from my Nexus⁴ running Unicorns™
Worked on my phone...
powered nexus 4 by hells-Core b24
luca1102 said:
http://forum.xda-developers.com/showthread.php?p=42136498
Post #4380
Try asking him how he did it
Edit: If someone would figure it out how to make it universal , and share it here? Dont forget to thank droidblaze
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Great find
I found something similiar, involved editing xml files after decompiling sytemUI, but for an older Android version, so it didn't work. I will decompile his file and check for differences.
I'm currently working on modifying the systemUI.xml of my PA rom which should work on most AOSP roms. I'm trying to adjust icon dimensions to allow for a larger signal strength icon to simulate the new ios7 dot style signal strength icon. Not that relevant... But while I'm there I'll see if I can't make a simple switch sides mod.
Make a paint image or something or find a screen shot of exactly what you want or what side and such. I don't want to forget icons.
Sent from my Nexus 4 using xda app-developers app
the4ndy said:
I'm currently working on modifying the systemUI.xml of my PA rom which should work on most AOSP roms. I'm trying to adjust icon dimensions to allow for a larger signal strength icon to simulate the new ios7 dot style signal strength icon. Not that relevant... But while I'm there I'll see if I can't make a simple switch sides mod.
Make a paint image or something or find a screen shot of exactly what you want or what side and such. I don't want to forget icons.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Something like this, maybe?
gasparzim said:
Something like this, maybe?
Click to expand...
Click to collapse
Looks good.
Looks awesome! Please let this happen!
Sent from my Nexus 4 using Tapatalk 4 Beta
Waiting for this!
Here is a tutorial to do that:
http://forum.xda-developers.com/showthread.php?t=1767593
I will try it when I have free time
Sergiowlx said:
Here is a tutorial to do that:
http://forum.xda-developers.com/showthread.php?t=1767593
I will try it when I have free time
Click to expand...
Click to collapse
Hmm, want to try that as well, but it's for stock xperia, not sure if I can do it in CM10.1...
gasparzim said:
Hmm, want to try that as well, but it's for stock xperia, not sure if I can do it in CM10.1...
Click to expand...
Click to collapse
It says: ''I'm going to show you to properly center the clock using the xml found in stock Sony Timescape ICS but the principles can be applied to pretty much any rom on any device.''
So i think that could be done in any other roms. I will try it in PA
Sergiowlx said:
It says: ''I'm going to show you to properly center the clock using the xml found in stock Sony Timescape ICS but the principles can be applied to pretty much any rom on any device.''
So i think that could be done in any other roms. I will try it in PA
Click to expand...
Click to collapse
Yeah, I know. I tried something like this, but it was based on stock ICS, but some lines weren't present in JB's XML.
Sergiowlx said:
Here is a tutorial to do that:
http://forum.xda-developers.com/showthread.php?t=1767593
I will try it when I have free time
Click to expand...
Click to collapse
Correct me if I'm wrong but this tutorial only covers centre clock right?
Sent from my Nexus 4 using Tapatalk 4 Beta
Just read the header from the link again..
powered nexus 4 by hells-Core b24

[Q] How to remove brightness and media volume sliders?

Is there a way to remove this horrible and annoying brightness and media volume sliders in the notification pull? I believe without root, there is no chance, but is there any sort of hack for rooted devices? For me, this is a deal breaker, I'm gonna return this annoying piece of software if there is no workaround. Such a waste on such a beautiful device!
It's probably a boolean in the SystemUI.apk. Once I get my Sprint version, I'll check and see if it's possible to remove.
Once the devs have a recovery we should be ok. I know on the optimus G and G pro we were able to remove it from the systemic.apk not sure what files those are lol
Sent from my LG-D800 using XDA Premium 4 mobile app
Lol, is there any way to add them to the Verizon version
Sent from my VS980 4G using Tapatalk 4
heffzilla said:
Lol, is there any way to add them to the Verizon version
Sent from my VS980 4G using Tapatalk 4
Click to expand...
Click to collapse
The code is either;
1. Removed entirely on Verizon (unlikely).
2. Disabled for verizon (Very likely.)
That said, each APK (Android Package) has a boolean folder. Usually these true or false values determine if the script is active or not. Similar to how you can enable/disable onscreen buttons via build.prop. In fact, the toggles may even be in the build.prop, but I'd like to think it's embedded in the framework-res or SystemUI.
Once I get my Sprint device I'll look around in there.
Please upload only LGsystemui.apk
Sent from my LG-P990 using xda app-developers app
Jishnu Sur said:
Please upload only LGsystemui.apk
Sent from my LG-P990 using xda app-developers app
Click to expand...
Click to collapse
Now i'm uploading my LGsystemui.apk for F320K Model .
Do you think with SQL Lite Editor can we make the mod ?
edit : UPLOADED ....
Any progress here? Amazing it would be if the top ribbon could also be optionally resized, so it doesn't take that much vertical space. :good:
The volume slider is quite useful when the device is faced down. I could do without the brightness slider though.

[Q] AT&T Remove Carrier Label In Status Bar

Has anyone attempted this? If so which XML have you edited? I can't seem to find the appropriate XML referencing carrier ID/label. Help is greatly appreciated!! :good:
Not sure but I would also be interested in this. Have you already checked the Framework-res file?
EniGmA1987 said:
Not sure but I would also be interested in this. Have you already checked the Framework-res file?
Click to expand...
Click to collapse
I have decompiled LGSystemUI.apk, and checked res/layout. My first instinct was status_bar.xml Just cant seem to find the right line... I have attached the status_bar.xml if you'd like to take a look? :good:
Looks like someone got a mod up and going now:
http://forum.xda-developers.com/showthread.php?t=2452750
Sweet! How did I not see operator text view in the status bar.xml!! Geez! Code tends to run together sometime! Thanks for the link! :good:
Sent from my LG-D800 using XDA Premium 4 mobile app
I've actually got this up and running myself with a deodexed LGSystemUI now just trying to center the clock...
Sent from my LG-D800 using XDA Premium 4 mobile app
nonoconz said:
I've actually got this up and running myself with a deodexed LGSystemUI now just trying to center the clock...
Sent from my LG-D800 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Can you specify exactly what to do to get rid of this?
mentalcase said:
Can you specify exactly what to do to get rid of this?
Click to expand...
Click to collapse
Sure, here's a guide on it now... http://forum.xda-developers.com/showthread.php?t=2455860
Sent from my LG-D800 using XDA Premium 4 mobile app
Didn't want to create another thread...
Is it possible to remove carrier info from the lockscreen for the D802?

Categories

Resources