嗨,我写了一个程序,它使用事件injection.so为了获得系统特权,我必须签署apk与系统的证书。我想在这个环节 http://paulononaka.wordpress.com/2011/10/19/apk-with-system-privileges/ https://github.com/getfatday/keytool-importkeypairsign apk与系统证书
提到的,但是当我尝试,我得到以下错误
C:\Program Files\Java\jdk1.7.0\bin>keytool -importkeypair -k ~/C:\Users\name\.androiddebug.keystore -p android -pk8 platform.pk8 -cert platform.x509.
pem -alias platform
Illegal option: -importkeypair
Key and Certificate Management Tool
Commands:
-certreq Generates a certificate request
-changealias Changes an entry's alias
-delete Deletes an entry
-exportcert Exports certificate
-genkeypair Generates a key pair
-genseckey Generates a secret key
-gencert Generates certificate from a certificate request
-importcert Imports a certificate or a certificate chain
-importkeystore Imports one or all entries from another keystore
-keypasswd Changes the key password of an entry
-list Lists entries in a keystore
-printcert Prints the content of a certificate
-printcertreq Prints the content of a certificate request
-printcrl Prints the content of a CRL file
-storepasswd Changes the store password of a keystore
Use "keytool -command_name -help" for usage of command_name
你好,请分享/密钥工具-importkeypair“命令的其余部分”,如果你发现你的SOLN。 – Basher51