android app 静默安装



添加了如下权限,同事也把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)
09-16 15:14:49.057: E/AndroidRuntime(4610): at com.android.commands.pm.Pm.runInstall(Pm.java:957)
09-16 15:14:49.069: E/PackageUtils(2693): installSilent successMsg:, ErrorMsg:WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix. pkg: /storage/sdcard0/download/.um/apk/e7dae448aeadd44d57d34a78fe16e07e.apkjava.lang.SecurityException: Neither user 10049 nor current process has android.permission.INSTALL_PACKAGES. at android.os.Parcel.readException(Parcel.java:1465)
at android.os.Parcel.readException(Parcel.java:1419)
at android.content.pm.IPackageManager$Stub$Proxy.installPackageWithVerificationAndEncryption(IPackageManager.java:3602)
at com.android.commands.pm.Pm.runInstall(Pm.java:957)
at com.android.commands.pm.Pm.run(Pm.java:116)
at com.android.commands.pm.Pm.main(Pm.java:79)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)

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

你可能感兴趣的:(android)