Hi! I have been trying to set up apktool but im not sure if i did it rigth. I installed the android sdk and java runtime. I installed apktool and apk multitool. Tried some guides on how to decompile an apk but always got some errors. Do someone know of a good guide on how to set up apktool?
Anything will be helpful! i deleted all of the files for the apktool and apk manager but left installes the android sdk and the java runtime. Thanks
Related
I'm trying to decompile the android gingerbred keyboard so I can make a custom layout. I used apktool to decompile and recompile it, and got no errors. When I tried to install it onto my phone the apk manager app simply said "application not installed" I tried signing it with Android Commander, and no dice. How can I get a recompiled app from apktool to install successfully on my phone?
System apps must not be (re-)signed!
Assuming you're talking about a deodexed firmware:
Just push it back via adb after you modified it. Don't forget to check for the right owner and permission settings. Clear caches and reboot the device and it should work
Hi, i am trying to modify the classes.dex file in an apk but it is giving me problems.
if i decompile the apk and recompile it after modifying the app installs but crashes after one minute. also some functionality in the app is also lost.but when i binary edited the classes.dex file and replaced it in the apk ( i have used different methods for replacing the .dex such as direct replacing in archive and replacing in the decompiled archive) the app doesn't install and the phone or emulator reboots. i have done this with other apps and they are working fine after editing so i couldn't understand what's going wrong. please help
You should use a decompiler and achive to the java code. Than you can easily modify and recompile the app. You will need an Linux virtual machine to do this.
In linux, after you found you .apk file use this to decompile it to a .jar file. http://siis.cse.psu.edu/ded/installation.html. After that, you can use http://java.decompiler.free.fr/?q=jdgui to browse the code. With this method you will need a Linux machine and would give you the best result.
If you want to use windows, follow this tutorial http://androidorigin.blogspot.com/2011/02/dex-format-to-jar-format.html but I warn you, its likely to be faulty.
Hope this will help you.
thanks for replying
i used apktool to decompile and modify the smali code. i had even tried converting the smali code to java but no help.the problem is that the recompiled app runs only for one minute and then crashes without any error message even logcat log is not of help it just says that the process xxx has died but no err msg or exception is logged. if i replace the classes.dex with the patched one and then re-sign it it does not install and crashes the emulator but when i again decompile and then recompile the modified file it return to the same old problem of crashing. do you know how apktool packages the compiled files?
You should follow one of the tutorials posted in my last post. I did not used apktool and I don't know how it works.c the method with that decompiler will work. If you want your application signed just sign it as a normal one.
this particular apk loses about 20-30 kb in filesize on decompiling and then recompiling with apktool while this is not seen in any other apk. maybe this means that this file has some overlay data that goes missing on modifying and creats problems.7-zip is unable to show any extra data in the file.does anyone know how to add and extract overlay data on/from an apk?
I've installed the android sdk, java, and all the other fancy things I was supposed to, but cannot get Android Multitool to decompile any apk's.
This is the error log it throws out:
The system cannot find the path specified.
'apktool' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
Any help is greatly appreciated, I'm lost as to what I'm doing wrong here.
Thanks,
I do not have Android Multitool, but I do have the apktool. Did you install that aswel?
Jooztk said:
I do not have Android Multitool, but I do have the apktool. Did you install that aswel?
Click to expand...
Click to collapse
I did. It's included with Android Multitool and I have it downloaded by itself. I would just use apktool, but I've never used it and have no idea what the commands to decompile/re-compile an apk are.
Thanks for the response,
Ayahuascaa said:
I did. It's included with Android Multitool and I have it downloaded by itself. I would just use apktool, but I've never used it and have no idea what the commands to decompile/re-compile an apk are.
Thanks for the response,
Click to expand...
Click to collapse
If you open a cmd window in the apktool folder, type "apktool.bat decode <file.apk> <outputdirectory>". I have not tried recompiling anything with it though.
guys you dont install apktool. It is just a jar file with a few supporting files. You have to make sure you are in the directory that has apktool in it if you are using the stand alone. As for apkmultitool it could be a bad download. Check the other folder to make sure the jar files are there. I would use the latest apktool from the thread as it is the most up to date. Also keep in mind that there are a few different versions that maybe needed depending on the apks your working on.
is there any easy tool just like a Apk Manager which can compile and decompile apk files with just one click ? i'v tried Apk tool, but it's not very user friendly. Apk Manager is very good, but it's outdated now . i wish their will some other easy tool too for compiling, decompiling and signing of Apk files
vishav420 said:
is there any easy tool just like a Apk Manager which can compile and decompile apk files with just one click ? i'v tried Apk tool, but it's not very user friendly. Apk Manager is very good, but it's outdated now . i wish their will some other easy tool too for compiling, decompiling and signing of Apk files
Click to expand...
Click to collapse
try tickle my android by ticklefish http://forum.xda-developers.com/showthread.php?t=1633333
I've been trying to re-compile the framework-res.apk with apktools and I've edited what i need in xml now i simply cannot open apktools.jar!
im running windows 10 I have latest java installed and SDK , ive tried everything idk how to get this dam file to open! any help would be appreciated thanks.