title: java.lang.SecurityException android.telephony.TelephonyManager.getDeviceId
body: <p>Below are my code getting security exception from Android version 7 and onwards. I have added <code>android.permission.READ_PHONE_STATE</code> permission in manifest file and also added in runtime permissions also.</p>
  
  <pre class="lang-java prettyprint-override"><code>TelephonyManager tManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
  
  String imeiNum= tManager.getDeviceId();
  </code></pre>