java如何在后台安装/卸载安卓应用程序?
我想在没有用户确认对话框的情况下静默地install/uninstall
应用程序。我尝试了两种解决方案,根设备和系统目录中的安装应用,但找到了本site中提到的更好的解决方案
To achieve that first you have to obtain the certificates that were used to sign the Android OS installed on the device – a pair of certificates (.pk8 + x509.pem) – to generate a java certificate.
The certificates pair (platform.pk8 + platform.x509.pem) can be found under {Android Source}/build/target/product/security.`
我从source code for 4.1.2 安卓 version下载了证书对,并用它们来签署我的申请,但这对mr
谁能解释一下我如何从我的设备ROM
获取这些证书,或者有其他解决方案吗
# 1 楼答案
我不能回答这个问题,但我想我知道为什么失败了
Android源代码有3或4个默认代码和平台签名密钥。您获取了一个默认签名密钥,但OEM在使用Android时会更改它们。密钥不再有效。(原始设备制造商应该更换钥匙)
另见尼古拉·埃连科夫的Android Security Internals: An In-Depth Guide to Android’s Security Architecture。你可能可以在网上找到它的PDF格式