Apktool help - Galaxy S II Q&A, Help & Troubleshooting

Hi,
I can decompile/compile/sign/zipalign fine using apktool, but when i have decompiled framework/systemui all the xml files come out with huge gaps between the coding. im using notepad++ to view/edit xml.
It doesn't affect the compiling but its hard to find code to change.
example: a normal xml with 5 lines of code will come out with about 20-30 lines.
Am i doing something wrong or is it apktool?
thanks.

stealo said:
Hi,
I can decompile/compile/sign/zipalign fine using apktool, but when i have decompiled framework/systemui all the xml files come out with huge gaps between the coding. im using notepad++ to view/edit xml.
It doesn't affect the compiling but its hard to find code to change.
example: a normal xml with 5 lines of code will come out with about 20-30 lines.
Am i doing something wrong or is it apktool?
thanks.
Click to expand...
Click to collapse
Its an APKtool issue, emmm I got alot of errors using apk manager and apktool, I dont know whats the problem and still didnt find a solution. Everytime I use it I have to have errors... and its annoying
I could do many stuff if it would work !!

do you want my apktool folder? i can try and help if its the same as my setup. its a bit messy but works.
Sent from my GT-I9100 using xda app-developers app

stealo said:
do you want my apktool folder? i can try and help if its the same as my setup. its a bit messy but works.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
check the link below ma8, even though its a mod tutorial thread, u have some usefull info regarding APK tool and also about decompile/recompile subject's over there, which might help u with ur issue
http://forum.xda-developers.com/showthread.php?p=29020343&posted=1#post29020343

Sun90 said:
check the link below ma8, even though its a mod tutorial thread, u have some usefull info regarding APK tool and also about decompile/recompile subject's over there, which might help u with ur issue
http://forum.xda-developers.com/showthread.php?p=29020343&posted=1#post29020343
Click to expand...
Click to collapse
cheers.
i saw that this mornong. i got sweet [email protected]#k all done at work today. playin around with all that stuff. ive switched back to cm9 stable. still got issues with the xml's, a door knob probably knows more than me though.
Sent from my GT-I9100 using xda app-developers app

Related

[Q]How to change the sense version number in the about screen

Which apk, or lib, or whatever is this found in (Changed the sense version from 2.1.. to 3.0.. in rosie.apk and didnt fix the issue)? Its bugging the crap out of me as im working on my own pyramid/kingdom mashup rom for the desire hd/inspire 4g.
This is one of the items on my list of things I still need to address, and i'd rather not waste time on such a mundane thing as its apparently already been fixed in both the rcmix port and the new unity port.
I just need someone to steer me in the right direction.
As far as finding it in the code... i'll do that myself.
It is not found in a apk or lib file, but rather in an xml file. Let me search which.
Edit: After looking through xml files in the Sense 2.1 ROM I'm running I couldn't find it. I'll try again tomorrow once I got my Linux box on and I get some sleep.
Sent from my Hero that never dies! ;D
dastin1015 said:
It is not found in a apk or lib file, but rather in an xml file. Let me search which.
Edit: After looking through xml files in the Sense 2.1 ROM I'm running I couldn't find it. I'll try again tomorrow once I got my Linux box on and I get some sleep.
Sent from my Hero that never dies! ;D
Click to expand...
Click to collapse
Thanks mate, I havent found it in any of the xml's that are just lying about in the builds, I havent started using the kitchen yet myself (just setting it up now on ubuntu 11.04), so far its all been using apk manager, and just parsing code, and familiarizing myself with nitty gritty, parsing and editing code. I've already gotten a few gray hairs from frustration. lol
Have a look in strings.xml in Settings.apk
I don't have the phone or a ROM as a reference on me, but you should be able to work out how to set it by starting from strings.xml in Settings and working backwards, if you know what I mean.
If not, upload the file (Settings.apk) for me and I'll have a look for you.
will check it out, thnx
Its a build.prop edit look in system/build.prop
Sent from my HTC Vision using XDA Premium App
I can't seem to locate the file mentioned above. Do I need to use a specific program in order to view/edit the file.
Sent from my Synergized 3.0 EVO using Tapatalk
Blowpot said:
I can't seem to locate the file mentioned above. Do I need to use a specific program in order to view/edit the file.
Sent from my Synergized 3.0 EVO using Tapatalk
Click to expand...
Click to collapse
Prop editor
Sent from my Inspire 4G using XDA Premium App

