How to use apktool-Introduction to how to use apktool

Time: 2020-11-08Source: Huajun Software TutorialAuthor: Changshan Paper Farmer

Many friends said that they still don’t understand how to use apktool. For this reason, the author will share the content about how to use apktool below. I hope that friends in need can come and learn together.

1. Please configure the JAVA usage environment first.

2. Download the apktool software package and extract the downloaded software package to the root directory of drive E.

3. Press the Windows logo key + R key, find Run in the start menu and enter.

1.jpg

4. Enter cmd in the run input box and press Enter to enter the small blackboard.

2.jpg

5. Then in this order: enter E: and press Enter to enter the E drive of the computer - enter cd apktool and press Enter to enter the E:/apktool directory. This directory is the directory where the decompiled apk file stored in the above operation is located.

6. Extract framework-res.apk from the official flash package of the phone and put it in the E:/apktool directory

3.jpg

7. Install the framework for apktool. In the command prompt window, enter apktool if framework-res.apk and press Enter, so that the framework will be installed automatically.

4.jpg

8. The apk can be decompiled and recompiled normally below. The command is as follows apktool d xxx.apk → This is the decompilation command. xxx.apk is the apk file to be decompiled in the E:/apktool directory apktool b xxx → This is the compilation command. xxx is the folder where the decompiled file is located. This folder is usually named after the previously decompiled file. For example, if I decompile SystemUI.apk, a SystemUI folder will be generated in the E:/apktool directory. Return to The compilation command can be written like this "apktool b SystemUI". After compilation is completed, a dist folder and a build folder will be generated in the SystemUI folder. The dist folder stores the apk files without signatures after compilation. There is also an apk folder in the build folder, which stores the files that are not packaged into apk after compilation.

5.jpg

The above explains how to use apktool. I hope friends in need can learn it.

Related articles更多>>

Popular recommendations