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
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
Android Lint, locate
Using system app permission. Either uncheck the checkbox or choose a Severity lower than Error.