I saw many tutorials on How to Decompile / Recompile Apk using PC . Many of the people don't have pc , So what ? They can't Decompile / Recompile . So i have decided to make a tutorial on How To Decompile / Recompile .apk Using Android Phone Only , No Pc is required . Also we get many errors on Pc while compiling back .
Note we can't decompile .jar files using this tutorial .
Things We Need -
1. Android Smartphone ( Rooted )
2. Apktool For Android ( download below )
3. xml editing Application
Here we Go with A step by Step tutorial on How To Decompile / Recompile .apk Using Android Phone -
Step 1. First Download Apktool.zip From - Here .
Step 2. Download Xml editor from - Here
Step 3. Extract The Apktool.zip To (android phone ) Sd Card > Here . ( Extract it in Root of Sd card , not in any folder )
Step 4. Now Open Apktool Folder on Sd Card > Apktool and Install Apktool.apk from the directory .
Step 5. Copy Framework_Res.apk from your Phone root and Paste it in Sd Card > Apktool > Here ( with root explorer / es file explorer )
Step 6. Open Apktool App and Go to Sd Card > Apktool and Select Framework_Res.apk and Select import as Framework . It will start installing Framework ( need for Recompiling - Decompiling )
Step 7. Copy any .apk you want to decompile and paste it to Sd Card > Apktool > Here ( with root explorer / es file explorer )
Step 8. Now Open Apktool App , Go to Sd Card > Apktool and select the .apk you pasted in Step no. 7. Now select Decompile All ( The process will decompile the apk ).
Step 9. Now the file will be saved with the name Apkname_src ( Apkname = name of the apk you have decompiled ).
Step 10. Do all the editing you want to do with .apk file with xml editor .
Step 11. Now Open apktool app then again go to Sd Card > Apktool and select Apkname_src and select recompile .
Step 12. Now Open the orignal .Apk and Open Sd Card > Apktool > Apkname_src > Build > Apk > Here and copy all the content and paste it in The Orignal.apk and you are done :)
Feel free to comment if you face any problem :)