What tells the battery where to display? - HTC EVO 3D

So does anyone know which xml file tells the battery where to display?
I know in framework-res.apk res/drawable/stat_sys_battery(_charging).xml tells which
icon to display, but I can't figure out which xml tells it where to display...
Thanks to anyone who can help.
---------- Post added at 05:18 AM ---------- Previous post was at 04:43 AM ----------
I think I've looked through almost all of the xmls... Sadly, still no luck.

Slow night, eh?

Not sure, check statusbar.apk

life64x said:
Not sure, check statusbar.apk
Click to expand...
Click to collapse
Statusbar.apk? Haven't seen that one before. The status bar is in SystemUI.apk and framework-res.apk....

The reason I wrote it is somewhere is a statusbar code. Go into settings-applications-manage applications. Hit All and scroll down the list...you will see it...Status bar. You can also freeze it in titanium. Which apk it is, I do not know. And this might be a wild goose chase also. After some digging..I believe you are correct..in systemui.apk

ok, yeah, I see your logic. However, its not an actual apk but a service(wrong word?) running from the SystemUI.apk, and framework-res.apk. That much I know. I have also done extensive editing of the xmls within those apks. I just haven't found what tells it where on the screen to put the pics. I thought it would be easy because I already knew which xmls tell which button to be displayed, just still not where. Maybe its in the smali?
Long story short, I am trying to port the MIUI battery bar that goes atop the screen lol.

Lil Buger is hard to track down, a while ago, I was trying to do a clear transparent status bar...could not find it and simply used launcher pros hide status bar function. Hope you get what you want. I'm having a ***** of a time trying to modify Rosie for landscape. So I feel for you.

Thanks. And yeah, that sounds like fun lol. Good Luck.

I have a kingdom port and am able to get it in landscape, just can't put any damn sense widgets in it. Other widgets, no problem. I believe it's a combo of XML and smalli code, just like your statusbar work. The new sense 3.0 is a fucxxxing tangle web..one thing effects others and there is no modular base to it. I am used to code and developing a mindset to work with both XML based rules and code is new. It's like learning oop programing again. I wish you luck also.

Yeah I ditched working with sense after cm came out. To many damn layers to everything.

Still haven't figured it out :/

Related

[Q] Creating a new lockscreen

