[Q] [Solved] SystemUI.apk modifications/ failed attempt to uncenter the clock - LG Revolution

Hey guys,
So I decided to take a stab at altering SystemUI.apk to uncenter the clock, but I've run into some problems. Just FYI, I am total noob at this so I could be doing something incredibly stupid, but oh well.
Anyway, I was able to successfully decompile the apk, edit res\layout\status_bar.xml to set <com.android.systemui.statusbar.Clock... android:gravity="right">, build the apk again, sign it, and push it to my phone, however after all that the status bar just does not show up. I don't think it's the decompiling, building, or signing that's messing up because I performed all of those without editing any of the xml files, pushed it to my phone, and everything worked perfectly.
So what am I missing? Is changing "center" to "right" really enough to kill the statusbar? Do I need to edit something in framework-res.apk or some other file to be compatible with the new SystemUI.apk? Or is it that I need to change something in the smali folders as well as the res folders for it to work?
Any ideas that you guys have would be awesome. I'm not sure if I'm just missing something simple, or if I'm in way over my head with this stuff and need to do more than the hour and a half research and trial and error that I've put in so far =) Thanks guys!

There's a bit more to it than that
There's some moving around to do too.
I attached the original status_bar.xml for you to compare to. (it's already decompiled)
If you wanted you could just replace it with this one. Thought it might help to see what all was changed.
(the attached zip file is not flashable)

Don't sign system apps either. Signing may be why it isn't showing up but I've never signed a system app to know and without looking at it I think you need to put right|center not just right and I am not positive but you may need to move the padding of the status bar icons to the left so there is no overlap.
Sent from my Galaxy Nexus using xda premium

Easy guys. Just take a stock systemui.apk and move /res/layout/status_bar.xml over to the modded one. Then push. Don't even need to decompile.
Sent from my VS920 4G using Tapatalk 2

mtmichaelson said:
Easy guys. Just take a stock systemui.apk and move /res/layout/status_bar.xml over to the modded one. Then push. Don't even need to decompile.
Sent from my VS920 4G using Tapatalk 2
Click to expand...
Click to collapse
Hey its he wanted to do it himself
Sent from my Galaxy Nexus using xda premium

MT makes it look like a walk in the park...lol
mtmichaelson said:
Easy guys. Just take a stock systemui.apk and move /res/layout/status_bar.xml over to the modded one. Then push. Don't even need to decompile.
Sent from my VS920 4G using Tapatalk 2
Click to expand...
Click to collapse

capt730 said:
MT makes it look like a walk in the park...lol
Click to expand...
Click to collapse
Well his method really is a walk in the park if you can move one file to another lol.
Sent from my Galaxy Nexus using xda premium

Hmm, something is still wrong. I tried editing the status_bar.xml again, but the status bar still wouldn't show up. Then I deleted the file that was there and pasted in the stock status_bar.xml that Kane posted, pushed it to my phone, and still no status bar/notification pull down. Am I not compiling the apk right?
I'll be on IRC for the next 40 minutes or so if anyone wants to hop on and help me out =)

Did you compile the apk after replacing the XML?
Sent from my VS910 4G using Tapatalk 2

Yup, I actually finally got it to work and just need to tweak a couple things. I took the SystemUI.apk from the latest ICK.zip update, modified the SystemUI.apk file, then created a flashable zip for it. I don't know if it was using a flashable zip that worked, where just using adb push didn't, or if starting over with a different SystemUI.apk was what did it.
@kane: BTW, do you know the hex color code for your ICK theme icons? I was trying to match the color for the clock, but it's slightly off. And Thanks for the stock apk, without comparing the two, I never would have figured out the format for putting the clock back =)
@beamer: Thanks for the heads up to not sign the apk, worked without doing so. That was an annoying step anyway =)

the stock ICS colors are 33B5E5 and 0099CC
I used 33B5E5 for all the edits I did in the ICK theme
0099CC is a little bit darker

I didn't read the whole post but after pushing systemui did you reboot if you don't reboot you won't get a statusbar
Sent from my Galaxy Nexus using xda premium

Beamer9408 said:
I didn't read the whole post but after pushing systemui did you reboot if you don't reboot you won't get a statusbar
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I did. I'm thinking the problem was actually the dalvik-cache, maybe? After i got the clock right aligned, i tried to hide some of the status icons like mute and the alarm clock, but i couldn't get any of them hidden and it was driving me crazy. Then i decided to wipe dalvik and it worked perfectly.
Sent from my VS910 4G using xda premium

Related

theming question

