Need help .xml - Android Software/Hacking General [Developers Only]

closed..sorry

Couldn't open it in NotePad++.
Can't help, sorry

hmm no one?

The Xml file you posted actually contains binary data, not just plain text. I couldn't find the strings you posted, so I couldn't modify it.... I can show you the only readable data in the image attached.

You need to decompile the xml first to make edits to it.
Sent from my PG06100 using Tapatalk

can anyone decompile and recompile that..for me

my pc is fit and i have do it self...thanks

one_love_420 said:
You need to decompile the xml first to make edits to it.
Sent from my PG06100 using Tapatalk
Click to expand...
Click to collapse
Another "half" answer...You act like you know everything but are unable to give any usefull advice on how to do something. Why even post then?
____________________
Hitting the thanks button is soo much easier then typing thanks!

mildwild said:
can anyone decompile and recompile that..for me
Click to expand...
Click to collapse
Honestly IDK but if I did I'd give you more info on it.
____________________
Hitting the thanks button is soo much easier then typing thanks!

Related

Decompiler

Hello, I want to decompile my framework-res apk so I can possibly add a battery that displays percentages. Is there any program out that will let me do this?
Sent from my Xoom using XDA Premium App
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
No offense taken. I am in the process of teaching myself these things so Google and xda are my best friends. Thanks for the reply
Sent from my Xoom using XDA Premium App
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
Is it possible to read the Stat sys battery XML? I've been reading on how to decompile the files but no real help with this really
Sent from my Xoom using XDA Premium App
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
zone23 said:
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
I will offer to help you out.
1. Install latest SDK from http://Developer.google.com & Eclipse.
2. Search for apktool and unzip files into the SDK folder under platform_a DB
3. Buddy fix apktool with attached files. You will need to rename these files to Apktool, etc..
4. Copy framework-res.apk, systemui.apk, settings.apk, and launcher2.apk from \system + copy the odex
5. Run apktool d framework-res.apk (do this for each apk)
6. Look in the Res/drawing folders for images to mod.
Now you have the .9.png files with marks & the decompiled XML for reference.
Use Photoshop to modify the files.
Use draw9patch to compile any .9.png files
This is really important. Use 7zip or any other zip app that allows you to open and view an apk as a zip without actually unzipping it. Just copy the new photo files in and add them to an update.zip (you can download this from XDA Xoom Development thread) or use a DB to push the updated files to the Xoom.
Theaming is a subject but that's the basics. I can't upload files for newapktools.zip right now but will edit this when I get home later. Alternativly, maybe someone can post the patched up Xoom compatible apktool files. They are also in XDA theaming thread if you search.
Hth
Sent from my Xoom using XDA Premium App
nbeebe24 said:
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Yes I can you need Java JDK installed:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eventually you will need Eclipse and I use Gimp because its free and doesn't break any .png files.
http://www.eclipse.org/downloads/
IDE for JAVA Develpoers search youtube for a video on how to set it up for android.
http://www.youtube.com/watch?v=ZoWVeXizfbo
I use Notepad++ to edit XML
http://notepad-plus-plus.org/download
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
nbeebe24 said:
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
zone23 said:
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
Click to expand...
Click to collapse
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Hey nbeebe24, check out my post over here: http://forum.xda-developers.com/showthread.php?t=1063657
This should help you decompile/recompile framework-res.apk for your mod. I look forward to seeing your results
nbeebe24 said:
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
you tryed this tool
Code:
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://forum.xda-developers.com/showthread.php?t=928864

[Q] framework-res.apk problem