I would like to develop a new lockscreen for the my Vibrant. I've looked at some of the app versions. I like the concepts, but it seems like a lot of people complain about battery life and lag of the screen. I would like to make an actual lockscreen, not an overlay.
I am currently running Bionix 1.2.1. I would like to either add the lockscreen as an option on the menu provided in the Bionix Rom or flash the lockscreen in clockwork.
My first questions is, is this possible? Second question is how, or where is there somewhere i can look to get started?
I've looked around in the forums and I haven't seen any guides or any good info on this.
This would be my first jump into development for Android, but I'm willing to put in the time and effort as long as I can find a starting point in this area or get some help.
If this is built deep into the ROM and a difficult process I can find a different project, but I'm always up for a challenge. Any help would be appreciated.
MechDan said:
I would like to develop a new lockscreen for the my Vibrant. I've looked at some of the app versions. I like the concepts, but it seems like a lot of people complain about battery life and lag of the screen. I would like to make an actual lockscreen, not an overlay.
I am currently running Bionix 1.2.1. I would like to either add the lockscreen as an option on the menu provided in the Bionix Rom or flash the lockscreen in clockwork.
My first questions is, is this possible? Second question is how, or where is there somewhere i can look to get started?
I've looked around in the forums and I haven't seen any guides or any good info on this.
This would be my first jump into development for Android, but I'm willing to put in the time and effort as long as I can find a starting point in this area or get some help.
If this is built deep into the ROM and a difficult process I can find a different project, but I'm always up for a challenge. Any help would be appreciated.
Click to expand...
Click to collapse
It's built-in quite deep, a lot of files need to be edited. Whitehawkx actually PMed me on how to do this the other day, and it sounds quite complicated.
You'll first obviously need to create your .png's to dictate the lockscreens appearance. Then you will have to have coding knowledge, along with knowledge of smali/baksmali and editing .xmls. Thats a VERY brief overview until someone more knowledgable jumps in.
I can do some programming. I've done C++ and I have done some visual basic for work. I just haven't done any Java. I think with all the information here and on Google's developers page I could work my way though it. I would just need a general guideline. I can edit the .png's. I don't think that would be much of a problem.
It might be easier if I could edit an existing one. I like the concept of the puzzle lock. I just think it is kind of hokey. It would also be nice to have a little be more info on the screen and to have emails show up.
Would you be willing to send me what Whitehawkx sent to you? I'm not sure if that is ok.
I don't mind researching my way through it and learning as I go, I was just hoping someone had done something similar.
MechDan said:
I can do some programming. I've done C++ and I have done some visual basic for work. I just haven't done any Java. I think with all the information here and on Google's developers page I could work my way though it. I would just need a general guideline. I can edit the .png's. I don't think that would be much of a problem.
It might be easier if I could edit an existing one. I like the concept of the puzzle lock. I just think it is kind of hokey. It would also be nice to have a little be more info on the screen and to have emails show up.
Would you be willing to send me what Whitehawkx sent to you? I'm not sure if that is ok.
I don't mind researching my way through it and learning as I go, I was just hoping someone had done something similar.
Click to expand...
Click to collapse
modifying would be the way to go... and unfortunately it has nothing to do with java coding, but dalvik bytecode (which is a major pain... untermensch & whitehawk are heroes with that bytecode).
Anyways, I believe it's in services.jar. You'd have to pull out classes.dex from it and decompile. check this post on how to decompile. and you're going to need the smali & baksmali jars...
anyways after you decompile you're stuck with lots of .smali files which contains the bytecode you would need to modify... it's really difficult to understand it heh
Whitehawkx said:
So you are using the other four lockscreens but want to get the rotary to work as well and are looking for what files are necessary for that to happen, correct?
The files I changed to get the rotary working on KB1 are as follows
Framework-res.apk
~public.xml
~strings.xml [I think one change here]
~Images are already in stock frameworks and already in place
android.policy.jar
~New smali used for rotary. All have "rotary" in their title
~changes to LockPatternKeyGuardView.smali
Settings.apk
~Changes to DisplaySettings.smali
~Changes to arrays.xml
I believe these are all the files I had to modify to get the rotary working.
Click to expand...
Click to collapse
heres what he said when i inquired. unfortunately he didnt go into much detail, i did send him another PM....but keep in mind these are the steps to simply inject an outside lockscreen into your current ROM, not necessarily how to build one from scratch
hopefully these steps may still give you an idea of where everything is located
I always wanted one that opens from the middle of the screen like a matinee curtain. That would be awesome.
Sent from my SGH-T959 using XDA App
Thanks guys! I'll start working with that and see what I can come up with. It looks like I have a lot to learn about it.
I'll try working through it and hopefully I will come up with some more specific questions that may be easier to answer.
Also, if you think of something that may help, let me know. I would appreciate it very much.
With the starting points already given i would build the lockscreen using aosp then port it to your rom. Once compiled you can decompile then different it
Sent from my Incredible using Tapatalk

[Q] possible to hide status bar in lock screen?

hey guys. is it possible to hide the status bar from the lockscreen? I'm good with .xml, .smali or any other kind of edit. i just need to be pointed to where I would need to go.
I tried searching and came up empty handed. i'm trying hard to like the lock screen. i already changed the backgrounds (much better now), currently working on a custom lockring, last thing would be to hide that ugly status bar...it's only showing me what the lockscreen already shows anyways.
thanks for the info.
Download the app Widget Locker...U can remove taskbar and also a lot of customization to your style
I'm a big WidgetLocker fan, with my own custom themes made and all that when i was on the Evo 3D. i'm trying to move on with the times and use this nifty sense lockscreen. just has a few kinks to work out.
but if i dont end up fixing it to my liking soon enough i'll download widgetlocker again.
anyone else have any ideas as to how to get this done?
If you go into titanium backup, and freeze statusbar, it will do what you want, it will also remove in regular screen, possibly decompile lockscreen.apk and see if you can do it there.
life64x said:
If you go into titanium backup, and freeze statusbar, it will do what you want, it will also remove in regular screen, possibly decompile lockscreen.apk and see if you can do it there.
Click to expand...
Click to collapse
that is not what I want to do at all. I don't want to make the status bar unavailable everywhere in the system. just within the lockscreen.
if I knew where to go, I can make .xml and .smali edits or whatever else. I just don't know how to search for things from scratch :-(
Max_Pain said:
that is not what I want to do at all. I don't want to make the status bar unavailable everywhere in the system. just within the lockscreen.
if I knew where to go, I can make .xml and .smali edits or whatever else. I just don't know how to search for things from scratch :-(
Click to expand...
Click to collapse
I'm just guessing, so this could be a useless thought, but... I think checking in idlescreen base would be a good start. You wouldn't probably want to mess with this in system UI because that would likely just hose the whole bar. Team d3rp seems to have maybe figured out making the bar transparent, which would leave the icons and if course be clear everywhere else too... but it's still finicky across the roms, so not quite done yet. pstevep is the man, and maybe could help? See what you can find and then maybe send him a pm.
bumpity bumb
bump, bump, bumpity bump.
any way to do this?
i would say edit lockscreen.apk (decompile and fish around) and also look in a androidpolicy.jar probably some lines of code your could remove/add to make it happen.
clever idea by the way. i am still trying to resolve issues with my idea of clearing notifications from the lockscreen by double tapping the home key. had it figured out for a little bit but it was causing apps to force close :/
again i like your idea... i probably wouldn't use it myself simply because i wouldnt be able to see important details or notifications etc without unlocking the phone
Bump

