Platform: RK3288
OS: Android 6.0
Kernel: 3.10.92
背景:
rk在系统中内置了一个压力测试工具StressTest.apk,只要往sdcard目录放一个文件(RK_StressTest.txt)就可以使用。
Log:
01-01 08:34:35.078 572 572 I PackageManager: /system/priv-app/StressTest changed; collecting certs
01-01 08:34:35.199 572 572 W PackageManager: Failed to parse /system/priv-app/StressTest: Signature mismatch for shared user : SharedUserSetting{2bc4bd8 android.uid.system/1000}
原因:
系统签名有修改过,但是StressTest.apk是rk预编译放进去的,导致安装时签名不一致而失败。
解决方法:
kris@eco:~/rk3288/vendor/rockchip/common$ g df 12c1e66ce512e932b56271518d1f5f1e091c367a 2d401f533cd52c638b3843b003a857e21a891948
diff --git a/apps/StressTest/Android.mk b/apps/StressTest/Android.mk
index c1dbb96..2191e58 100644
--- a/apps/StressTest/Android.mk
+++ b/apps/StressTest/Android.mk
[url=home.php?mod=space&uid=1999721]@@[/url] -11,7 +11,9 @@ LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_PRIVILEGED_MODULE := true
-LOCAL_CERTIFICATE := PRESIGNED
+#Kris,190424.
+#LOCAL_CERTIFICATE := PRESIGNED
+LOCAL_CERTIFICATE := platform
#LOCAL_OVERRIDES_PACKAGES :=
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_REQUIRED_MODULES := \
原作者:KrisFei
|