Wednesday, 4 September 2013

Permission granted only to system apps error in IDE

So many people are getting "Permission granted only to system apps error" in Eclipse.While using System services in your application like

    <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
we can resolve this Error in Eclipse & Android Studio By below steps

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





No comments:

Post a Comment

Android SQLite Database Viewer or Debuging with Stetho

Every Android Developer uses SQLite Database to store data into the Android Application data. But to view the data in SQLite have a lot of...