im trying to make a theme and can't seem to change the signal bars icons. everything else in the theme works just fine. i can change all the other notification icons. but when i change the icons for the signal bars, it for some reason doesn't do anything. every time i reboot the phone it goes back to the stock signal bars. any ideas? also im wondering if you know how to/where to go to remove the recently used apps from the notification bar???
thanks!
any help would be appreciated.
How are you trying to change them?
They are located in your frameworks files.
They are named:
stat_sys_signal_0.png
stat_sys_signal_1.png
stat_sys_signal_2.png
stat_sys_signal_3.png
stat_sys_signal_4.png
Sent from my Thunderbolt using Tapatalk
Double post, sorry
gadget! said:
How are you trying to change them?
They are located in your frameworks files.
They are named:
stat_sys_signal_0.png
stat_sys_signal_1.png
stat_sys_signal_2.png
stat_sys_signal_3.png
stat_sys_signal_4.png
Sent from my Thunderbolt using Tapatalk
Click to expand...
Click to collapse
Negative, they are in com.htc.resources and the signal bars are cdma_sys_4signal and the data icons are cdma_sys_data and just search lte to find the lte icons in the same folder.
you need to change them in com.htc.resources.apk
they are :cdma_sys_4signal_X (x being 0-4)
edit:
HEH mob just beat me to it...
anyone know how to remove the recently used apps from the pulldown???
Drukan said:
you need to change them in com.htc.resources.apk
they are :cdma_sys_4signal_X (x being 0-4)
edit:
HEH mob just beat me to it...
Click to expand...
Click to collapse
oh and i tried this and still no luck......
i dont know what i'm doing wrong? i can change every other icon EXCEPT those! i change them, flash the update, and they just won't change! ugh..... im getting so frustrated with this...... hahaha those are the only icons that i can't seem to change no matter what i do.
update: i FINALLY got it to work! hahaha that was so frustrating! now i just need a fix for the recently used apps and ill be good. =) and I found an update.zip for getting rid of the recently used apps. Getting close on this theme. Thinking of calling it thunder-lime...... Unless I can think of something better.
i could have sworn i answered this this morning maybe it was another forum
Are you skltr on droid forums if so i just posted a link to the thread with the deleted apps from drop menu
Sent from my ADR6400L using XDA App
johnsonsteven1986 said:
Are you skltr on droid forums if so i just posted a link to the thread with the deleted apps from drop menu
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
yeah that's me. =) i got it all figured out. thanks so much for the help! this theme is coming along really nicely if i dont say so myself. =)

[Q] Help Theming notification pulldown....

Can anyone help me by telling me where the files are located to edit the notification pulldown? I am looking to change colors, transparency, etc.
I am trying my hand at theming JVH.
Thanks
Search google for "uot" and check out the online theme kitchen.
Sent from my GT-I9000 using Tapatalk
System ui apk
Sent from my Samsung Captivate
Sounds interesting, I went into the System ui apk, and opened "res" folder, then "drawable-hdpi", and found what I believe to be the right file, "status_bar_background.png" is this the correct file to edit for say, changing the transparency in gimp or photoshop?
I, like vdubguy, would like to know how to do this without using the kitchen.
bigsmitty64 said:
Sounds interesting, I went into the System ui apk, and opened "res" folder, then "drawable-hdpi", and found what I believe to be the right file, "status_bar_background.png" is this the correct file to edit for say, changing the transparency in gimp or photoshop?
I, like vdubguy, would like to know how to do this without using the kitchen.
Click to expand...
Click to collapse
With the new system ui API you ,have to decompile the apk and change a value as it points the background to a color code and not the image. Once you change that then you can change the image to add transperncy. You will also have to decompile it to make color changes as well
zelendel said:
With the new system ui API you ,have to decompile the apk and change a value as it points the background to a color code and not the image. Once you change that then you can change the image to add transperncy. You will also have to decompile it to make color changes as well
Click to expand...
Click to collapse
Ahhh....Thanks Zel. Looks like we got some us some learnin to do
I have to say that, after spending a couple hours just looking around in the rom, trying to find things and figure out what is what, I have a whole new respect for all you devs and themers in here. My hat is off. Thank you.
xml
Ok I figured out what to change but can't seem to edit the xml. Any tips?
vdubguy said:
Ok I figured out what to change but can't seem to edit the xml. Any tips?
Click to expand...
Click to collapse
decompile w/ apk manager and use notepad++ to edit
When you get it figured out, could you do everyone a solid and post the updated files and where they should go? I'd be your bestie for life!
Sent from my GT-I9000 using XDA Premium App
Thanks Thinkk!
tnt533 said:
When you get it figured out, could you do everyone a solid and post the updated files and where they should go? I'd be your bestie for life!
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
I'll do my best but it might be a while!

[Q] Theme Editing

