Android 系统签名

it2022-05-05  131

之前在做C++binder通信时,需要把一个apk作为服务端,里面对服务添加,用到了很多底层代码,系统签名

加入android:sharedUserId="android.uid.system"这个属性。使用eclipse编译出未加签名的apk文件,但是这个apk文件是不能用的。 会报错:[2019-07-22 15:14:30 - AndroidIPC] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE [2019-07-22 15:14:30 - AndroidIPC] Please check logcat output for more details. [2019-07-22 15:14:30 - AndroidIPC] Launch canceled!使用系统秘钥进行重新签名(linux平台下的操作) 3.1、将eclipse的apk拷贝到linux平台 3.2、java -jar out/host/linux-x86/framework/signapk.jar build/target/product/security/platform.x509.pem build/target/product/security/platform.pk8 AndroidIPC.apk AndroidIPCsigned.apk通过Shared User id,拥有同一个User id的多个APK可以配置成运行在同一个进程中。那么把程序的UID配成android.uid.system,也就是要让程序运行在系统进程中

ADD: linux指令:cp 文件或文件夹拷贝


最新回复(0)