[Q]how to properly edit the stat-sys-battery.xml & charging.xml - General Questions and Answers

I am working on adding full 1-100% battery icons to my statusbar...
I pasted the icons in the drawable-hdpi folder of framewirk-res.apk and also the battery xml file ...
Rebooted...
No!!
I got the same icons on my statusbar.
Then i thought it ought to be the system ui.apk that needs to be edited i pasted the icons & xml files properly.
Rebooted.
WTF!
There is no battery icon in the status bar just blank space left out there...
.....
.
Now when I look at the stock xml & the xml for 100icons i get a difference ...
In the stock xml it is as::
<itemlist
android:[email protected]=0xsomeyhing..
In the xml of 100 batteryicon xml it is simply
android:[email protected]
please help me...
Please please
I searched throughout downloaded all moded xml's and every time there is the same difference in the string...
PLEASE PLEASE HELP!!!
One thing more I'm not on pc but I've xml editing app....
Also there was some post to find out the ID public.xml but there is no such file....
Now please someone figure out the solution for that...
Thanks in advance!!!"
:

Related

[Q] stat_sys_battery_charge.xml issue

I have been making my own battery mod for the sensation ICS Robo rom.
I use apk Manager 5.02 to decompile the framework-res.apk file and it decompiles successfully. I then change the 200 png files and then changed the stat_sys_battery_charge.xml to suit. I am making a battery icon that shows up purely as text so if it 100% it will show up as 100
I want the charge XML to show a green number when charging and a white number when not charging. When I compile the framework-res.apk file it compiles with out any errors. I then sign the file, rename it framework-res.apk and flash it.
It works ok, but makes the status bar at the top much bigger and throws the rest of the rom out. Any ideas were I went wrong?
Here is a copy of the xml file - it has been renamed from .xml to .txt so I can upload!
Found out what was wrong. I was using the wrong version of apktool.jar. Downloaded the correct version and now can edit my own ICS fies

[q] help with framework mod

Hi. I'm making an ics mod to my phone. I've tried to change the progress bar like ics. I know that the files that i have to change are progress horizontal (drawable folder) to make it square changing to 0.0 dip and change the color, and the other file is styles.xml (values folder) to change the width of the bar changing the values of widget progress bar and seekbar to 5.0dip. When i change everything and recompile using apk multi tool i followed the steps, and when i get the recompiled apk I read in other post that i had to move the meta-inf folder, the manifest file, to the original framework and when i put it back to my phone nothing changes. So i moved the resources.asrc file too but i get a bootloop. Can anyone tell me what i'm doing wrong? Maybe is because i don't sign the framework? thanks in advance.
PD: I'm using Froyo
mschief148 said:
Hi. I'm making an ics mod to my phone. I've tried to change the progress bar like ics. I know that the files that i have to change are progress horizontal (drawable folder) to make it square changing to 0.0 dip and change the color, and the other file is styles.xml (values folder) to change the width of the bar changing the values of widget progress bar and seekbar to 5.0dip. When i change everything and recompile using apk multi tool i followed the steps, and when i get the recompiled apk I read in other post that i had to move the meta-inf folder, the manifest file, to the original framework and when i put it back to my phone nothing changes. So i moved the resources.asrc file too but i get a bootloop. Can anyone tell me what i'm doing wrong? Maybe is because i don't sign the framework? thanks in advance.
PD: I'm using Froyo
Click to expand...
Click to collapse
Did you resign the new apk?
Victorian09 said:
Did you resign the new apk?
Click to expand...
Click to collapse
At the first time no. But I tried resingning the new framework but it's the same result (bootloop)

[ASK][MIRO] Guide on how to decompile system apk file

Hi guys, someday ago i tried to decompile the SystemUI.apk. The modded version is named : SystemUI_mod.apk and the original is SystemUI.apk. I've done the copy procedure of META-INF folder, but every time i tried to push it to my phone, it cause my phone to get a bootlop. Is there any guide on how to decompile, editing, or something that is safe for my phone? And is there any way to mod my font colour to red, blue, or anything? Because my phone background is white, so i cant see anything Thanks for your help :highfive: Sorry if i posted it in the wrong section
FajarMF28 said:
Hi guys, someday ago i tried to decompile the SystemUI.apk. The modded version is named : SystemUI_mod.apk and the original is SystemUI.apk. I've done the copy procedure of META-INF folder, but every time i tried to push it to my phone, it cause my phone to get a bootlop. Is there any guide on how to decompile, editing, or something that is safe for my phone? And is there any way to mod my font colour to red, blue, or anything? Because my phone background is white, so i cant see anything Thanks for your help :highfive: Sorry if i posted it in the wrong section
Click to expand...
Click to collapse
use autoapktool tool to decompile...... or just select the icons that u want to change and juss replace them with the orginal one direcly by opening the apk in winrar and just drag and drop
vsbrt said:
use autoapktool tool to decompile...... or just select the icons that u want to change and juss replace them with the orginal one direcly by opening the apk in winrar and just drag and drop
Click to expand...
Click to collapse
Its already fixed. Now i can change everything i want :laugh:

