Permission is only granted to system apps in Android Manifest


While i am inserting this permission in manifest it shows error " Permission is only granted to system apps"

Actually i used this permission for developing application based on Oauth2 token. But i cant enable this permission. Can any Help me?


MODIFY_PHONE_STATE permission is granted to system apps only.

For your information, there are 2 types of Android apps: system & user


<strong>User apps</strong> are just all your normal app installations through the Google Play Store, Amazon Appstore or sideloading. These go into the /data partition of your Android phone, which is the part of the internal memory made available for user data and apps.

<strong>System apps</strong> are basically the apps that come pre-installed with your ROM. In a standard Android user environment, the user doesn’t have write access to the /system partition and thus, installing or uninstalling system apps directly isn’t possible.

In order to install an app as a system app on your Android device, <strong>your device must either be rooted or have a custom recovery installed (or both).</strong>


That being said, that error is actually wrong because you have a valid code and compilation should work. It would be better if it gave a warning instead. In Eclipse you can easily fix it. Just go to:

Window -> Preferences -> Android -> Lint Error Checking.

Find <strong>ProtectedPermission</strong> from the list and set the severity to something other than error(info for example). This way your project will still compile.


  • iPad Icon names?
  • Is it possible to install Adobe reader or third party application in iOS simulator for testing?
  • Geb authoring support within Intellij-IDEA?
  • Managing big amount of data (around 400Mb)
  • Distribution Profile requesting a Developer certificate
  • Make Amazon S3 files available only to logged in users
  • phyton3 pip and pyautogui install mac -remove broken python [closed]
  • is paypal's iphone sdk for payment approved by apple? [closed]
  • Grunt module(s) to upload all static assets to S3 / CloudFront, replace paths, and invalidate old as
  • Special chars in Amazon S3 keys?
  • What is the difference between a “service account” and an “installed application”?
  • Clear fused location provider's location for testing
  • How to handle images sent by a mobile device?
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • Limiting recursion to certain level - Duplicate rows
  • With Hadoop, can I create a tasktracker on a machine that isn't running a datanode?
  • Seeking advice on Jetty HttpClient Hang
  • Recording logins for password protected directories
  • How do I change content of ComboFieldEditor?
  • Pass value from viewmodel to script in zk
  • req.body is undefined - nodejs
  • script to move all files from one location to another location
  • WinForms: two way TextBox problem
  • Can I make an Android app that runs a web view in Chrome 39?
  • Symfony2: How to get request parameter
  • Weird JavaScript statement, what does it mean?
  • Adding custom controls to a full screen movie
  • Do I've to free mysql result after storing it?
  • Google cloud sdk not working when python points python3
  • Akka Routing: Reply's send to router ends up as dead letters
  • Is there a mandatory requirement to switch app.yaml?
  • SQL merge duplicate rows and join values that are different
  • Benchmarking RAM performance - UWP and C#
  • using HTMLImports.whenReady not working in chrome
  • Turn off referential integrity in Derby? is it possible?
  • Authorize attributes not working in MVC 4
  • Busy indicator not showing up in wpf window [duplicate]
  • Android Heatmap on canvas or ImageView
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF