I have a System app that uses system permissions and I have those permissions listed in manifest. But 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 of it and it is no problem for me because my application will be used only on rooted phones and it will be installed as system app. So I want suppress this error, anyone knows how?
My project already compiles fine on command line, installs, runs etc.. My problem is about eclipse giving an error for a legit manifest file.
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.
Filed under: Android Coding FAQ