Notification drop down background change - Nexus 4 Q&A, Help & Troubleshooting

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?

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).

Stock emoji drawables... Where are they?

I was curious if any one knows where the drawables for the faces and all the other emojis are. I decompiled the stock emoji keyboard and did not find them there, maybe they are in the source code of fonts or framework... Not sure haven't had a chance to download aosp code. I really like the icons and wanted to replace the cm emojis with these to give those a more unified look, hopefully someone can help
Sent from my Nexus 4 using xda premium
hev88 said:
I was curious if any one knows where the drawables for the faces and all the other emojis are. I decompiled the stock emoji keyboard and did not find them there, maybe they are in the source code of fonts or framework... Not sure haven't had a chance to download aosp code. I really like the icons and wanted to replace the cm emojis with these to give those a more unified look, hopefully someone can help
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Used to be in the MMS apk. Haven't checked yet but I'm sure they're still there
Sent from my Nexus 4 using xda premium
nbeebe24 said:
Used to be in the MMS apk. Haven't checked yet but I'm sure they're still there
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I know the cm emojis are in MMS.apk but the ones from here http://forum.xda-developers.com/showthread.php?t=2012857 are the ones i want to use and i have no idea where they come from. I decompiled the app and it only has drawables for keyboard keys and not the actual emojis... which leads me to believe it might be a font the apk accesses
Though i may be wrong.
Sent from my Nexus 4 using xda premium
You're right it's part of one of the fonts. I remember awhile ago I was trying to get emoji working on CM9 and there was a font you had to replace. This thread might help you: http://forum.xda-developers.com/showthread.php?t=1879056
Sent from my Nexus 4 using Tapatalk²
kcls said:
You're right it's part of one of the fonts. I remember awhile ago I was trying to get emoji working on CM9 and there was a font you had to replace. This thread might help you: http://forum.xda-developers.com/showthread.php?t=1879056
Sent from my Nexus 4 using Tapatalk²
Click to expand...
Click to collapse
Thanks man ill check it out in the morning
Sent from my Nexus 4 using xda premium

[Q] lockscreen wallpaper

I have looked everywhere , where is the default lockscreen wallpaper located within the rom, like where is the default lockscreen dir. driving me nuts.
Thanks anyone.
TheAxman said:
I have looked everywhere , where is the default lockscreen wallpaper located within the rom, like where is the default lockscreen dir. driving me nuts.
Thanks anyone.
Click to expand...
Click to collapse
Most of the time it is built into the rom into one of the apks. I cant remeber off hand but the default is usually compressed in the apk.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
neo4uo said:
Most of the time it is built into the rom into one of the apks. I cant remeber off hand but the default is usually compressed in the apk.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
Exactly what I need, thanks...so it id embedded in a .apk, what I thought, good start, thanks.
I havent rooted my phone yet, but I mighr today and I wilp find it for you if you still havent found it.
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
They're in SecWallpaperChooser.apk (/system/app/)
Once you decompile it, the wallpaper jpg's are in /res/drawable-sw359dp-xxhdpi
GTRagnarok said:
They're in SecWallpaperChooser.apk (/system/app/)
Once you decompile it, the wallpaper jpg's are in /res/drawable-sw359dp-xxhdpi
Click to expand...
Click to collapse
You da man...thanks ..exactly where it was...
Thanks everyone for the help.

[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?

[MOD] Batterty percentage in locksreen status bar plus green carrier text

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

Categories

Resources