windows下android studio對apk進行系統簽名
阿新 • • 發佈:2018-12-31
前提:要有android廠家提供的platform.x509.pem和platform.pk8 工具:openssl和keytool,請確保在path中 openssl pkcs8 -inform DER -nocrypt -in "platform.pk8" -out "key.tmp" openssl pkcs12 -export -in "platform.x509.pem" -inkey "key.tmp" -out "p12.tmp" -password pass:"這裡提供密碼" -name "wipc" keytool -importkeystore -deststorepass "這裡提供密碼" -destkeystore "輸出.keystore" -srckeystore "p12.tmp" -srcstoretype PKCS12 -srcstorepass "這裡提供密碼" 然後在build.gradle中 signingConfigs { jjy { keyAlias 'wipc' keyPassword '這裡提供密碼' storeFile file('D:/bear/tool/monitor/sign/輸出.keystore') storePassword '這裡提供密碼' } } 在Android Studio中test ok