Hello, I bought Sonny Sekhon's Lucid Theme from the market and it's almost perfect for me. EXCEPT the pull down notification. How do I edit it so that it would look like the pulldown from minimalbread? It's the only thing I want to change from Lucid.
I also got the MellowYellow theme but I want to change it so that the horizontal dividers in menu are transparent or black (as long as I dont see them. ) Please see attached screenshot.
You would have to decompile the .apk then recompile it.
MIUI themes are much easier to mod
Nah you could edit it without d compiling with winzip. Just open the apk in winzip and swap the files out.
Sent from my Nexus S MV from the XDA Premium app.
Those lines are more than likely .9 PNG files. In my experience swapping files in winzip causes errors, but I guess that works too
Sent from my Nexus S using xda premium
nbeebe24 said:
Those lines are more than likely .9 PNG files. In my experience swapping files in winzip causes errors, but I guess that works too
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
I've never had a problem. Done it many many times.
Sent from my Nexus S MV from the XDA Premium app.
Also they are nine patches.

Center Clock Mod[dead]

Here is a center clock mod I have thrown together..
Basically this will change anything in SystemUI to stock gingervolt but will leave the rest of what was themed just throwing it out there If anyone wants to implement it in a theme just ask..also your Battery won't look like that unless you are on revocomb THIS WAS MEANT TO BE FLASHED OVER STOCK GINGERVOLT 1.3
Download: Center Clock Mod
http://www.multiupload.com/RC8T8TE804
A know issue as of right now is if you get that many notifications they will over lap the clock also the text like you have recieved a new text message will over lap im working on that but i have to go for now.
I have removed the blur from the background when using the power menu will post the zip in a little while
Awesome, thought about doing this on the new theme I'm working on. Will have to figure out how to fix the overlapping thing. Good luck with that.
From my Kangwich Bryce Device
That's awesome. I may use this. With your permission of course.
GINGERVOLTED!
Sick nasty!
Edit: which file is it specifically that's changed?
VS910 4G Kangwich
status_bar.xml
Sent from my VS910 4G using xda premium
KaneOfMars said:
Awesome, thought about doing this on the new theme I'm working on. Will have to figure out how to fix the overlapping thing. Good luck with that.
From my Kangwich Bryce Device
Click to expand...
Click to collapse
Kane I thought I had a plan for this but it only helped with notifications not the text right now I'm thinking off making them shorter or eliminating it that's what icons are for correct? Lol
Sent from my VS910 4G using xda premium
Beamer9408 said:
Kane I thought I had a plan for this but it only helped with notifications not the text right now I'm thinking off making them shorter or eliminating it that's what icons are for correct? Lol
Sent from my VS910 4G using xda premium
Click to expand...
Click to collapse
Exactly! Its pretty rare for me to be looking at my phone the moment I get a noti so I never see the txt anyway.
From my Kangwich Bryce Device
Tried to put that xml in my systemUI and it didn't take for some reason.
GINGERVOLTED!
Edited the systemui and now have a near perfect miui status bar, thx!
Sent from my VS910 4G using Tapatalk
Any idea how i would remove the am and pm and possible change the clock font?
Sent from my VS910 4G using Tapatalk
G4 Man2 said:
Edited the systemui and now have a near perfect miui status bar, thx!
Sent from my VS910 4G using Tapatalk
Click to expand...
Click to collapse
can you post your edited version?
revo_65 said:
can you post your edited version?
Click to expand...
Click to collapse
Oh yeah, sorry i forgot about posting it earlier, ill post it as soon as possible
Sent from my VS910 4G using Tapatalk
G4 Man2 said:
Oh yeah, sorry i forgot about posting it earlier, ill post it as soon as possible
Sent from my VS910 4G using Tapatalk
Click to expand...
Click to collapse
Cool thanks!
GingerVolt powered by MTM
G4 Man2 said:
Any idea how i would remove the am and pm and possible change the clock font?
Sent from my VS910 4G using Tapatalk
Click to expand...
Click to collapse
You could use 24-hour format.
jamRwoo said:
You could use 24-hour format.
Click to expand...
Click to collapse
Eeeeeeeh id rather not
Anyway, anyone know how i would enable transparency?
Sent from my VS910 4G using Tapatalk
In the status bar?
Sent from my VS910 4G using xda premium
Beamer9408 said:
In the status bar?
Sent from my VS910 4G using xda premium
Click to expand...
Click to collapse
Yepperino
Sent from my VS910 4G using Tapatalk
Easiest way would be enable it in uot kitchen otherwise you need to decompile SystemUI and go about it that way.
Sent from my VS910 4G using xda premium
revo_65 said:
can you post your edited version?
Click to expand...
Click to collapse
Ive attached my framework-res, systemUI, and RES_cappuccino. its a custom status bar and a very few other changes because stock matches this small little theme well. ive just been putting the files into the gingervolt 1.3 zip and flashing it because im new at this and have no idea how to make a flashable zip :/
G4 you should start a new thread on this and continue building upon it! Also just take my original zip for center clock mod open it as archive add a new folder inside the system folder name it app put SystemUI.apk in that and take RES_cappuccino.apk and put it in the framework folder with the framework-res.apk then go to the end of the META-INF folder tree edit the updater script where it says ui print inside the " and make it say what you want it to then create a new zip file rename to what you want it to be and move the everything out of the center clock mod zip into the new one you created and if you did it right it will flash in clockwork mod but creating a new zip after you change the updater script is a must because when you edit that file in the original zip it will break it. Also if you want hop on irc sometime and I would be happy to wall you through it. It really isn't hard. I was hoping someone would take that and do something with it the only reason I created it was for a baseline for someone to start something sweet on.
Sent from my VS910 4G using xda premium

