jarsigner對未簽名的apk進行簽名過程詳情說明 【有截圖有案例】
阿新 • • 發佈:2019-02-16
jarsigner對未簽名的apk進行簽名
1.標準格式:
jarsigner -verbose -keystore 簽名檔案路徑(去掉字尾.keystore)
-signedjar 簽名後的apk路徑
-digestalg SHA1 -sigalg MD5withRSA 簽名前的apk路徑簽名檔案別名keyAlias
2.成功案例:
jarsigner -verbose -keystore C:\sigin\applicationsignname[20150409]
-signedjar C:\sigin\apk\Baidu_Claim_signed.apk
-digestalg SHA1 -sigalg MD5withRSA C:\sigin\Baidu_Claim_unsigned.apk
jie-20150409
jarsigner -verbose -keystore C:\sigin\applicationsignname[20150409] -signedjar C:\sigin\Baidu_Claim_signed1.apk
-digestalg SHA1 -sigalg MD5withRSA C:\sigin\Baidu_Claim_unsigned.apk
jie-20150409
3.失敗案例:
簽名路徑不能新增.keystore
簽名後的apk路徑資料夾必須是存在的,否則會報無法建立apk的錯誤
jarsigner -verbose -keystore C:\sigin\applicationsignname[20150409].keystore -signedjar Baidu_Claim_signed.apk
-digestalg SHA1 -sigalg MD5withRSA C:\sigin\Baidu_Claim_unsigned.apk
jie-20150409
參考文獻