I´m having bit of a strange issue. I´ve been editing a Mms.apk by decompling it with apktool and then chaning png, editing xml files ( I Use dreamwaver cs6, but have tried with notepad++ too) and the likes.
But when I then recompile the apk something strange happens to the data stored in the xml files, like it gets encrypted or messed up somehow. They still work tho since Ive pushed the Mms.apk to my system/app and the changes I´ve made are clearly shown+working.
But it makes it difficult incase I want to redo some changes in the XML files by decompiling the new Mms.apk.
I´ve uploaded one xml file with the changes ive made, and then the same after it has been recompiled to my dropbox.
https://www.dropbox.com/sh/p52d74uxtwjmf09/VmhoP1raEG
Hope someone knows why it ends up like that.
bump
Related
ok so i did a lil reading after trying to alter the 9.pngs i would get force closes on my phone i take it this is cause i didn't edit these properly with the correct editor .....is there any 9.pngs i can alter without eclipse ????
i know i did it before but now i just get alot of fc ..and reboots if i try to alter ......
i've always modified roms to my liking so i could use any advice i can get from you themers out there that know what there doing ....
thanks in advance
No, you do not have to use Eclipse.
If you modify the PNG files you will need to compile them, you can use the APKmanager program to do this. I had problems and so I used Eclipse.
Can you give and over view of the step you are taking when you edit your PNGs, what program(s) and then how you are placing them back into your APK or back on your device.
i'm just using paint.net program on my cp to alter all the framework pngs .....but i guess i didn't realise about the 9.png's ....what would be easier to alter the 9.pngs eclipse or apkmanager
Have a look at this thread, which I think maybe you already have.
http://forum.xda-developers.com/showthread.php?t=1008695
The first and second post have a document to read and then later down in the thread is a write up about 9.png.
If you load the Android SDK, there is a tool, draw9patch, that will let you edit the PNGs to make them into 9.png files.
If you are just editing PNG files and then do not need to be 9.png then I think any software can be used for editing.
alright guys im having some trouble theming the messages app. i want to switch out the bubbles around sent and received texts with the ones from handcent. i pulled the pngs from handcent and want to replace the .9.pngs in the mms.apk with those. i resized them in photoshop, opened with draw9patch from sdk tools added the .9 borders and whatnot, saved them. decompiled mms.apk and replaced the old ones with the ones i made (renamed them exactly the same and made sure theres the same number of pixels) then recompiled and signed the mms.apk. i renamed the one on my phone in system/app to add .bak and then copied the new mms.apk from my sd card and changed the permissions to match. but now when i open it it just force closes. what did i do wrong? im using apk manager 4.9 to do the decompiling btw
Here's what I would do. Use xUltimate-d9pc-x86 to compile the draw9patch after you make your draw9patch adjustments, then put open your Mms.apk via 7zip. Then drag your 9.png's you modified over to hdpi folder. Done. PM me if you have any problems.
Sorry for all the questions lately, even though I'll probably have more.
I'm working on the SystemUI.apk from IE20 and my method of compiling consists of using the keep folder method and deleting all the files I changed with apk manager 4.9.
Now I can change the Status_bar.xml and status_bar_tracking.xml without a hitch, however if I delete status_bar_expanded.xml from the keep folder (whether I change anything in it or not) I get force closes when I get it loaded onto my phone.
There's no error in the log so I'm pretty lost...So I was wondering if there's something else I have to do that anyone knows of?
Thanks if you can help!
The only thing that should be deleted are images that you edited (if you didn't edit any images just leave the folder). But if you edited ANY xml ONLY delete the resourses.arc from the keep folder. But don't delete any individual xml's from keep. And yes the size will change because of the compression used in apk mgr.
good day.
chopper the dog said:
The only thing that should be deleted are images that you edited (if you didn't edit any images just leave the folder). But if you edited ANY xml ONLY delete the resourses.arc from the keep folder. But don't delete any individual xml's from keep. And yes the size will change because of the compression used in apk mgr.
good day.
Click to expand...
Click to collapse
Thanks for the response,
However, by not deleting the xmls I edited in the keep folder it seems it just replaces them with the stock files.
Soo...This stopped the force closes, but none of my edits took.
Maybe it's time to to switch to a linux build environment...I'm frustrated to say the least. Google'd every possible problem and nothing...
EDIT: But before I do that could someone possibly try to compile this SystemUI.apk with a color edit in the res/layout/status_bar_expanded file?
Would highly appreciate this ^^^
I tried to decompile, modify 1 xml file and recompile the framework-res.apk.
But everytime I do it, I either get into a boot loop, or when In succeed it displays glitches (like notification bar, and messed up lock screen, and settings)
This is for AURORA ICS 4.0.3 and I do have the latest aapt.exe file .. so I don't know what is wrong!
I tried to use the original framework-res but replace the resources file inside, stored and compressed methods.
Tried to get the compiled framework-res but add the META-INF and Manifest file (again, both with compressed and stored resources file) and always.. it just glitches or bootloops.. and the mod that I tried (ICS on screen buttons or the CRT effect when you switch off the screen, mainly used in Oxygen roms, but it's available in all ROMs).. it never works.. only glitches the lock screen, notification bar etc..
Any help?
Thanks.
I might know the answer to this..
Which files are you modifying in framework-res? And how are you pushing it back to your phone?
Sent from my U20i using xda premium
Would be great
I am modifying some files in the values folder, bools.xml, arrays.xml .. but even if I edit bools.xml alone, it still glitches.
To push it back: I go to recovery mode on my phone, plug it into my linux machine (the system partition mounts), paste the new framework-res.apk to replace the old one, fix permissions (otherwise it boot loops), and restart the phone. This method works for other files and never had any problems, like the android.policy.jar
Would be great if you can help me. Thanks
Well, the XML files you're editing are all part of resources.arsc so it's something to do with that which is causing the problem. I used to get all sorts of annoying bugs when I edited anything in resources.arsc and I eventually found out that I was pushing the final apk back to the phone incorrectly.
I use a Windows PC, not Linux, so I might not be that helpful but this is what I do to modify and replace framework-res.apk. Hopefully it'll help. What I do is..
Decompile framework-res.apk
Make my changes
Recompile the file
Use a program like 7zip to open the old and the new files
Drag and drop the "res" folder from the new file into the old
Extract resources.arsc from the new framework-res.apk and add it to the old one in "STORE" mode, so it's not actually compressed
Go into recovery, mount the system partition and push the old file
..and that's it. Works a charm every time.
I would have thought that you would need to do the same thing on Linux but with the additional step of correcting the permissions. If you do all that and it still doesn't work, then there has to be a problem with the actual mod you're trying to do.
Thank you very much, I actually tried that method. It sort of worked, but everytime it breaks the notification bar. It becomes like double the size and I'm not sure why.
Thanks.
Then the issue must be with the modification itself. What exactly are you changing to what?
Sent from my U20i using xda premium
I tried different ones.. but even a simple one.. enable CRT animation.. which is pretty much open bools.xml and edit one true to false.. it breaks it :/
Hello, I'm trying to create my own theme. I've decompiled deodexed systemui / framework-res and I want to get to work on these xml files. I'm running into issues though because they're in android binary format and I can't find a way to convert them to something a human can actually read.
I've searched around, but no methods I've tried have produced useful results. AXML is definitely broken and only shows UTF8 headers. I've decompiled the app in many different ways and it's just not working.
how can I edit something like status_bar.xml without a hex editor?
Are you sure you decompiled with apktool? Or just unzipped the apk? Do you have a /values folder after decompiling?
Sounds like you're not doing something right...
Sent from my phone's mind
If u decompile the apk you can modify .XML with notepad++ and then when you are finished you recompile
You can use
Apktool
Apkmanager
Or Google how to decompile .apk and you will get an answer on that many tutorials out there
Sent from my GT-N7000 using XDA Premium HD app