title: READ_PRIVILEGED_PHONE_STATE permission not granted
body: <p>I'd like to grant android.permission.READ_PRIVILEGED_PHONE_STATE permission to my app, but even though it's a system app (in system-priv folder on a rooted device for tests) it's not granted.</p>
  <p>ADB shows request for this permission, but it's not granted.</p>
  <p>In the Manifest I have</p>
  <pre class="lang-java prettyprint-override"><code>&lt;uses-permission android:name=&quot;android.permission.READ_PRIVILEGED_PHONE_STATE&quot; tools:ignore=&quot;ProtectedPermissions&quot; /&gt;
  </code></pre>
  <p>When I try to check it in the runtime</p>
  <pre class="lang-java prettyprint-override"><code>if (ActivityCompat.checkSelfPermission(context.getApplicationContext(), Manifest.permission.READ_PRIVILEGED_PHONE_STATE) == PackageManager.PERMISSION_GRANTED)
  </code></pre>
  <p>the AS gives &quot;Cannot resolve symbol 'READ_PRIVILEGED_PHONE_STATE'&quot; and the app won't compile.</p>
  <p>Why READ_PRIVILEGED_PHONE_STATE is visible in the Manifest, but not visible in the java code (also missing in Manifest.class) ?</p>
  <p>How can I grant this permission?</p>
  <p>I tested it on rooted Android Oreo.</p>
  <p>Edit: This answers a part of my question: <a href="https://stackoverflow.com/questions/41174789/permission-is-not-a-changeable-permission-type">Permission is not a changeable permission type</a></p>
  <p>The permission was granted on Lollipop, but not on Oreo.</p>
  <p>But the question remains: Why READ_PRIVILEGED_PHONE_STATE is visible in the Manifest, but not visible in the java code (also missing in Manifest.class) ?</p>