4g icon

What's up themers. Not sure if this has been covered but is there a way yank the 4g icon set from the att systemui and have it work with the sprint systemui?
I rather like that icon over the basic looking sprint version.
Thanks.
Sent from my HTCONE using xda app-developers app
extract the images you want from the att zip/apk, then find where they are in the rom or zip you're installing and just drag the at/t icons into the sprint rom/zip, it will replace the original sprint icon with the new at/t one AS LONG AS FILE NAME IS THE EXACT SAME.
Mucho thanks.
Also, I'm on viper rom and wondering how to go about changing the notification shortcut icon order. I like Clean roms order.. Exact same way I'd do it.. Would the same technique of extracting/copy/replace work?
*edit: I'm in the drawable-xhdpi folder and there's a bunch of icons in there, and what seems to be like the att 4g set as well. Maybe all htc ones have these files?
Sent from my HTCONE using xda app-developers app
ardeedas said:
Mucho thanks.
Also, I'm on viper rom and wondering how to go about changing the notification shortcut icon order. I like Clean roms order.. Exact same way I'd do it.. Would the same technique of extracting/copy/replace work?
*edit: I'm in the drawable-xhdpi folder and there's a bunch of icons in there, and what seems to be like the att 4g set as well. Maybe all htc ones have these files?
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
in that case i would do it differently... i'd find the bit i wanted from clean rom and just copy that whole apk/zip to the viper rom zip, making sure to over-write the viper one. Make sure you backup before trying, just in case. Haven't tried this myself but i've done it with similar tweaks...etc from different roms/themes
---------- Post added at 03:35 AM ---------- Previous post was at 03:24 AM ----------
you can pretty much extract the images from ANY theme/rom/mod...etc and copy them to a rom/tweak package that's compatible with your version of the 'one' and it should work, as long as they got the exact same name and you're not going a million miles away from the original icon/image (in terms of icon size, transparency).
I swear, i've just spent 2 days messing about trying diff statusbar icons, clocks, even been trying to get the 'touch of blue' dialer from this forum to work on trickdroid, fun 2 days tho ahaaha
Thanks for the reply.
A few questions:
When copying the wanted apk/files from one rom to another, should I use the APKTOOL decompile/compile or can copying/renaming the wanted file(s) in the system folder of my phone work just the same?
Sorry for the n00bishness.. kinda new to the whole theme-ing thing.
and keep at it man.. I'm just getting my feet wet into theme-ing but well worth the effort for making our phones "ours"
ardeedas said:
Thanks for the reply.
A few questions:
When copying the wanted apk/files from one rom to another, should I use the APKTOOL decompile/compile or can copying/renaming the wanted file(s) in the system folder of my phone work just the same?
Sorry for the n00bishness.. kinda new to the whole theme-ing thing.
and keep at it man.. I'm just getting my feet wet into theme-ing but well worth the effort for making our phones "ours"
Click to expand...
Click to collapse
just drag and drop the apk from the rom/mod you want into the zip you're about to flash, just don't take mods from sprint section and use them on an at/t rom, or international mods into sprint/att/t roms...even then you can have problems (like trickdroid and arhd in the other forum). About the dialer (from this forum) i want, i can't get it to work BUT as soon as someone makes a mod in MY forum for a dialer i know it will work, all i'll have to do is replace all the images (and sometimes ONLY the images you want)
trial and error, if error occurs.... nandroid
This is a systemui.apk that you need to push as i dont know how to make a flashable one
Nice! Thank you for this.
*edit: doesn't seem to have worked for me. Replaced systemui.apk in system/apps, rebooted, still looks the same.
Anyway you could compile an apk with the white 4g icons and indicators rather than the orange and blue color ups?
Sent from my HTCONE using xda app-developers app
ardeedas said:
Nice! Thank you for this.
*edit: doesn't seem to have worked for me. Replaced systemui.apk in system/apps, rebooted, still looks the same.
Anyway you could compile an apk with the white 4g icons and indicators rather than the orange and blue color ups?
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
You have to make sure your system is mounted as r/w or else it'll look like it went through but nothing will happen.
Thanks! That worked.
Sent from the ONE

Categories

Resources