How To Decompile / Recompile .apk Using Android Phone [ No Pc Required ]

How To Decompile / Recompile .apk Using Android Phone [ No Pc Required ]

    


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 :)



20 comments:

  1. Replies
    1. :) Welcome , Keep connected on our Fb / twitter and YouTube page

      Delete
  2. Replies
    1. Root of sdcard means normal sdcard ( not in any folder )

      Delete
  3. I dont understand the step #12 please help me.

    ReplyDelete
    Replies
    1. First open the apk you have just recompiled and copy all content from it and paste it to the orignal apk !

      Delete
  4. I could not understand the last step too. Opening the original apk means decompiling it again then will copy the things in build/apk and to be paste in the original apk? Can you make it more clearer? Anyway, thanks buddy! Thumbs up!

    ReplyDelete
  5. First open the apk you have just recompiled and copy all content from it and paste it to the orignal apk !

    ReplyDelete
  6. does it mean extract the original apk and paste the copied files from apktools/appname_src/build/app/here directory?

    ReplyDelete
  7. CANNOT LINK EXECUTABLE: could not load library "libpthread.so.0" needed by "/data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armel/jre/bin/java"; caused by could not load library "libc.so.6" needed by "libpthread.so.0"; caused by unknown reloc type 19 @ 0xb6e747bc (1196)

    how to fix it?

    ReplyDelete
  8. could not find decompiled file on apktool directory

    ReplyDelete
  9. bhai aapki last line samajh ni aayi... jab recompile krte hai to filename_src.apk apktool folder main bankar aa jaati hai fir uske baad use sign krte hai.. right??
    aur yaar aapki 12 line samjh ni aayi aap use video ke thru samjh do.. thxz

    ReplyDelete
    Replies
    1. Hi , You have to just open the .apk file ( which you just recompiled ) and at the same time open the apk file ( which was normal and was untouched ) copy all the content if the recompiled .apk file to orignal untouched apk file !

      Delete
  10. How to use apk tool my friend not working

    ReplyDelete
  11. How to decompile recompile apk

    ReplyDelete
  12. You ceate video how to use apktool and decompile recompile apk file

    ReplyDelete
  13. When I try to import the framework I get an error message saying segmentation fault. what is wrong?

    ReplyDelete
  14. Hi. I know you have gotten this question already, but the answer is not clear. You sy 'copy content into the original apk', but you can't just open an apk and copy stuff into it, or you wouldn't need apktool at all. Can you explain exactly what that means? Thanks

    ReplyDelete
  15. thanx a lot..this tutorial is great..

    ReplyDelete
  16. thanx a lot..this tutorial is great..

    ReplyDelete