Apktool
下载: ibotpeaches.github.io/Apktool/ins…

解包
使用Apktool解压.apk安装包.
# 解包
$ apktool d -f example.apk(安装包路径)
# 解包到指定目录下
$ apktool d -f example.apk -o example(解压到的指定路径)
重新打包
使用Apktool 将解压修改后的资源文件夹重新打包成 .apk安装包
# 重新打包.
$ apktool b -f example
# 重打包为指定文件
$ apktool b -f example -o example.apk
重新签名
使用 jarsigner 和 .jks 密钥为安装包重新签名
$ jarsigner -verbose -keystore jks文件路径 -signedjar 等待签名apk文件路径 签名后的apk路径 密钥别名
# 使用案例
jarsigner -verbose -keystore ~/example.jks -signedjar ~/1_example.apk ~/example.apk android-release
Link
更多使用姿势请看: ibotpeaches.github.io/Apktool/doc…