# ApkTools **Repository Path**: shareware/ApkTools ## Basic Information - **Project Name**: ApkTools - **Description**: Android 平台非常好用的工具Jar,由开源项目 walle 改造而来,支持加固、读写渠道号、读写签名 - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-26 - **Last Updated**: 2024-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ApkTools #### 介绍 Android 平台非常好用的加固、读写渠道号、读写签名的工具Jar url: https://gitee.com/shareware/ApkTools #### 使用说明 ```shell java -jar ApkTool.jar [cmd] [options] [input file] [output directory] ┌──────────────┬────────────────────────────────────────────────────────┐ │ Options │ Description │ ├──────────────┼────────────────────────────────────────────────────────┤ │ get │cmd, get channel info or signature mode │ ├──────────────┼────────────────────────────────────────────────────────┤ │ put │cmd, add channel info │ ├──────────────┼────────────────────────────────────────────────────────┤ │ sign │cmd, generate apk signature v1 v2 │ ├──────────────┼────────────────────────────────────────────────────────┤ │ shell │cmd, add shell for app, followed by application name │ ├──────────────┼────────────────────────────────────────────────────────┤ │ -s │option, signature mode, only fix cmd: get │ ├──────────────┼────────────────────────────────────────────────────────┤ │ -c │option, followed by channel name or channel.txt path │ ├──────────────┼────────────────────────────────────────────────────────┤ │ -keystore │option, followed by file path end with .keystore or .jks│ ├──────────────┼────────────────────────────────────────────────────────┤ │ -kwd │option, followed by keystore password │ ├──────────────┼────────────────────────────────────────────────────────┤ │ -alias │option, followed by alias name │ ├──────────────┼────────────────────────────────────────────────────────┤ │ -awd │option, followed by alias password │ ├──────────────┼────────────────────────────────────────────────────────┤ │ input file │original apk path │ ├──────────────┼────────────────────────────────────────────────────────┤ │ output dir │output directory │ └──────────────┴────────────────────────────────────────────────────────┘ for example: java -jar ApkTool.jar get -s /Users/mac/test.apk java -jar ApkTool.jar get -c /Users/mac/test.apk java -jar ApkTool.jar put -c channel /Users/mac/test.apk /Users/mac/channel java -jar ApkTool.jar put -c channel.txt /Users/mac/test.apk /Users/mac/channel java -jar ApkTool.jar shell com.xxx.xxx /Users/mac/test.apk java -jar ApkTool.jar sign -keystore /Users/mac/xxx.jks -kwd xxx -alias xxx -awd xxx /Users/mac/test.apk java -jar ApkTool.jar sign -c channel -keystore /Users/mac/xxx.jks -kwd xxx -alias xxx -awd xxx /Users/mac/test.apk /Users/mac/channel java -jar ApkTool.jar sign -c channel.txt -keystore /Users/mac/xxx.jks -kwd xxx -alias xxx -awd xxx /Users/mac/test.apk /Users/mac/channel """ ``` 注意: 1、加固需要配合工程中shell-release.aar使用