您的位置:首页 > 移动开发 > Android开发

android singapk

2016-04-22 17:53 645 查看
singapk

1.android source code, copy build\target\product\security\platform.pk8 and platform.x509.pem to a new directory.

 

2 generate shared.priv.pem

openssl pkcs8 -in platform.pk8 -inform DER-outform PEM -out shared.priv.pem -nocrypt

3 generate pkcs12

openssl pkcs12 -export -inplatform.x509.pem -inkey shared.priv.pem -out shared.pk12 -name androiddebugkey

 note:

Enter Export Password: (please input "android")

Verifying - Enter Export Password:(please input "android")

 

4 generate debug.keystore

keytool -importkeystore -deststorepassandroid -destkeypass android -destkeystore debug.keystore -srckeystoreshared.pk12 -srcstoretype PKCS12 -srcstorepass android -alias androiddebugkey

 

5  sign apk

eclipse-->file-->export-->Android-->ExportAndroid Application-->next-->next-->Use existing keystore (and input password as “android”)-->next(input password again)-->next-->Select singed apk save path-->finish

 

6 import key to eclipse

eclipse-->windows-->preferences-->Android-->Build

add Custom debug keystore

Done
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android eclipse signapk