搜索
您的当前位置:首页apktool install guide

apktool install guide

来源:爱问旅游网

apktool install guide

https://apktool.org/docs/install

Install Guide
A minimum of Java 8 is required to run Apktool.

Windows

As Windows is case-insensitive please adjust case sensitivity for correct operation.

Download the Windows wrapper script. (Right click, Save Link As )

Download the latest version of Apktool.
Rename downloaded jar to

Move both apktool.jar and apktool.bat to your Windows directory. (Usually C://Windows)
If you do not have access to C://Windows, you can place the two files anywhere and add that directory to your Environment Variables System PATH variable.

Try running apktool via the command prompt.

> apk tool
Apktool 2.10.0 - a tool for reengineering Android apk files
with smali v3.0.8 and baksmali v3.0.8
Copyright 2010 Ryszard Wiśniewski <brut.alll@gmail.com>
Copyright 2010 Connor Tumbleson <connor.tumbleson@gmail.com>

usage: apktool
 -advance,--advanced   Print advanced information.
 -version,--version    Print the version.
usage: apktool if|install-framework [options] <framework.apk>
 -p,--frame-path <dir>   Store framework files into <dir>.
 -t,--tag <tag>          Tag frameworks using <tag>.
usage: apktool d[ecode] [options] <file_apk>
 -f,--force              Force delete destination directory.
 -o,--output <dir>       The name of folder that gets written. (default: apk.out)
 -p,--frame-path <dir>   Use framework files located in <dir>.
 -r,--no-res             Do not decode resources.
 -s,--no-src             Do not decode sources.
 -t,--frame-tag <tag>    Use framework files tagged by <tag>.
usage: apktool b[uild] [options] <app_path>
 -f,--force-all          Skip changes detection and build all files.
 -o,--output <file>      The name of apk that gets written. (default: dist/name.apk)
 -p,--frame-path <dir>   Use framework files located in <dir>.

For additional info, see: https://apktool.org


Great setup! You can now use `apktool` to check the APK’s integrity by attempting to decode it. Here’s how:

1. **Decode the APK**:
   Run the following command to decode the `.apk` file, specifying an output directory:
   ```cmd
   apktool d -o E:\output_folder E:\eMule\share\open???-connect-3-3-4.apk
   ```
   - If the APK is corrupt, you may see errors during this process. A successful decode generally indicates that the APK file structure is intact.

2. **Inspect the Output**:
   - After decoding, look inside the `E:\output_folder` directory. If you can see organized subfolders (`res`, `smali`, `assets`, etc.), this is another sign the file structure is likely intact.

This process won’t confirm functionality but is a good integrity check for the file structure itself.

The decoded output should now be in `E:\output_folder`. You can examine the contents there, especially `AndroidManifest.xml` and other resource files, to ensure they are readable and complete.

Linux
Download the Linux wrapper script. (Right click, Save Link As apktool)
Download the latest version of Apktool.
Rename the downloaded jar to apktool.jar.
Move both apktool.jar and apktool to /usr/local/bin. (root needed)
Make sure both files are executable. (chmod +x)
Try running apktool via CLI.

Mac
Download the Mac wrapper script. (Right click, Save Link As apktool)
Download the latest version of Apktool.
Rename the downloaded jar to apktool.jar.
Move both apktool.jar and apktool to /usr/local/bin. (root needed)
Make sure both files are executable. (chmod +x)
Try running apktool via CLI.
Brew
Install Homebrew as described in this page.
Execute the command brew install apktool in the terminal.
Try running apktool via CLI.

因篇幅问题不能全部显示,请点此查看更多更全内容

Top