【发布时间】:2018-12-20 09:57:14
【问题描述】:
我试过the documentation的代码,
keytool -exportcert -alias MyAndroidKey -keystore MyProductionKeys.keystore | xxd -p | tr -d "[:space:]" | echo -n com.example.myapp `cat` | sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11
但是得到了
'xxd' 不是内部或外部命令,可操作 程序或批处理文件。
然后尝试
C:\Program Files\Java\jdk1.8.0_25\bin> keytool -exportcert -alias *Alias -keystore *keystorePath | C:\OpenSSL\bin\openssl.exe sha1 -binary | C:\OpenSSL\bin\openssl.exe base64
获取哈希字符串的命令,并在 SMS 中使用前 11 个字符,包括 。 但是什么都没有发生,广播接收器没有执行 onReceive 回调。请帮忙
【问题讨论】:
-
你可以试试谷歌哈希计算示例代码来找到你的哈希吗?
标签: android