[How to] noobs guide to decompile/recompile android application
Guide to decompile android application
Apktool [click here to download]
[Thanks to brut.all
for this apktool]
Java JDK/JRE 32 bit [please google it guy's
Little knowledge on cmd
__________________________________________________ __________________________________________________ _____________________
Preparation before WORKING
1)now install the java in your pc/lappy
then copy the apktool.zip & goto directory C:/
make a folder name apktool (u can name it by watever u like)
now goto that folder & paste the zip
extract that zip there...
2) now copy the .apk or jar file which u wnt to decompile
& paste it on apktool folder.....
also copy the framework-res.apk of that rom &
paste it on that folder..
3) now open cmd
Your cmd will probly look like this..
so type in
cd.. (yes include the '..' and press enter after you type each command)
this will get you to back directory so now you will see
so type again
you should now see this:
(and you are in the apktool directory)
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
this will install the devices framework to your system (need to do this)
5)now to decompile the apk you want to edit.. type this:
apktool d music.apk mod
is the apk your decompiling
is the folder you're creating for the decompiled apk
do whatever you want to do with your apk...
6)now to recompile your new apk type this:
apktool b mod music-new.apk
mod is the folder with your edited files
music-new.apk is your new apk file
Now we are NOT done... we cannot use the new apk's...
now make two separate folder a & b
copy-paste the original music.apk in 'a'
& music-new.apk in 'b'
use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "new-edited" apk and copy them into Original apk
now add to archive ...the origanl apk in zip format
& at the end of the file name .apk ( i mean give the file format name as .apk insted of .zip)
Now you are almost done.....:thumbup:
IF it is a system app then don't sign it....otherwise u have to sign that app....
[=>Guide On How To Sign The Moded App<=]
NOTE:- If you are getting this error =>" java is not a recognized internal or external command "
[=>Then Follow this Guide<=][Thanks to KartzXDA]
don't forget to hit thanks or comment....