Theming Question

Hello world. Quick question on the systemui.apk....I noticed my sprint cdma has a ton of unused png files in there for Verizon and stuff. I'm assuming its safe to remove those? Seems cheap to just dump extra crap on phones that hit multiple carriers but I'm sure it makes sense from their angle. I'm away from the house and need my phone up so I can't just nand and test just yet. Any input?
I've done a few quick "first attempt png mods" in there but I wanted to ask before I gut all the extras and do my full theme now that i'm comfortable. I'll share the quick icon replacements i've done for now in a link below (spent maybe 15m on em today so pardon minor imperfections).
https://dl-web.dropbox.com/get/mail.jpg?w=da362127
^Link is fail...i'll repost somewhere else when i get home. (15SEPT 0758 hrs EST)
-Icons for alarm, wifi, virbate mode and headphones shown (and invis gps off)
Also...anyone have a guide for how to remove item containers for stat bar icons? As you can see (via the gap) i've inserted a blank icon for gps off and sadly two or three icons show to the left of it (one being the headphone icon, the other being account sync...and i think one more).
Thanks all. As i make better png's i'll try and host / share them!
Sent from my PG86100 using Tapatalk
Skyphos said:
Hello world. Quick question on the systemui.apk....I noticed my sprint cdma has a ton of unused png files in there for Verizon and stuff. I'm assuming its safe to remove those? Seems cheap to just dump extra crap on phones that hit multiple carriers but I'm sure it makes sense from their angle. I'm away from the house and need my phone up so I can't just nand and test just yet. Any input?
I've done a few quick "first attempt png mods" in there but I wanted to ask before I gut all the extras and do my full theme now that i'm comfortable. I'll share the quick icon replacements i've done for now in a link below (spent maybe 15m on em today so pardon minor imperfections).
https://dl-web.dropbox.com/get/mail.jpg?w=da362127
-Icons for alarm, wifi, virbate mode and headphones shown (and invis gps off)
Also...anyone have a guide for how to remove item containers for stat bar icons? As you can see (via the gap) i've inserted a blank icon for gps off and sadly two or three icons show to the left of it (one being the headphone icon, the other being account sync...and i think one more).
Thanks all. As i make better png's i'll try and host / share them!
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Alright, so first question, is it OK to remove the unused pngs.
Yes. Kinda.
If you remove them without editing the associated xml you will get compile errors. So in theory you could just extract the apk and remove them. Or, decompile and edit the xmls as well as remove the pngs.
As far as removing the gps off icon from being displayed, it's in an xml. Don't know of a tutorial for it, just do some file surfing
I just started theming myself, it's pretty rewarding making your phone look like you want it to, huh?
Sent from my Cyanogenmodded shooter
Btw, the link doesn't work for me.
Sent from my Cyanogenmodded shooter
To reply to the OP, without quoting that bigassed thing: there aren't enough of the "other carrier" pngs to make a difference, so just leave them, IMHO. They're not gonna hinder performance or space issues really.
Sent from my 3::::::::::::Ð
Thanks for the input guys. It is very rewarding to have your phone display things you create and want to see! Honestly once you get past the ramp up time to figure out what to do and how to do it...it can be done very quickly (at least individual changes that is). My biggest problem is trying to think of what I want to do for my daily driver. Its cool enough being able to place your custom images but I dont want it to be a hodge-podge of individual "cool things" but rather look as if they were all selected intentionally. Maybe I'm to anal ... which leads me to the next post:
Yeah I guess there arent TOO many other carrier icons on there..and they're small enough to be negligable....but I'm anal lol.
Off to find the XML edits for the many things we discussed here today.

