1.命令行方法给apk加系统签名
在Linux环境:
java -Djava.library.path=. -jar signapk.jar platform.x509.pem platform.pk8 app_unsigned.apk app_signed.apk
文件在源码中的路径
Z:ut3399prebuiltssdk oolslinuxlib64libconscrypt_openjdk_jni.so
Z:ut3399outhostlinux-x86frameworksignapk.jar
Z:ut3399uild argetproductsecurityplatform.x509.pem
Z:ut3399uild argetproductsecurityplatform.pk8
2.将系统签名导入jks签名库文件
Windows环境,用git软件的命令行工具mintty:
./keytool-importkeypair -k ./weflow.jks -p jks_password -pk8 platform.pk8 -cert platform.x509.pem -alias platform
https://github.com/getfatday/keytool-importkeypair
Z:ut3399uild argetproductsecurityplatform.x509.pem
Z:ut3399uild argetproductsecurityplatform.pk8
参考链接:
如何获得系统权限--解决no conscrypt_openjdk_jni in java.library.path错误
http://www.jianshu.com/p/a68ca97e7c08
Android Studio自动生成带系统签名的apk
http://blog.csdn.net/cxq234843654/article/details/51557025
关于android:sharedUserId="android.uid.system"这个系统级权限
http://blog.csdn.net/u012398902/article/details/52735980
查看APK的签名的方法
http://blog.csdn.net/wed110/article/details/38303637