title: Neither user 10102 nor current process has android.permission.READ_PHONE_STATE
body: <p>I am trying to call <strong><a href="https://developer.android.com/reference/android/telecom/TelecomManager.html#getCallCapablePhoneAccounts()" rel="noreferrer">getCallCapablePhoneAccounts()</a></strong> method of <strong><em>android.telecom.TelecomManager</em></strong> class. Though i have added required user-permission, i am getting <strong>Security exception</strong>.</p>
  
  <p>Here is the line of code where i am getting exception</p>
  
  <pre><code>List&lt;PhoneAccountHandle&gt; list = getTelecomManager().getCallCapablePhoneAccounts();
  </code></pre>
  
  <p>user permission added in manifest</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  </code></pre>
  
  <blockquote>
    <p>Exception stacktrace
         Caused by: java.lang.SecurityException: getDefaultOutgoingPhoneAccount: Neither user 10102 nor current process
    has android.permission.READ_PHONE_STATE.
                at android.os.Parcel.readException(Parcel.java:1599)
                at android.os.Parcel.readException(Parcel.java:1552)
                at com.android.internal.telecom.ITelecomService$Stub$Proxy.getDefaultOutgoingPhoneAccount(ITelecomService.java:615)
                at android.telecom.TelecomManager.getDefaultOutgoingPhoneAccount(TelecomManager.java:439)</p>
  </blockquote>