Hi:D
In this guide I will be showing you all that How to "Decompile, Edit and Recompile Apk with APKTOOL and SignApk"
REMEBER- THIS TUTORIAL IS ONLY FOR EDUCATIONAL PURPOSE. I WILL NOT BE RESPONSIBLE FOR AND 3 PARTY COPYRIGHTS ISSUES..
Code is necessary for the implementation can be copied from here and watch the video below for the detail explanation of the implementation.
I want to keep things simple and very easy. I will write a 5 step guide for setting up apktool and start modifying your app's or any other android framework. This guide will be strictly for windows users, since setting up and using apktool in windows is the easiest.
So lets begin -
[REQUIREMENTS]What you need before you learn how to use apktool -
1. A computer running windows
2. A working internet connection for downloading the following -
STEP 1 - Install JAVA - Go HERE
1. Just go to the above website and download java SDK and JRE.
2.We mostly use only SDK libraries but JRE is required when you want to modify games or apps like whatsapp. So its best if we install both.
3. Install them in any directory for example C: drive and you are good to go to next step 2.
STEP 2 -Install Android SDK- Go HERE
1. Just go to the above website and download the SDK.
2. Install it in an easy path. For example - C:android
3. The short path will be useful when you are using adb for logcat purposes, since typing in a long path every-time you want to access the adb executable file is painful.
4. So once you installed the SDK move on to next step 3
STEP 3 - Download Apktool - Go HERE
1. For downloading apktool related files, you need to go HERE
2. Download latest apktool version, currenlty 1.5.2
3. Download the batch file and aapt.exe
4. Create a folder anywhere in the pc and put all the apktool.jar, aapt.exe and the batch script in that folder. [see screenshot]
5.This will be the operating folder for you now.
6. Next move to next step 4
STEP 4 - Using apktool for decompiling app
1. Open command prompt
2. navigate to the folder where you placed apktool.jar, batch script and the aapt.exe [see screenshot]
3. For this guide i am using a simple framework-res.apk for reference.
4. Once you are in the folder via cmd prompt, you need to install the file using the " IF " command
5. type the following command if you are decompilng apk which is attached with frameworks, if not then you can directly apply 2 command.(apktool d name-of-the-app .apk)
When the command is executed correctly, it will look like this-
1. Once the app is installed you need to decompile it.
2. For decompiling use the command "d". The "d" stands for decompile.
For example-
For example, here's how it will look once the app is decompiled -
1. Then after you are finished with your modding, you need to recompile your app for using it.
2. To recompile the app use the following command " b ". The "b" simply means recompile.
For example -
We also type folder name because we are compiling the content which is inside the folder. We are not compiling the apk which is our directory.
For Example-
STEP 5 - Signing the apk
For Example-
Download SignApk from here.
If you have any errors or problems related to apktool, post them here, I will try to solve them.:D
Originally posted by @A_U. Updated by AdvaitT17
XDA:DevDB Information
[GUIDE]To Decompile, Edit and Recompile App/Apk with APKTOOL, Tool/Utility for all devices (see above for details)
Contributors
AdvaitT17, A_U, brut for APKTOOL
Source Code: http://ibotpeaches.github.io/Apktool/
Version Information
Status: Stable
Created 2016-04-30
Last Updated 2016-04-30
In this guide I will be showing you all that How to "Decompile, Edit and Recompile Apk with APKTOOL and SignApk"
REMEBER- THIS TUTORIAL IS ONLY FOR EDUCATIONAL PURPOSE. I WILL NOT BE RESPONSIBLE FOR AND 3 PARTY COPYRIGHTS ISSUES..
Code is necessary for the implementation can be copied from here and watch the video below for the detail explanation of the implementation.
In this video I had shown how to Decompile, Edit And Recompile Apk with APKTOOL
If you had not installed a plugin on your computer...Visit this link:
If you had not installed a plugin on your computer...Visit this link:
Click Here[
In this video I had shown How to Decompile, Edit And Recompile Apk and even Signing apk with SignApk and then Testing App on Phone
In this video I had shown How to Decompile, Edit And Recompile Apk and even Signing apk with SignApk and then Testing App on Phone
If you had not installed a plugin on your computer...Visit this link:
I want to keep things simple and very easy. I will write a 5 step guide for setting up apktool and start modifying your app's or any other android framework. This guide will be strictly for windows users, since setting up and using apktool in windows is the easiest.
So lets begin -
[REQUIREMENTS]What you need before you learn how to use apktool -
1. A computer running windows
2. A working internet connection for downloading the following -
- JAVA SDK and JRE
- Android SDK
- Apktool core tool
- Sign apk tool
STEP 1 - Install JAVA - Go HERE
1. Just go to the above website and download java SDK and JRE.
2.We mostly use only SDK libraries but JRE is required when you want to modify games or apps like whatsapp. So its best if we install both.
3. Install them in any directory for example C: drive and you are good to go to next step 2.
STEP 2 -Install Android SDK- Go HERE
1. Just go to the above website and download the SDK.
2. Install it in an easy path. For example - C:android
3. The short path will be useful when you are using adb for logcat purposes, since typing in a long path every-time you want to access the adb executable file is painful.
4. So once you installed the SDK move on to next step 3
STEP 3 - Download Apktool - Go HERE
1. For downloading apktool related files, you need to go HERE
2. Download latest apktool version, currenlty 1.5.2
3. Download the batch file and aapt.exe
4. Create a folder anywhere in the pc and put all the apktool.jar, aapt.exe and the batch script in that folder. [see screenshot]
5.This will be the operating folder for you now.
6. Next move to next step 4
STEP 4 - Using apktool for decompiling app
1. Open command prompt
2. navigate to the folder where you placed apktool.jar, batch script and the aapt.exe [see screenshot]
3. For this guide i am using a simple framework-res.apk for reference.
4. Once you are in the folder via cmd prompt, you need to install the file using the " IF " command
5. type the following command if you are decompilng apk which is attached with frameworks, if not then you can directly apply 2 command.(apktool d name-of-the-app .apk)
Code:
apktool if name-of-the-app .apkCode:
apktool if framework-res.apk2. For decompiling use the command "d". The "d" stands for decompile.
Code:
apktool d name-of-the-app .apkCode:
apktool d framework-res.apk- After the app is correctly decompiled, a new folder will be created in the same folder where you placed your app. This contains all the xml's and smali files which can be edited for different mod's.
For example, here's how it will look once the app is decompiled -
1. Then after you are finished with your modding, you need to recompile your app for using it.
2. To recompile the app use the following command " b ". The "b" simply means recompile.
Code:
apktool b name-of-the-app-folder- NOTE - While recompiling the app, you just need to type the name of the folder the app's files contains.
For example -
Code:
apktool b framework-res- The final modded app will be in the dist folder located inside the original app folder created by apktool.
For Example-
- Congrats ! If everything went well, you successfully created a modified app !
- Now the most important step is below in step 5
Quote:
|
NOTE - You MUST follow the step 5. Or else the app wont work. |
- To sign an apk download the "sign-apk.rar" from below attachements
- Extract it to any place.
- Open a new command prompt and change into the sign-apk directory using cmd
- Move the modified-unsigned apk into this folder [see screenshot] -
- then type the following command -
Code:
java -jar signapk.jar certificate.pem key.pk8 path-of-the-folder-contaning-the-apk .apk path-of-the-new-signed-apk .apkCode:
java -jar signapk.jar certificate.pem key.pk8 framework-res.apk framework-res-signed.apk- Once compiled, the signed apk will be found in the same folder with changed name which you typed in cmd.
- This is FINAL APK.:D
- Simply rename it to the original apk and push it into the system ! DONE !
Download SignApk from here.
If you have any errors or problems related to apktool, post them here, I will try to solve them.:D
Originally posted by @A_U. Updated by AdvaitT17
XDA:DevDB Information
[GUIDE]To Decompile, Edit and Recompile App/Apk with APKTOOL, Tool/Utility for all devices (see above for details)
Contributors
AdvaitT17, A_U, brut for APKTOOL
Source Code: http://ibotpeaches.github.io/Apktool/
Version Information
Status: Stable
Created 2016-04-30
Last Updated 2016-04-30