权限只授予系统应用权限、系统

由网友(心再给我霸占一次)分享简介:我有一个系统应用使用系统权限,我有在清单中列出的权限。 Eclipse中给出了如下的错误当我尝试做一个版本(命令行建工程):I have a System app that uses system permissions and I have those permissions listed in the manif...

我有一个系统应用使用系统权限,我有在清单中列出的权限。 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.

阅读全文

相关推荐

最新文章