does anyone know how to?
download HxD and you edit the binary code. or there is a tool somewhere in the themes section that will allow you to convert the .xml to human readable output. what exactly are you wanting to do with the .xml? maybe i can assist you in that as well.
david1171 said:
download HxD and you edit the binary code. or there is a tool somewhere in the themes section that will allow you to convert the .xml to human readable output. what exactly are you wanting to do with the .xml? maybe i can assist you in that as well.
Click to expand...
Click to collapse
thank you
Related
As the title says can someone show me how to do this strictly on a mac!
I have failed miserably at it!
All the tools are for windows..
I have the sdk for mac all set up and I can push an pull files!
but everything I edit on the mac and push to the phone crashes the phone with force closes and stuff...
-kitt050383
I came across this in a google search for the same thing. Can someone post a how-to step by step for modding .apk files with adb commands to push to the phone? Thanks in Advance.
Me as well please, been searching for a good 30 minutes now and cant find any tools to do this on a MAC, especially to edit the .9.png's
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
ajones7279 said:
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
Click to expand...
Click to collapse
So, i change the extension to .zip double click and it unzips it. Open the folder, edit the files... and then i just switch the extension back to .apk?
I dont get what you are saying.
If you're using the default archiver, you may have to change it to .zip. Since I use betterzip, I just associated the .apk extension with BetterZip so it automatically opens it like an archive. Now, extract the contents of the apk, make whatever changes you please, put the contents back into the archive, sign the apk, then push it back to the phone. I'm typing this from my Hero so I'll try to make a more detailed post when I get off.
ajones7279 said:
If you're using the default archiver, you may have to change it to .zip. Since I use betterzip, I just associated the .apk extension with BetterZip so it automatically opens it like an archive. Now, extract the contents of the apk, make whatever changes you please, put the contents back into the archive, sign the apk, then push it back to the phone. I'm typing this from my Hero so I'll try to make a more detailed post when I get off.
Click to expand...
Click to collapse
Thanks for the tip! I'll give it a shot tomorrow.
Didn't know Betterzip was out there. I'll give it a try later tonight as well.
almost there...
ok i can transform an apk to a zip and unzip for editing, but how do i change it back? i just did a bunch of editing work, and now i am stuck. please help me....
So pretty much we all want to know the same thing...
Once we get the apk open... and we change files around how do we get it back to an apk file.
anyone gonna help?
ipeench said:
So pretty much we all want to know the same thing...
Once we get the apk open... and we change files around how do we get it back to an apk file.
anyone gonna help?
Click to expand...
Click to collapse
someone did.
http://forum.xda-developers.com/showpost.php?p=5849463&postcount=6
Better Zip works great for this. Now, if there was a way to do zero compression like the APK Manager. Without that, the sounds for lock/unlock won't work.
Me too have the same problem. I think installing windows on your mac will work fine with all .exe tools. if you don't wanna do anything o your osx then you can run a virtualbox and run windows without affecting os x.
NO WAY
ajones7279 said:
I just pull the apk and open it with BetterZip. APKs are pretty much like zip files. Then after I'm done, I sign it and push it back to the phone.
Click to expand...
Click to collapse
Hi, I have tried to extract the APK with BetterZip.
I can extract files. But, XML file are like unable to open.
The image files are quite OK.
My purpose is to check out Manifest File and other XML Files.
So, if you can actually do those things after extracting with BetterZip, do let me know.
Thanks in advance.
The most useful way is install Windows via Bootcamp or Virtual Machine...
While I don't have a Mac, I should be able to help. First, rename the extension from .apk to .zip so it can be viewed and extracted from whatever archive manager you use. Doing this won't decompile the apk but it will at least let you modify the images. If you want to modify the xml's in the apk file. You can use Apktool which will decompile and recompile apk's, and sign the apk if it's a non-system app. You will also need to have JDK installed to do this.
JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Apktool: https://code.google.com/p/android-apktool/downloads/list
im new to theming but in both these iv downloaded i cannot seem to find the .thm file that needs to be present when using metamorph app
do i have to create it ??
icow said:
im new to theming but in both these iv downloaded i cannot seem to find the .thm file that needs to be present when using metamorph app
do i have to create it ??
Click to expand...
Click to collapse
Search button is your friend. lol. Here's the tutorial given by the man Stericson(creator of metamorph) himself. Look at the video that he has on the thread. It's very helpful. Walks you through it step by step:
http://forum.xda-developers.com/showthread.php?t=591329
i have read through and watched hrough the videos but i still dont understand am i ment to make it my self or is it ment to already be in the zip ?
icow said:
i have read through and watched hrough the videos but i still dont understand am i ment to make it my self or is it ment to already be in the zip ?
Click to expand...
Click to collapse
you're supposed to make that theme file yourself with notepad or something of that sort, and then you have to zip that .thm file with the file folder of whatever mod you're trying to create. Again..look at that video, and go through the steps. Nothing comes with a metamorph when you create it. You make everything. The only time you'll have a .thm file there already is when you download one that someone already made. Hope that answers your question
You can use textpad(free from download.com) add .thm to the file name you about to save as and make sure you save it as uts8 and zip it up together with your images
Or you can post exactly the step your getting stuck at
Good luck
Stericson is changing the .thm on MetaMorph to .xml if needed be, learn the .xml format as well for future development...
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
jpool81 said:
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
Click to expand...
Click to collapse
Not sure.. but i would think it was a .png-file actually
Thanks, but all the .png files I can see are just the progress bar containers. There are no coloured images there at all.
in BeHero+ (a 2.1 rom) it's found at:
framework-res.apk\res\drawable-mdpi\statusbar_background.png
Ah, no I am referring to the "progress bar" that you see when downloading a file from the Browser, not the status/notification bar. Or what you see in the Market when downloading a file. By default it's green.
jpool81 said:
Hi, I am wondering how I would go about changing the colour of the progress bar (in downloads etc)?
I am pretty sure the setting resides in an .xml file within the "framework-res.apk" but I don't know which one needs changing or how to edit these files?
Any help would be much appreciated.
Click to expand...
Click to collapse
It's in framework-res/res/drawable/progress_horizontal.xml
Use apktool to decompile and rebuild the files.
Cool, thanks
I'm having trouble using the apktool. I am on Windows but can't get the right command lines. To be fair I've not used this tool before so would appreciate some kind of "dummy" guide.
jpool81 said:
I'm having trouble using the apktool. I am on Windows but can't get the right command lines. To be fair I've not used this tool before so would appreciate some kind of "dummy" guide.
Click to expand...
Click to collapse
Code:
apktool.bat d -s framework-res.apk out
that will extract/decompile it to the folder out. There is however some issues when you try to rebuild framework-res again. What I do is put the altered files into a framework-res from a 1.5 rom, and rebuild it. That works. Command to rebuild is:
Code:
apktool.bat b out
Thank you. Will give it a go. Much appreciated
Please read this whole thing before you reply!
I am trying to edit the battery icon XML files in framework-res.apk. Awhile ago I found a tool that would convert from binary XML to human-readable XML and back again, but for the life of me I cannot find it again.
Anyway, I opened stat_sys_battery_charge.xml with it and all was good, except it mentioned weird names for filenames. Eg instead of 'res/drawable-hdpi/stat_sys_battery_0.png' it was '89845b4jrqyuq34gy34q89tyq34' (or some gibberish like that).
I understand everything up to this point. I understand why those names are encoded like that. What I don't understand is how people figure out these codes. I have been using someone elses framework-res.apk as my base, and they use "v4" folders. Eg 'drawable-hdpi-v4' instead of 'drawable-hdpi'. These filename codes in the XML value were generated for this V4 folder, correct? How did they do that?
I do not want to use a V4 folder in my theme if I can avoid it. If I have to, I still have a problem as to how to correctly point to my battery icons. And no I cannot just replace the PNGs because my changing icons have more frames than the stock XML allows.
Any help would be extremely appreciated. Thank you.
TheLynxy said:
Please read this whole thing before you reply!
I am trying to edit the battery icon XML files in framework-res.apk. Awhile ago I found a tool that would convert from binary XML to human-readable XML and back again, but for the life of me I cannot find it again.
Anyway, I opened stat_sys_battery_charge.xml with it and all was good, except it mentioned weird names for filenames. Eg instead of 'res/drawable-hdpi/stat_sys_battery_0.png' it was '89845b4jrqyuq34gy34q89tyq34' (or some gibberish like that).
I understand everything up to this point. I understand why those names are encoded like that. What I don't understand is how people figure out these codes. I have been using someone elses framework-res.apk as my base, and they use "v4" folders. Eg 'drawable-hdpi-v4' instead of 'drawable-hdpi'. These filename codes in the XML value were generated for this V4 folder, correct? How did they do that?
I do not want to use a V4 folder in my theme if I can avoid it. If I have to, I still have a problem as to how to correctly point to my battery icons. And no I cannot just replace the PNGs because my changing icons have more frames than the stock XML allows.
Any help would be extremely appreciated. Thank you.
Click to expand...
Click to collapse
Well I'm using apktool for decompiling and I'm also trying to add some icons so maybe the help Daneshm90 has given me can help you Apkmanager
EDIT: Lol you didn't even write you were trying to add icons It is seriously stuck to my brain xD
Does apktool let you change the paths for the filenames in XML files, and correctly re-encodes it when you compile it back? I have been trying desperately to get apktool to work for me, but it just refuses. I'll have to try it on another computer or perhaps a VM then.
If apktool does not correctly handle paths, is there any tool that can? From what I've read, its impossible, but there must be a way!
TheLynxy said:
Does apktool let you change the paths for the filenames in XML files, and correctly re-encodes it when you compile it back? I have been trying desperately to get apktool to work for me, but it just refuses. I'll have to try it on another computer or perhaps a VM then.
If apktool does not correctly handle paths, is there any tool that can? From what I've read, its impossible, but there must be a way!
Click to expand...
Click to collapse
What do you mean by "paths in XML files"? Apktool decompiles XMLs fully, so you could do everything that you could do with your own app/sources.
Can someone explain how to open a .apk folder to view the files within? Also how to convert it back again with changes made to it? I would like to open the attached folder and change the dialer tones. I tried doing this changing the files in the ui but it didn't change the tones. My belief is they are wrapped in the .so
pretty sure its not in an .so because i dont see a .so tied to that apk. it would either be tied into the smali or you could make changes to the xml to point to different sounds.
Pirateghost said:
pretty sure its not in an .so because i dont see a .so tied to that apk. it would either be tied into the smali or you could make changes to the xml to point to different sounds.
Click to expand...
Click to collapse
My apologies. I'm working with two issues one is an .so and then there is this one, which is indeed an .apk.
So can you explain how I open this?
Get 7zip for windows, install it, open apk with 7zip file manager
tomween1 said:
My apologies. I'm working with two issues one is an .so and then there is this one, which is indeed an .apk.
So can you explain how I open this?
Click to expand...
Click to collapse
studacris said:
Get 7zip for windows, install it, open apk with 7zip file manager
Click to expand...
Click to collapse
but in order to edit any of the xml you will need apk manager.