jarsigner 命令行为apk签名
其实很简单的一条命令
jarsigner -verbose -keystore /xxx/release.keystore -signedjar /xxx/123.signed.apk /xxx/unsign.apk xxx[签名文件里别名]
如果你是JDK7的话,就用下面的命令(需要指定-sigalg
and -digestalg
)):
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore -signedjar /xxx/123.signed.apk /xxx/unsign.apk xxx[签名文件里别名]
参考页面:http://developer.android.com/tools/publishing/app-signing.html
检验是否签名成功:
jarsigner -verify xxx.apk
jarsigner -certs -verbose -verify xxx.apk
相关推荐
yangChong 2020-08-03
zyygive 2020-07-29
yangChong 2020-07-29
绿豆饼 2020-07-28
adb shell cd system/app rm *.apk21. 获取管理员权限: adb root22. 启动Activity: adb shell am start -n 包名/包名+类名。
蓝天梦 2020-07-28
rookieding 2020-07-26
zyygive 2020-06-11
zyygive 2020-06-09
安辉 2020-05-27
KarlMarxs 2020-05-15
xilove0 2020-04-20
laijunfeng 2020-04-07
KarlMarxs 2020-02-23
Soinice 2020-02-18
zyygive 2020-02-17
ProgrammerFan00 2020-02-16
Ubuntu黑客 2020-02-14
89590098 2020-02-01