In "framework-res.apk/res/layout" when I edit the "status_bar_expanded.xml",
even if I add one dot and delete it again and save the file, it doesn't work
anymore and it stucks on my bootanimation, and loops over and over.
I use "apk manager" for decompiling and compiling the framework-res.apk.
Does any one know what the problem is?
Thank you?
sohrab1985 said:
In "framework-res.apk/res/layout" when I edit the "status_bar_expanded.xml",
even if I add one dot and delete it again and save the file, it doesn't work
anymore and it stucks on my bootanimation, and loops over and over.
I use "apk manager" for decompiling and compiling the framework-res.apk.
Does any one know what the problem is?
Thank you?
Click to expand...
Click to collapse
what do you mean add one dot?
kay_kiat88 said:
what do you mean add one dot?
Click to expand...
Click to collapse
To the code obviously. ie he cant seam to save file without it breaking, even if removing what he added prior to saving.
TheATHEiST said:
To the code obviously. ie he cant seam to save file without it breaking, even if removing what he added prior to saving.
Click to expand...
Click to collapse
i know it's obviously to the code. upload your .xml let me take a look.
also ensure that the /(yourdirectory)/apktool/framework/1.apk where 1.apk is your original framework-res.apk and /(yourdirectory)/apktool/framework/2.apk where 2.apk is your original tw-framework-res.apk
statusbarexpanded
Hey
Do any know what @id/plmnLabel and @id/spnLabel refers to? Im speculating it has something to do with service provider.. Since the theme of framework is set to Black, the service provider text color is black as well, so ive made edits to
...Color=?textColorSecondary on both (removed Inverse) ive not tested this, maybe u have Kay?
biopsin said:
Hey
Do any know what @id/plmnLabel and @id/spnLabel refers to? Im speculating it has something to do with service provider.. Since the theme of framework is set to Black, the service provider text color is black as well, so ive made edits to
...Color=?textColorSecondary on both (removed Inverse) ive not tested this, maybe u have Kay?
Click to expand...
Click to collapse
nope i haven't tested it but u can read here: http://forum.xda-developers.com/showpost.php?p=9066440&postcount=1
android:id="@id/plmnLabel". This is the Carrier name
android:id="@id/spnLabel". This is the Provider name
this post is useful for froyo.
but i'm already on gingerbread. for gingerbread, read: http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
all working great ..
Tnx k - ur right still on froyo
kay_kiat88 said:
what do you mean add one dot?
Click to expand...
Click to collapse
I mean you even can't make a small change in that xml.
kay_kiat88 said:
i know it's obviously to the code. upload your .xml let me take a look.
also ensure that the /(yourdirectory)/apktool/framework/1.apk where 1.apk is your original framework-res.apk and /(yourdirectory)/apktool/framework/2.apk where 2.apk is your original tw-framework-res.apk
Click to expand...
Click to collapse
Here is my "status_bar_expanded.xml"
I just want to change some colors. I did the same thing for other xmls like
"status_bar_latest_event_content.xml" and it works perfectly, but for that
one, it stucks on my bootanimation. when I compile the xml I get no error
but I don't know what the problem is.
For that 1.apk and 2.apk, no I didn't do that.
I'll try it and report back.
sohrab1985 said:
Here is my "status_bar_expanded.xml"
I just want to change some colors. I did the same thing for other xmls like
"status_bar_latest_event_content.xml" and it works perfectly, but for that
one, it stucks on my bootanimation. when I compile the xml I get no error
but I don't know what the problem is.
Click to expand...
Click to collapse
If u use wrong definisions it wil stall.. What color is this in your file android:textColor="#ff7bad00" ?
After compiling did u copy the manifest and metainf folder to the new framework Res?
Sent from my GT-P1000 using XDA Premium App
biopsin said:
If u use wrong definisions it wil stall.. What color is this in your file android:textColor="#ff7bad00" ?
Click to expand...
Click to collapse
it's the color of operator name in status bar and that "clear" button, and I changed it to "#ff000000"
zenkinz said:
After compiling did u copy the manifest and metainf folder to the new framework Res?
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
Honestly, I don't know what those "manifest" and "metainf" are, because I changed some xmls and I'd had no problem with them, So I thought that's the way to compile and decompile framework-res.apk.
Could you plz tell me what should I do? Thanks.
sohrab1985 said:
Honestly, I don't know what those "manifest" and "metainf" are, because I changed some xmls and I'd had no problem with them, So I thought that's the way to compile and decompile framework-res.apk.
Could you plz tell me what should I do? Thanks.
Click to expand...
Click to collapse
I thought u already have this covered because it sounded like you have no problem with other XML except this.
But if u have not heard of the two files/folder I have hightlighted chances are you don't have them in your newly compiled apk which will cause bootloop.
After compiling ur apk you should see that meta-inf folder is missing. U need to copy that from the original API, along with manifest.XML to the new apk.
Sent from my GT-P1000 using XDA Premium App
zenkinz said:
I thought u already have this covered because it sounded like you have no problem with other XML except this.
But if u have not heard of the two files/folder I have hightlighted chances are you don't have them in your newly compiled apk which will cause bootloop.
After compiling ur apk you should see that meta-inf folder is missing. U need to copy that from the original API, along with manifest.XML to the new apk.
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
that's right, I've had no problem with any xmls without copying those files until now, but thanks to you I can edit this one, too.
Thank you so much.

[Q] Theming help.

