[Q]How to recompile apps - Android Q&A, Help & Troubleshooting

hi guys, im newbie in app development and can somebody teach me how to recompile apps sucessfully without any error with APKTOOL...
Thanks for reply...

Have android sdk installed with platformtools.Add it to system path variables and always use updated apktools and aapt from ibotpeaches.Adding sdk to path has always prevented giving exec of aapt error in linux.That is because apktools looks for aapt in path but it doesn't exist there but it exists in my home directory.
Sent from my GT-N7000 using xda app-developers app

Related

[Q] [HELP] Decompiling APK

I got this problem when I'm decompiling an system app apk. I'm just a beginner exploring this. What do I need to do here?
Up
Sent from my GT-S5830 using xda premium
what apk is it?
system apk needs framework files to compile/decompile it. maybe framewok-res.apk and framework.jar is enough but i've always include all content of /system/framework just to be sure.
and good luck with it
you need to decompile it with dependencie ... being the dependencie ... framework-res.apk
option 10
How can I do it with the framework? I'm decompiling phone.apk just for testing and exploration.
I just extracted phone.apk from the flashable zip rom.
With apktool:
Type "apktool if [framework file name]"
You might need to install the framework and Twframework apk (check the rom's system\framework directory)
Check the web page for more details, just Google apktool or apk Manager.
I am using apk multi tool. Is that the same as those?
Sent from my GT-S5830 using xda premium
By looking at the screeshot I think it's 'decompile apk with dependencies'.
Search for apk multitool to see how it works.

[Q]Error in Xml Editing

anyone with experience ask me (im not a noob)
In windows xp,i have sucess on editing xml with notepad++ and back clock to right.(compiling ok)
now in windows 7,i edit xml with same way and get error when compiling with apktool/apk manager.
[WRONG SECTION,But themers read this : ) ]
Use virtuos ten studios
Its more than simple than apktool
Sent from my GT-S5360 using xda premium

Recompiling Ics apks????

Any one has a special tool to recompiling ics apks??!
I edited and while recompiling getting a lot of errors!!!
Ganesh Arivoli said:
Any one has a special tool to recompiling ics apks??!
I edited and while recompiling getting a lot of errors!!!
Click to expand...
Click to collapse
Try using the latest version of virtuous 10 studio or apk multi tool. Also if your trying to decompile Sense or TouchWiz apps make sure you have the correct framework dependencies installed.
Sent from my SCH-I535 using xda premium

[Q] recompile framework-res.apk XU JB

I can decompile and recompile without any errors (a few warnings about strings which could be fixed easily) the problem is, even if all I do is decompile then compile and copy the original META-INF and android-manifest.xml to compiled apk and then push apk and set permissions I get stuck on boot animation.
ideas?
thanks in advance
Me‎ said:
I can decompile and recompile without any errors (a few warnings about strings which could be fixed easily) the problem is, even if all I do is decompile then compile and copy the original META-INF and android-manifest.xml to compiled apk and then push apk and set permissions I get stuck on boot animation.
ideas?
thanks in advance
Click to expand...
Click to collapse
Yes! How did you manage to compile it with the errors in the string! I was getting same errors too! Yes! Sony has changed some things! What you do if you have changed values or something else is copy resources.arcs from recompiled to original and androidmanifest! That should work
Sent from my ST25i using xda app-developers app
Andrewasth said:
Yes! How did you manage to compile it with the errors in the string! I was getting same errors too! Yes! Sony has changed some things! What you do if you have changed values or something else is copy resources.arcs from recompiled to original and androidmanifest! That should work
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
those are just warnings about some translations not present and no errors......
Andrewasth said:
Yes! How did you manage to compile it with the errors in the string! I was getting same errors too! Yes! Sony has changed some things! What you do if you have changed values or something else is copy resources.arcs from recompiled to original and androidmanifest! That should work
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
copied resources.arsc AndroidManifest.xml and META-INF still doesn't work
anyone have other suggestions?
Me‎ said:
copied resources.arsc AndroidManifest.xml and META-INF still doesn't work
anyone have other suggestions?
Click to expand...
Click to collapse
same problem faced by me when trying to push modified SemcGenericUxpRes.apk file......
couldn't find solution yet...
I still can't compile my framework! error is this: framework-res\res\values\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
framework-res\res\values\plurals.xml:79: error: Found tag </item> where </plurals> is expected
I'm using the latest apktool! I have faced this issue before but I can't recall how I solved it
Andrewasth said:
I still can't compile my framework! error is this: framework-res\res\values\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
framework-res\res\values\plurals.xml:79: error: Found tag </item> where </plurals> is expected
I'm using the latest apktool! I have faced this issue before but I can't recall how I solved it
Click to expand...
Click to collapse
did you install framework-res.apk systemui.apk and semcgeneric.apk?
Nevermind. I solved it
Sent from my ST25i using xda app-developers app
Andrewasth said:
Nevermind. I solved it
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
posting the solution may help others also......
@[email protected] said:
posting the solution may help others also......
Click to expand...
Click to collapse
Download the latest apktool. Copy aapt from android sdk platform tools. Recompile and decompile without errors!
Sent from my ST25i using xda app-developers app
Andrewasth said:
Download the latest apktool. Copy aapt from android sdk platform tools. Recompile and decompile without errors!
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
can you install?
ok seems to work with new JB (with camera posted by devswift1)
Me‎ said:
ok seems to work with new JB (with camera posted by devswift1)
Click to expand...
Click to collapse
F**k yeah!

[Help] Modding

Hi guys
I need to know how to recompile framework-res.apk with apktool for android
What I did is extract framework.apk and edited it
now I don't know how to recompile it becouse I don't have a pc
I need any apk to recompile apks for android
Sent from my GT-B5512 using xda premium

Categories

Resources