[Q] Editing Project-V Lockscreen

I would like to edit the "Android unlock" lockscreen that is included with Project-V, I have found the smali file (LockScreen.smali in android.policy.jar) that I believe contains the code for elements I want to remove, but I have zero java coding experience.
I want to remove the next alarm and battery charging notifications that show below the clock on the AOSP lockscreen.
Can anyone help? Or point me to some resources/guides for learning the language?
No expert here or anything but I would think that would be a smali file somewhere in android.policy.jar and not xml.
Sent from my GT-I9000
jneal9 said:
No expert here or anything but I would think that would be a smali file somewhere in android.policy.jar and not xml.
Sent from my GT-I9000
Click to expand...
Click to collapse
Ya, I have started looking in there, but so far I'm not finding anything
Yeah smali is pretty low level java and tough to understand. Maybe try and PM Romanbb. He seems be very good with java.
Have you had any luck with this? I want to do pretty much the same thing, except I want to keep the alarm details. I know a bit about Java but lockscreen.smali just gives me a headache..
Ticklefish said:
Have you had any luck with this? I want to do pretty much the same thing, except I want to keep the alarm details. I know a bit about Java but lockscreen.smali just gives me a headache..
Click to expand...
Click to collapse
Here's what Roman said:
"Removing them via smali will be a huge pain. They are defined an XML layout file in framework-res.apk, you could try and modify them to shove them off the screen, or make the dimensions small enough to where it's not visible. Don't try and remove it from the XML file though, it'll throw smali errors."
WidgetLocker is fulfilling my needs.
Ah, well..I suppose it depends on how much of a stubborn nerd you are.
I've tried WidgetLocker and it does seem to be a decent app, but it's not for me. I started out wanting to modify the stock lockscreen and, dammit, I'm going to do it. I've done some fiddling with the smali code and I've got a pretty good idea what to do, I just need some free time in which to do it.
Free time? Around Christmas? Nah..
Thanks for your tip about removing them from the layout files. This was the first thing I tried and I ended up with all sorts of errors once I'd pushed the framework back to the phone.

UOT Kitchen works on the Amaze - for some things.

