[Q] Android 4.4 : how to mod battery display - Android Q&A, Help & Troubleshooting

Hello everybody
With some friends, I used to mod battery display in the status bar by modifying some PNG.
But, with android 4.4 things appear to have changed...
We are facing a real issue attempting to understand the way the system operate to display battery in the kitkat version of android
In the previous versions of android, displaying battery icons used to require PNG and two XML files in the systemUI. It seems that it's different now under kitkat
We've seen, on some custom ROM, some battery variants, even on Google ROM. But so far, despite my searches, I've not seen any in deep explanation on the "how to" mod the battery display, just like we usually did for our modd before kitkat.
Maybe we missed something .
At this point, as modder, we are completely hanged
According to our researches, commands are now located in smalis, but... we don't know how to modify them and make them work.
However we don't know where to find images (ex PNG)... what miracle explains the battery images displaying.
Could you please* explain us the way it works now?
I think a real answer could help many members of the whole community.
Great thanks for all answers.

Franck thank you for having posted THE question that a lot of people are asking since the arrival of KK.
It is truly amazing that nobody has responded to this call for help so far.
I am one of those people who expect a detailed response to real progress.
Thank you in advance for that, or those who want to take the time to explain.

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

modding villainROM

Hi guys
i am a complete novice when it comes to modding and roming phones
i have however, with some difficulty managed to install villain rom on my phone
the next step for me is to start modding and to begin with i need your help.
My primary objective is to be able to select certain elements of peoples themes and roms and modify them to create my own personalised galaxy s2
I have mad a short list by no means defitive on things i would like to do, as well as providing other novices with a good thread on where to begin your modding days
1. Install the Bravia HD engine
2. Custom icons
3. Custom status and drop down bar
4. Get rid of the horid stock grey and white anywhere on the phone
and thats pretty much it for now.
I look forward your responses and advice on where to begin my journey...
Many Thanks
To the top

[Q] Custom Rom Setting Menu

Hey guys, I recently got into the chef scene and feel iv had great progress thus far.
My rom null_ for the SGSIII (link in signature for further info) has come a long way since its first release a while back.. Im wanting to take it to the next level tho.
What I am aiming to do is a add a custom menu to the system settings .apk, Something like "Rom tools" similiar to AOKP's, which would simply list links external apk's of my choice with there icons. Doesnt have to be nothing majorly flashy..
Id obviously have to disable the launcher icon for these apk's also.. seems easy enough..
If anyone can point me in the right direction to a guide or help me out on this project I would appreciate it very much. Pretty much any information is welcome.
Thanks for reading.

[Q] What's the name of this ROM?

Aparently I cannot post this question elsewhere so I ask you all here.
I saw once a custom ROM that i liked very (very!) much. The idea behind it and the general looks of it. But i don't remember how it was called.
Maybe you could help me a little. I'll try to describe it:
-it has a clean interface like a list on the homescreen (not like classic android homescreen more like windows phone 7/8 homescreen)
-every message or email it is shown in this windowish homescreen
-every item on the homescreen has on the left side color stripes depending of what kind of item it is (email/message/notification etc)
-the central item on the homescreen menu is somehow a little highlighted
That is all i remember from the screenshot i saw. For my device (S5660), the ROM developement i remember it was interrupted or stopped but i really want to find it...maybe someone ported it...
I also remember the developers built a website especially for the ROM and it was mainly for high-end devices. I found the ROM very original and practical and i truly want to find it.
So... anyone knows the name of the ROM?
Thank you so much in advance.
I don't know but your device developement has no where ner stopped, it has android 4.0. Here is a link to all the roms for it:
http://forum.xda-developers.com/forumdisplay.php?f=1407
thanks but...
Thanks for the quick response but i didn't say that the entire android developement for my device has been stopped no no...you get me wrong. I said that i remember clearly that the developement on the ROM i'm searching for had been stopped for gio.. Thanks for the link anyway... I've tried to find it but nothing so far. I still hope that someone with a high end device knows what i'm looking for.
takologistics said:
Aparently I cannot post this question elsewhere so I ask you all here.
I saw once a custom ROM that i liked very (very!) much. The idea behind it and the general looks of it. But i don't remember how it was called.
Maybe you could help me a little. I'll try to describe it:
-it has a clean interface like a list on the homescreen (not like classic android homescreen more like windows phone 7/8 homescreen)
-every message or email it is shown in this windowish homescreen
-every item on the homescreen has on the left side color stripes depending of what kind of item it is (email/message/notification etc)
-the central item on the homescreen menu is somehow a little highlighted
That is all i remember from the screenshot i saw. For my device (S5660), the ROM developement i remember it was interrupted or stopped but i really want to find it...maybe someone ported it...
I also remember the developers built a website especially for the ROM and it was mainly for high-end devices. I found the ROM very original and practical and i truly want to find it.
So... anyone knows the name of the ROM?
Thank you so much in advance.
Click to expand...
Click to collapse
is this what you are talking bout? http://spiritdsgn.deviantart.com/art/Windows-Phone-Style-for-Android-355556107
unfortunetly it is not
It is a nice finding so thanks man...but apparently it isn't what i'm seeking. The main screen It is more like a list of notifications in real time wich have on their left side tiny colored stripes depending of their nature. But again thanks for the answer.

[Q] using same dot twice on android unlock screen

I Have a Rooted android and ive done some looking into and cant seem to find any apps or information into what im trying to do.... I am trying to use the one of the dots on my android twice in an overlapping patter that i believe would make a cool looking pattern that ive come up with and that will still secure my device. has anyone tried this or found a way to do it or, maybe even change the color of the doubled dot from green to purple or some drastic color change like that so that the difference can be seen. any links to guides on how to do it or apps would be helpful. PS i have no android coding experience only a basic class in C++
I looked at the lockscreen replacements on Google Play, but I didn't see any that have that feature. There might be a custom ROM you could flash that has that, although I've never encountered one. The only other way to do that would be to edit the source code of a ROM, specifically the source for Keyguard.apk (although I may be wrong on that part), add that functionality, and then build it yourself, which, in my opinion, would be a very large amount of work for a feature that small, and it would require you to know Java.

Categories

Resources