modifying the Mms.apk

hiho, i'm working on apks etc atm...
everything works til now (extended power menu etc)
but now i wanted to change some things in the mms.apk
i decompiled, didnt change anything, compiled again and its not working... i did this with apktool, and signed it afterwards, and also tryed without signing.
also i tried apk manager, but not working as well...
why? :s
i've got the same problem... someone knows sth about it? maybe someone can post his experiences?
Bump? :/
Sent from my GT-I9100 using XDA App
Cloud2F said:
hiho, i'm working on apks etc atm...
everything works til now (extended power menu etc)
but now i wanted to change some things in the mms.apk
i decompiled, didnt change anything, compiled again and its not working... i did this with apktool, and signed it afterwards, and also tryed without signing.
also i tried apk manager, but not working as well...
why? :s
Click to expand...
Click to collapse
[URL="http://forum.xda-developers.com/showthread.php?t=1113854"[/URL]
[MOD][GUIDE] Mms.apk with Sent time/"Unlimited" Contacts adding//No MMS Convert
Sent from my GT-I9100 using XDA Premium App
Yea ty. That does not answer my question... I want to do it myself, and i did it just like its said there but its not working. I think the compression is the reason...........
Sent from my GT-I9100 using XDA App
found a way with apktool and apkmanager... just edit with apktool and sign with apkmanager, for those, who need the info... can be closed, ty

[Q] Editing AndroidManifest.xml is system apks

So im wondering, when I edit a system apk this is the process I use:
Open apk with 7zip, I dont extract.
Replace all png's I want to and exit.
Simple yes? Heres the problem. How do I edit AndroidManifest.xml and add it back in? I can get the xml un-encyrpted and edit it but do I need to make the file encypted again before I put it back?
Any comments/suggestions welcomed
Thanks!
Sent from my U20i using XDA App
Possibly the best way I can answer that is by pointing you in this direction: http://forum.xda-developers.com/showthread.php?t=849223
This is a very handy guide to fiddling with your system apps and will not only answer your question but may answer questions you didn't even know you had..
Wow thanks, just what I needed, I had a feeling I had to decompile/recompile it then move the files into the existing one. You'd think they made these things simple huh? XD
Sent from my U20i using XDA App
Oh, but this is simple. Relatively, at least. You just wait until you start having to write smali..
I just had a look, its pretty overwhelming. I code php though so its not that bad. I know the challenges ahead
Sent from my U20i using XDA App
jimcantfixit said:
I just had a look, its pretty overwhelming. I code php though so its not that bad. I know the challenges ahead
Sent from my U20i using XDA App
Click to expand...
Click to collapse
Oh really?? I used to do a lot of C++ back in the day so I'm okay with java but then it starts going over my head a bit. When I'm next in the mood to hack into the code of our little machine, I may end up stalking you mercilessly..

Recompile apks

Everywhere i look redirects to apkmanager.. Which is not working for me.. Can someone tell me the manual way to recompile an apk.. Or an alternative to apk manager.
Sent from my SPH-D710 using XDA Premium App
http://apkmultitool.com/
Here is a really good tool for APK files and more!
easy to use and set up.
Start recompiling APK's right away!
redbaron2005 said:
http://apkmultitool.com/
Here is a really good tool for APK files and more!
easy to use and set up.
Start recompiling APK's right away!
Click to expand...
Click to collapse
Facepalm... That is apkmanager. sigh...
Sent from my SPH-D710 using XDA Premium App
voredroid said:
Facepalm... That is apkmanager. sigh...
Sent from my SPH-D710 using XDA Premium App
Click to expand...
Click to collapse
it has apkmanager in it...
It's not apkmanager...
I gone through this a few times... trust me.
Download it, install it, put it in the same folder as your Android SDK, thats IT launch the .bat file.
redbaron2005 said:
it has apkmanager in it...
It's not apkmanager...
I gone through this a few times... trust me.
Download it, install it, put it in the same folder as your Android SDK, thats IT launch the .bat file.
Click to expand...
Click to collapse
Ok i didnt have it in the sdk folder.. Ill try that.. Ty
Sent from my SPH-D710 using XDA Premium App
Ok so that fixed the ADB not found issue thank you for that... my issue with it not compiling/decompiling was I was trying to use an odexed apk.. live and learn right... thanks for your help..
No problem anytime, I'm glad I was able to help.

Decompiling an app

I ask a question on your site several weeks ago about the default messaging app on Samsung Galaxy s2 aokp jelly bean. It seems that if someone sends me a picture with text the picture covers to text and I can't read it. I asked if there was any way to correct it and below is the answer I got. I am sorry to disagree with whoever posted this however that is not a simple fix. I have Google and look for how to decompile a app and I am unable to find a app to edit a apk file. I am NOT asking for a step by step but surely someone can recommend an app I can download that would allow me to open the MMS app and edit it. Once again this is not a simple fix perhaps it is for you but it is not for me thank you for your time
This is a simple issue that the user can fix. Just have to decompile the apk and adjust the spacing. A search would have saved you opening a new thread.
Thread closed.
Sent from my SGH-I777 using xda app-developers app
lishron said:
I ask a question on your site several weeks ago about the default messaging app on Samsung Galaxy s2 aokp jelly bean. It seems that if someone sends me a picture with text the picture covers to text and I can't read it. I asked if there was any way to correct it and below is the answer I got. I am sorry to disagree with whoever posted this however that is not a simple fix. I have Google and look for how to decompile a app and I am unable to find a app to edit a apk file. I am NOT asking for a step by step but surely someone can recommend an app I can download that would allow me to open the MMS app and edit it. Once again this is not a simple fix perhaps it is for you but it is not for me thank you for your time
This is a simple issue that the user can fix. Just have to decompile the apk and adjust the spacing. A search would have saved you opening a new thread.
Thread closed.
Sent from my SGH-I777 using xda app-developers app
Click to expand...
Click to collapse
If you search xda or google you will find plenty of tools that will do that for you.
I really do appreciate all the hard work that xda developers do. I do not like posting on here because I know your time is important but I also don't want to feel belittled. Have searched your site perhaps I'm poor at searching. Is there an app you would suggest that I could download to my phone or Android tablet to edit apk file. Thanks so much
Sent from my SGH-I777 using xda app-developers app
lishron said:
I really do appreciate all the hard work that xda developers do. I do not like posting on here because I know your time is important but I also don't want to feel belittled. Have searched your site perhaps I'm poor at searching. Is there an app you would suggest that I could download to my phone or Android tablet to edit apk file. Thanks so much
Sent from my SGH-I777 using xda app-developers app
Click to expand...
Click to collapse
Apktool, the app by virtuous team, and i think apk manager
Sent by from my Zanpakuto using Getsuga Tensho!
Thanks so much however after posting this I updated to the newest aokp and the issue is resolved. It does still have the sender's name overlapping the date but not the picture overlapping the message. Thanks so much and I will still try the suggested APK editor.
Sent from my SGH-I777 using xda app-developers app
Go check out the Android development guide by Google, you can get several tools to decompile an apk. As well as .dex file
Sent from my SGH-I777 using Tapatalk 2
I agree that response was pretty rude. I'm guessing they were trying to scare you away rather than giving advice on next steps. That if you don't know how to do what they said you'd leave it to those that do know how.
But on to your original question...
Wikipedia's location for APK format (can't post link as I'm too new) says that the file is just a ZIP file (or JAR file). So likely 7-zip or your favorite program that can open ZIP's/JAR's will work. You might have to rename the extension to .ZIP or .JAR for the program to recognize it.
Nobody was being rude. We told him to search and that there are plenty of resources already available to him. Nothing wrong with that. Good luck and happy flashing.
The post was mine and it was not rude in the least. The information for what you need to do is posted. Has been for a few years now. Ever since people started doing customs themes. You will not be able to do this without a computer. All you have to do is decompile the apk, find the XML that displays the mms message and adjust the spacing by a few pixels. And then recompile the apk. There are tut all over the place on how to do this
You may have to be creative in your searches to be lead where you need to go but that is part of the learning that android requires. Sometimes you need to think outside the box to get the outcome you desire.
Batcom2
OneOfMany07 said:
I agree that response was pretty rude. I'm guessing they were trying to scare you away rather than giving advice on next steps. That if you don't know how to do what they said you'd leave it to those that do know how.
But on to your original question...
Wikipedia's location for APK format (can't post link as I'm too new) says that the file is just a ZIP file (or JAR file). So likely 7-zip or your favorite program that can open ZIP's/JAR's will work. You might have to rename the extension to .ZIP or .JAR for the program to recognize it.
Click to expand...
Click to collapse
This only works for 35% of the apk as the XML files are encrypted until decompiled as are the .9 pngs
Batcom2

Categories

Resources