Wednesday, June 8, 2016

[GUIDE] How to Decompile,Recompile and Sign apk file.

Hello Guys, In this tutorial i going to show you how to decompile,recompile and sign  an apk file with Apktool.Its a text article but you will get a video tutorial to get a clear sense on this article.
For this You will need Apktool.
Here is the Download Link 

You also can Watch this Video about this Tutorial.




So,Lets start...........................


Step 1.1 : First of all we will need "framework-res.apk" .


So,Goto "/system/framework/" location and copy "framework-res.apk" from your rom as shown in the picture.





Step 1.2:  Now Goto "Apktool " folder and Paste it.








Step 1.3 : Now goto "/system/app/" location and copy "SystemUI.apk" of your rom as shown in the picture.



Step 1.4 : Now Paste it to apktool folder .





Step 1.5 : Copy any of your apk file you want to decompile or edit.In this case i am dealing with Rebooter.apk .Now Paste it to Apktool folder.





Step 1.6 : Now double click on "Start.bat" to open.It will pop up the Command Prompt located to the apktool folder.(as shown in the picture)




step 1.7 : In the command prompt type "apktool if framework-res.apk" and hit enter.





This code is to install system framework file to deal with the apk file.


Step 1.8 : Now again in the command prompt type "apktool if SystemUi.apk" and hit Enter. 





This is also a system file related to the system framework.


Step 2.1: This time we are going to decompile the "Rebooter.apk" .For this , type "apktool d Rebooter.apk" and press Enter.




Now it will decompile the rebooter app .All decompiled fill will be stored into a new folder named "Rebooter".


Successfully decompiled the apk . Now you can edit your apk from the decompiled folder as you can.I want to change the name of the apk file .


So, I goto the "Rebooter/re/values/" location

and opened "strings.xml" with notepad ++ and changed the name as you can see in the picture.




Now save it and close Notepad++ .


Return to the apktool folder.


Step 3.1 : Its time to recompile the apk.


In this case we have to put another code into the previously opened command prompt.

Now type "apktool b Rebooter" (Carefull:No extension) and Enter.





It will start recompiling and will take little bit time to complete.

Step 4.1 : Now delete the "Rebooter.apk" file from the apktool folder.





Step 4.2 : Then, Goto Rebooter folder and open "dist" folder.Copy "Rebooter.apk" file and paste it to the Apktool folder.






step 4.3 : from apktool folder , Open "Code_signer.txt" with notepad++ or any other txt editor.




Copy the selected text shown in the picture.


Step 4.4 : Now paste it to the command prompt , like this picture.




Step 4.5 : Replace "<your whatsappname>.apk <yourwhatsappname>_signed.apk" to "Rebooter.apk Rebooter_signed.apk".As shown in the picture.





Now Hit Enter.


Step 4.6 : You will find  a new apk file in the apktool folder named " Rebooter_signed.apk".





This is your Final Apk file.


Install this to your Android Device .thats it.

 Video Tutorial : [GUIDE] How to Decompile,Recompile and Sign apk file Using Apktool.

If You like My Video, then Please Subscribe My channel.

 

If you have any Remark on this Tutorial , Then Comment box is Open for You .I will try my best.

 
http://facebook.com/usubbir

http://plus.google.com/+usubbirahmed

http://facebook.com/xianos.usubbir

 

Thank You.



















No comments:

Post a Comment