添加了如下权限,同事也把app放到了 system/app 里了,还是不行
09-16 15:14:49.057: E/AndroidRuntime(4610): java.lang.SecurityException: Neither user 10049 nor current process has android.permission.INSTALL_PACKAGES.
09-16 15:14:49.057: E/AndroidRuntime(4610): at android.content.pm.IPackageManager$Stub$Proxy.installPackageWithVerificationAndEncryption(IPackageManager.java:3602)at dalvik.system.NativeStart.main(Native Method)Killed
百度到
http://blog.csdn.net/murphykwu/article/details/8282585
http://stackoverflow.com/questions/23453942/neither-user-10051-nor-current-process-has-android-permission-install-packages
This permission is only given to system apps. In order to get this permission, your app:
1) must be signed with the system certificates. These certificates are generally available only to the device manufacturers.
2) be installed in /system/app partition.
然后 百度 :“android system app 签名”无源码解决办法 (需要有系统的签名程序)
http://gqdy365.iteye.com/blog/2111949
有源码的
http://blog.chinaunix.net/uid-12845622-id-3046666.html