权限仅授予系统应用程序 [英] Permission is only granted to system app
问题描述
我有一个使用系统权限的系统应用程序,我有清单中列出的那些权限。当我尝试进行构建(命令行构建)时,Eclipse会给出以下错误:
权限是我已经知道我的应用程序需要系统权限,这对我来说不是问题,因为我的应用程序将仅用于根电话。所以我想抑制这个错误,任何人都知道如何?
编辑
我的项目已经在命令行编译,安装,运行等..我的问题是关于eclipse为合法清单文件提供错误。解决方案Eclipse:
窗口 - >首选项 - > Android - > Lint错误检查
在列表中找到一个条目,其中
ID = ProtectedPermission
。将严重性设置为低于错误。这样,您仍然可以使用Eclipse编译项目。
在Android Studio中
< blockquote>
文件 - >设置 - >编辑器 - >检查
在下Lint
,找到使用系统应用程序权限
。取消选中复选框或选择严重性低于错误。
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):
Permission is only granted to system apps
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?
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.
In Eclipse:
Window -> Preferences -> Android -> Lint Error Checking.
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.
In Android Studio:
File -> Settings -> Editor -> Inspections
Under Android Lint
, locate Using system app permission
. Either uncheck the checkbox or choose a Severity lower than Error.
这篇关于权限仅授予系统应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!