[Q] Is it possible to edit Honeycomb XML? - Xoom Q&A, Help & Troubleshooting

I've been searching everywhere and asking questions but can't seem to get answers. I am a noob to theming but I'd like to know if its possible to edit a few XML files in the Res/drawable folder? If so, please tell me how.
Sent from my Xoom using XDA Premium App

You must decompile the APK in order to "read" the xml. See decompiler post.

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] How can I change ANSWERING Sliders?

I know how to change the unlock sliders on the framework files, but I cannot find the file location for the Answering sliders. Did anyone have any idea where are this files located?
did you check in say the theme you are running under the app folder inside dialer or contacts drawables?
Are they not in drawable-hdpi?
Tivo7 said:
Are they not in drawable-hdpi?
Click to expand...
Click to collapse
Should be inside that folder, but not in the framework.
Should be inside phone.apk. Will either need to decompile it, change & recompile it, or insert the images with 7-zip, etc.
You might try using ninjamorph, easy way to change items without having to decompile. Its in the market.
Sent from my DROIDX using Tapatalk
BeADroid said:
You might try using ninjamorph, easy way to change items without having to decompile. Its in the market.
Sent from my DROIDX using Tapatalk
Click to expand...
Click to collapse
Heh...i just assumed he was using ninja/metamorph. If you edit the PNGs with a photoediting program, ninjamorph or metamorph will decompile and recompile them for you.
You know what they say about assuming.
sent from BeADroid X

Need help .xml

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!

[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?

How to understand smali file

Can anybody please guide me how to read & understand android smali file.
I just decompiled an apk using Apktool which generates the smali file. This file is written in plain text but the language is not something similar to any other language. I need some guide to understand the app backend functionality. I'm just looking for some sort of Java codes in the backend.
Thanks in advance.
Sent from Nexus 4.
to_sukanta said:
Can anybody please guide me how to read & understand android smali file.
I just decompiled an apk using Apktool which generates the smali file. This file is written in plain text but the language is not something similar to any other language. I need some guide to understand the app backend functionality. I'm just looking for some sort of Java codes in the backend.
Thanks in advance.
Sent from Nexus 4.
Click to expand...
Click to collapse
Hi, .. you could have a look at this guide. It covers most of the stuff required to reverse-engineer an android application. But, be warned.. don't do any stuff that infringes copyrights of someone ... !!

Categories

Resources