-
Notifications
You must be signed in to change notification settings - Fork 2
android_key
游成10代 edited this page Feb 9, 2018
·
2 revisions
- java 1.8
- java 配置全局变量
- win环境下
文件1: 双击check_key.bat, 拖入签名xxx.jks或者xxx.keystore文件, 输入密码, 会在当前文件夹生成key.log
文件2: 双击check_rsa.bat, 将xxx.apk改为xxx.zip,解压. 将META-INF中的xxx.RSA文件拖入, 会在当前文件夹生成rsa.log
check_key.bat
@echo off
set /p key=拖入签名key文件
echo %date% %time% >> key.log
keytool -list -keystore %key%
keytool -list -keystore %key% >> key.log
pause
check_rsa.bat
@echo off
set /p rsa=拖入xx.RSA文件
echo %date% %time% >> rsa.log
keytool -printcert -file %rsa%
keytool -printcert -file %rsa% >> rsa.log
pause
- keytool -list -keystore xxx.jks
- keytool -printcert -file xxx.RSA
Q: 不是内部命令
A: 环境变量配置问题, 确定是否配好, cmd验证, 路径写死, 重启
- jks为新版签名, 更安全, 新项目都要用第二种
- as生成签名文件