Hey guys, I've been slowly learning what it takes to theme. But have run into a couple problems. after making changes to some .png's in SystemUI.apk I get an error when compiling. It tells me that the images i changed aren't defined in the public.xml? Any help on figuring out why that is?
Endless2232 said:
Hey guys, I've been slowly learning what it takes to theme. But have run into a couple problems. after making changes to some .png's in SystemUI.apk I get an error when compiling. It tells me that the images i changed aren't defined in the public.xml? Any help on figuring out why that is?
Click to expand...
Click to collapse
Did you rename the image files?
Sent from my SCH-I510 using XDA App
IN8skillz said:
Did you rename the image files?
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
Nope, just opened the file up in photoshop, made the changes, and hit save. I should note that while in photoshop i had to change the image mode from indexed to rgb, would that have something to do with it?
Endless2232 said:
Nope, just opened the file up in photoshop, made the changes, and hit save. I should note that while in photoshop i had to change the image mode from indexed to rgb, would that have something to do with it?
Click to expand...
Click to collapse
Are you sure it didn't save as a .PNG file and not a .PSD file? That could be the problem as well.
Saved as .png ill keep playinflg around and try to figure things out.
Sent from my SCH-I510 using XDA App

[Q] Theming help

Ok so I just have a quick question about theming. How do I change the text color on the lockscreen? I'm pretty sure I have to edit one of the .xml files, but which one and how? And do I have to actually decompile the .apk to edit it or can I just pull it using 7zip and edit it that way? I already have edited the actual .pngs for the lockscreen, so if anyone can help me out with this it would be great. Oh and this is with the stock deodexed rom.
I'm not sure where its located but it will be an xml file and you will need to decompile wherever it lays. Try androidpolicy.jar and look in there..
Sent from my SPH-D700 using xda premium
travmofosho said:
I'm not sure where its located but it will be an xml file and you will need to decompile wherever it lays. Try androidpolicy.jar and look in there..
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
So it's not actually in the lockscreen .apk? I will look in the androidpolicy.jar. Also how would I go about decompiling it?

Softkey icons

I know that the softkeys can be changed to display words instead of the icons. I have found some images that have them as such but can't seem to get to work when using the custom framework maker. Am I missing something or does anyone have text image files that will work.
Tybo611 said:
I know that the softkeys can be changed to display words instead of the icons. I have found some images that have them as such but can't seem to get to work when using the custom framework maker. Am I missing something or does anyone have text image files that will work.
Click to expand...
Click to collapse
are the imgs u have to replace them pngs? easiest way is to rightclick framework-res.apk and open with 7zip. then drang new pngs over ones in assests folder.
then try and drag that new eddited apk into framework maker. to make a package to flash.
not sure if tb101s themer has to be editted for ec09 but ive been having trouble with 5.5 and ec09
im in chat right now if u want a hand to hold
http://forum.xda-developers.com/showpost.php?p=10422177&postcount=1
ciscogee said:
are the imgs u have to replace them pngs? easiest way is to rightclick framework-res.apk and open with 7zip. then drang new pngs over ones in assests folder.
then try and drag that new eddited apk into framework maker. to make a package to flash.
not sure if tb101s themer has to be editted for ec09 but ive been having trouble with 5.5 and ec09
im in chat right now if u want a hand to hold
http://forum.xda-developers.com/showpost.php?p=10422177&postcount=1
Click to expand...
Click to collapse
won't that create a 7zip file? that was the only problem i had with the themer, everything worked to remove the ticker history and weather. no fc's..yet.
Well the softkeys have to be alighned. Open existing PNGs in paint or whatever and alighn new ones and save. Then run themer.
Sent from my SCH-I400 using xda premium
thank you, checked the sizeds and they were different. now stuck at the decomling stage in themer.
Your making it way more difficult than it should be lol.
Look for older soft keys posts in our theme section.
There are easier ways in there. No decompile needed for softkey.
Sent from my SCH-I400 using xda premium
ciscogee said:
Your making it way more difficult than it should be lol.
Look for older soft keys posts in our theme section.
There are easier ways in there. No decompile needed for softkey.
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Thanks you for your help. Finally got the text softkeys working.
huge thanks to ciscogee for his help, and trailblazer for the themer. screen shot is attached
CISCO! is your computer unpacked finally?
pattielipp said:
CISCO! is your computer unpacked finally?
Click to expand...
Click to collapse
no i wish. been a bumby road past month. trying to grab it in next couple weeks. just using phone and gf laptop. no cygwin no linux, minor apk editting when i can.

Categories

Resources