title: neither user 10632 nor current process has android.permission.READ_PHONE_STATE error in Android 6
body: <p>I am developing an Android application in Android 6 and my application in a service needs to get device ID(<code>getDeviceId</code>). I have set <code>android.permission.READ_PHONE_STATE</code> in the manifest file, but at run time I got this error:</p>
  
  <pre><code>neither user 10632 nor current process has android.permission.READ_PHONE_STATE. java.lang.SecurityException:getDeviceId need android.permission.Read_Phone_state
  </code></pre>
  
  <p>I install my apk file using <code>adb install myapk.apk</code> and I suppose that all of application's required permissions are granted at install time.</p>