权限只授予系统应用 [英] Permission is only granted to system app

查看:249
本文介绍了权限只授予系统应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个系统应用使用系统权限,我有在清单中列出的权限。 Eclipse中给出了如下的错误当我尝试做一个版本(命令行建工程):

I have a System app that uses system permissions and I have those permissions listed in the manifest. Eclipse gives the following error when I try to make a build(command line build works):

权限只授予系统应用

我已经意识到我的应用程序需要的系统权限,这是不是一个问题,我是因为我的应用程序将只对根的手机使用。所以我想晚饭preSS这个错误,有谁知道怎么样?

I'm already aware that my app requires system permissions and it is not a problem for me because my application will be used only on rooted phones. So I want to suppress this error, anyone knows how?

修改
我的项目已经编译好于命令行,安装,运行等。我的问题是关于日食的一个合法的manifest文件给了一个错误。

EDIT
My project already compiles fine on command line, installs, runs etc.. My problem is about eclipse giving an error for a legit manifest file.

推荐答案

在Eclipse:

窗口 - > preferences - > Android的 - >皮棉错误检查

Window -> Preferences -> Android -> Lint Error Checking.

在列表中找到 ID = ProtectedPermission 的条目。严重性设置不是错误降低。这样,您就可以使用Eclipse仍编译该项目。

In the list find an entry with ID = ProtectedPermission. Set the Severity to something lower than Error. This way you can still compile the project using Eclipse.

在Android的工作室:

文件 - >设置 - >检查

File -> Settings -> Inspections

Android的皮棉,找到使用系统应用程序的权限。无论是取消选中该复选框或选择严重性低于错误。

Under Android Lint, locate Using system app permission. Either uncheck the checkbox or choose a Severity lower than Error.

这篇关于权限只授予系统应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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