SystemUI Help

I've tried to port z2 style battery icon with percentage inside it..
There are no errors in the SystemUI.apk....
But when I push it in system/app and reboot...it shows systemui has stopped working..
Can someone help please...???
I've attached the SystemUI below..
can you tell us how do you mod your systemui? I mean steps, are you using apktool or simply changing icons by extracting and rezipping?

[Q] Need info about icon android 10

Hello, I would like to ideally modify the icons of the status bar and the icons of the quick setting.
I have some knowledge and I have already made modifications on these icons but on Android 7 using the very good Tickle my Android tools.
But on android 10 (customn havoc rom) I made modifications but could not apply them in the phone.
my question does anyone know the location (android 10) of the icons (png or xml) for the status bar and quick settings and above all is it always possible to modify them on android 10?
thank you in advance
Bradco said:
Hello, I would like to ideally modify the icons of the status bar and the icons of the quick setting.
I have some knowledge and I have already made modifications on these icons but on Android 7 using the very good Tickle my Android tools.
But on android 10 (customn havoc rom) I made modifications but could not apply them in the phone.
my question does anyone know the location (android 10) of the icons (png or xml) for the status bar and quick settings and above all is it always possible to modify them on android 10?
thank you in advance
Click to expand...
Click to collapse
Hi,
Yes it's possible to modify it. TMA is an amazing tool indeed . And you'll find those icons in the drawable folder of the SystemUI.apk of your ROM. You'll just have to replace them with the images(.png) you want. Remeber to keep the same resolution as the original icons and remember to keep the signature unchanged when recompiling the apk, since it's a system app it will crash repeatedly if the signature isn't kept.
Have a good day
Edit#1: You have to change the pics in every drawable folders.
E.g: drawable-hdpi....
And you have to keep the name of the files.png unchanged.
Raiz said:
Hi,
Yes it's possible to modify it. TMA is an amazing tool indeed . And you'll find those icons in the drawable folder of the SystemUI.apk of your ROM. You'll just have to replace them with the images(.png) you want. Remeber to keep the same resolution as the original icons and remember to keep the signature unchanged when recompiling the apk, since it's a system app it will crash repeatedly if the signature isn't kept.
Have a good day
Edit#1: You have to change the pics in every drawable folders.
E.g: drawable-hdpi....
And you have to keep the name of the files.png unchanged.
Click to expand...
Click to collapse
Thanks raiz for your precision but lot of icon are vectorial in .XML files in drawable folder, in XML the size is in dip i don't know how convzrtz ( if it possible ) in pixel. Another thing my systemUI is in system/product/priv-app/systemUI for recompile I don't this directory, normally it is in system/priv-app/systemUI.
To finish in the rom I can choose différente style like file attached which one correspond to icon in systemUI.apk ?
Bradco said:
Thanks raiz for your precision but lot of icon are vectorial in .XML files in drawable folder, in XML the size is in dip i don't know how convzrtz ( if it possible ) in pixel. Another thing my systemUI is in system/product/priv-app/systemUI for recompile I don't this directory, normally it is in system/priv-app/systemUI.
To finish in the rom I can choose différente style like file attached which one correspond to icon in systemUI.apk ?
Click to expand...
Click to collapse
Hi,
Attachment aren't working apparently, can you upload the screenshot on imgur ( imgur.com/upload )
For the drawables in vector format, you can use shapeshifter.design which can convert svg to xml, and xml to svg. Create svg files with an image editing software (like inkscape) and make svg files out of the icons you want and convert them to xml with this really convenient website.
If you come across binary XML files (xml files with numbers and letters, not xml code) , you can use axmldec ( https://github.com/ytsutano/axmldec ) to decode them.
PS: The accent in "différent" betrayed your origins lol, you're a fellow French as I can see
Raiz said:
Hi,
Attachment aren't working apparently, can you upload the screenshot on imgur ( imgur.com/upload )
For the drawables in vector format, you can use shapeshifter.design which can convert svg to xml, and xml to svg. Create svg files with an image editing software (like inkscape) and make svg files out of the icons you want and convert them to xml with this really convenient website.
If you come across binary XML files (xml files with numbers and letters, not xml code) , you can use axmldec ( https://github.com/ytsutano/axmldec ) to decode them.
PS: The accent in "différent" betrayed your origins lol, you're a fellow French as I can see
I upload the image
https://drive.google.com/file/d/1-dFu3EGK8BwWVARoHWsgIjXePvy16pKX/view?usp=drivesdk
Click to expand...
Click to collapse

Categories

Resources