给apk签名
https://www.cnblogs.com/gengzhaoyun/p/7607751.html apk增加系统签名的方法
https://blog.csdn.net/xiaoyi_tdcq/article/details/79272047 android系统签名
https://blog.csdn.net/chenzhen1080/article/details/78990353 如何获得系统权限--解决no conscrypt_openjdk_jni in java.library.path错误
java -Djava.library.path=. -jar signapk.jar platform.x509.pem platform.pk8 app.apk app_sign.apk
获取APK签名
keytool -printcert -jarfile apk文件
![](https://img2018.cnblogs.com/blog/1164733/201905/1164733-20190525124749787-1952372470.png)
java -Djava.library.path=. -jar signapk.jar platform.x509.pem platform.pk8 unsigned_file.apk signed_file.apk
任何一套Android代码里有:
android/prebuilts/sdk/tools/lib/signapk.jar
android/prebuilts/sdk/tools/linux/lib64/libconscrypt_openjdk_jni.so
platform.x509.pem platform.pk8 是签名证书里的
(1)signapk.jar、 libconscrypt_openjdk_jni.so 、platform.x509.pem、platform.pk8、unsigned_file.apk 放到同一个文件夹下
(2)执行 java -Djava.library.path=. -jar signapk.jar platform.x509.pem platform.pk8 unsigned_file.apk signed_file.apk
即可完成签名