Observations:
I was skeptical at first because there are no QHD resolutions listed in UOT kitchen, but figured if I supplied the files, then it would maintain the resolutions in the files.
Must have all three files to upload for it to compile correctly...
1. SystemUI.apk
2. Framework-res.apk
3. com.htc.resources.apk
I've changed the battery indicatior, added statusbar icons successfully, and change the background to more transparent on the Notifications/Quick Setting pull-down. I've also successfully changed the lockscreen icons.
I'm having difficulties making the statusbar more transparent, however. They have a setting on the Status Bar tab, but it seems to have no effect.
I did try to manually adjust the transparency on status_bar_background.png in Framework-res.apk, but it didn't seem to do the trick. Is there another file that is used based on the Sense base?
Nope. Those are the files needed, one bit of advice though--triple check the operational file it uses.
I.E. For boot animation, use the CM file directory, not the suggested data/local. It may be something in the framework.res file that needs to be changed. UOT works for EVERYTHING, provided you make sure the operational file is correct upon submission.
jeepers007 said:
I'm having difficulties making the statusbar more transparent, however. They have a setting on the Status Bar tab, but it seems to have no effect.
I did try to manually adjust the transparency on status_bar_background.png in Framework-res.apk, but it didn't seem to do the trick. Is there another file that is used based on the Sense base?
Click to expand...
Click to collapse
Hmmm Sense(or any ginger for the matter) responds to the status bar B/G used in SystemUI.apk(drawable HDPI). And the images used on all the qHD phones from HTC use the same size for .pngs as their WVGA counterparts(some things are bigger, but not many), scaling seems pretty good AFAIK.
Ace42 said:
Hmmm Sense(or any ginger for the matter) responds to the status bar B/G used in SystemUI.apk(drawable HDPI). And the images used on all the qHD phones from HTC use the same size for .pngs as their WVGA counterparts(some things are bigger, but not many), scaling seems pretty good AFAIK.
Click to expand...
Click to collapse
Found it! Giving that a try.
Thanks!
Trust me, it works. I cannot remember off the top of my head (bit drunk) but UOT works on just about everything. You need to double check where each enabled visual/operational is WITHIN your choice of rom. Then, you can triple check UOT's placement of the modified file.
I'm trying to remove the clock, but I couldn't find where that was located anywhere in there. Anyone have any pointers?
I'm a kitchen noob so I just made a simple battery change that I'm going to put on when it's done cooking.
(BeastMOD 1.3.1)
Spovik said:
I'm trying to remove the clock, but I couldn't find where that was located anywhere in there. Anyone have any pointers?
I'm a kitchen noob so I just made a simple battery change that I'm going to put on when it's done cooking.
(BeastMOD 1.3.1)
Click to expand...
Click to collapse
Let me look into it when I get home...I might be able (time willing) download your current rom and cook it--or at least find where to zap the clock so you can do it to your liking.
My battery cooking turned out to cause a boot loop so no-go on that. I appreciate any help you can offer and let me know if there's anything I can do to make things easier.
Spovik said:
I'm trying to remove the clock, but I couldn't find where that was located anywhere in there. Anyone have any pointers?
I'm a kitchen noob so I just made a simple battery change that I'm going to put on when it's done cooking.
(BeastMOD 1.3.1)
Click to expand...
Click to collapse
The clock is in the service.jar.. The kitchen won't work for that mod.
okay, I think I'm starting to get more comfortable with this kitchen.
I've got transparent status bar, and modified status bar icons.
Now, I'm looking for some help with another graphic. I unlock my phone for use with a pin. I see lockscreen in UOT only seems to modify the icons and gesture styles.
Where can I look to change the color of the numeric pin keys?
Spovik said:
My battery cooking turned out to cause a boot loop so no-go on that. I appreciate any help you can offer and let me know if there's anything I can do to make things easier.
Click to expand...
Click to collapse
It is imperative that you open your rom .zip and extract:
com.htc.resources.apk
framework-res.apk
SystemUI.apk
All are found within your particular rom package. Upload via UOT's upload page. That is how their kitchen knows what to change and give you an individualized .zip to flash. If you want an in-depth explanation, PM me and I would be happy to go through the whole process step-by-step. Once you get the gist, it is easy as pie.
As for the clock, yea...it is under services.jar and UOT does not change that. There can be another way to delete it, if I have time today I will try to make a flashable .zip for just the clock delete--unless someone beats me to it.
Yeah, I went through the UOT guide and video tutorial before I started working with UOT (I really do RTFM) and it still crashed out on me. I'll give it another shot when I have time available and I can get in.
As for the flashable zip, I'd love you long-time.
Spovik said:
Yeah, I went through the UOT guide and video tutorial before I started working with UOT (I really do RTFM) and it still crashed out on me. I'll give it another shot when I have time available and I can get in.
As for the flashable zip, I'd love you long-time.
Click to expand...
Click to collapse
I'm not going to have the time to make a clock delete zip....work is busy and getting ready for the holiday. It's not too hard for someone familiar with the sdk to use smali/etc. To push the needed code.
Sent from my HTC Amaze 4G using xda premium
TheSneakerWhore said:
I'm not going to have the time to make a clock delete zip....work is busy and getting ready for the holiday. It's not too hard for someone familiar with the sdk to use smali/etc. To push the needed code.
Sent from my HTC Amaze 4G using xda premium
Click to expand...
Click to collapse
I've seen some code about it, but didn't know if it's exclusive to the device type, or if it's the same basic thing for gingerbread so I never jumped. I'll see if I can mess with it later this week.
Spovik said:
I've seen some code about it, but didn't know if it's exclusive to the device type, or if it's the same basic thing for gingerbread so I never jumped. I'll see if I can mess with it later this week.
Click to expand...
Click to collapse
As long as you pull the services.jar file out of the Rom you want to flash to, you are fine.
Sent from my HTC Amaze 4G using xda premium

Categories

Resources