2019独角兽企业重金招聘Python工程师标准>>>
1 生成key
keytool -genkey -keystore test.keystore -alias test -keyalg RSA -validity 10000
2 签名
在ant.properties里添加
key.store=test.keystore
key.alias=test
key.store.password=new123
key.alias.password=new123
3 编译
ant clean
ant debug/release
检验
jarsigner -verbose -keystore test.keystore -signedjar signed.apk t.apk 'test'
4 生产哈希密钥
keytool -exportcert -alias test -keystore test.keystore | openssl sha1 -binary | openssl base64