Disclaimer: this article is only for education purpose. And readers are required to install couple of tools mentioned in here.
Imagine you have an Android application installed in your phone called victimApp. One way you can get its apk file is using current backup application, such as APK Installer. This article will use it as a backup application.
Imagine you have an Android application installed in your phone called victimApp. One way you can get its apk file is using current backup application, such as APK Installer. This article will use it as a backup application.
- Once you opened the application and backed it up, it will tell u where the apk file is located.
- Then issue $ adb pull ...path... to your local computer. If it says the file not found, you can user $adb shell cp ..path.. /sdcard/Download. Then you can use $adb pull Download/victimApp.apk to your local computer.
- After that, by issuing $ apktool d victimApp.apk, you can de-compire it.
- Then you can modify the content in the applications.
- Assumably you have modified the content, it is time to build the application again.
- Before building the app, you have to have a keystone first. Please check this link to prepare for it.
- Then you can issue $apktool b victimApp (depending on the name of the folder that holds the content of the application). And the apk file will locate in the application folder under dist subdirectory.
- After that you can install it to your emulator or phone to test it by installing it using $adb install modifiedAppName.apk.