无论是用户还是10051当前进程具有android.permission.INSTALL_PACKAGES [英] Neither user 10051 nor current process has android.permission.INSTALL_PACKAGES

查看:1620
本文介绍了无论是用户还是10051当前进程具有android.permission.INSTALL_PACKAGES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目有无人值守安装的问题。我的项目需要许可android.permission.INSTALL_PACKAGES,但权限系统的权限。如何使用这个权限?

 错误:java.lang.SecurityException异常:无论是用户还是10051当前进程具有android.permission.INSTALL_PACKAGES。

NAME =android.permission.INSTALL_PACKAGES <:

我的的Andr​​oidManifest.xml 增加了使用许可权的android / p>

解决方案

此权限只授予系统应用。为了得到这个许可,您的应用程序:

1)必须使用系统证书进行签名。这些证书一般只提供给设备制造商。

2)被安装在/系统/应用程序分区。

My project has a problem of Silent Installation. my project need the permission "android.permission.INSTALL_PACKAGES",but the permission is system permission. How to use this permission?

error: java.lang.SecurityException: Neither user 10051 nor current process has android.permission.INSTALL_PACKAGES.

My AndroidManifest.xml has added uses-permission android:name="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.

这篇关于无论是用户还是10051当前进程具有android.permission.INSTALL_PACKAGES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