title: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10210 nor current process.. in HTC Phones only
body: <p><strong>Error in HTC phones only works very much fine in samsung,lg, etc.</strong></p>
  
  <blockquote>
    <p>java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user
    10210 nor current process has android.permission.READ_PHONE_STATE</p>
  </blockquote>
  
  <p>Permission given in Manifest file</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
  </code></pre>
  
  <p>My code below</p>
  
  <pre><code>final TelephonyManager tm=(TelephonyManager)con.getSystemService(Context.TELEPHONY_SERVICE);
  String deviceId = tm.getDeviceId(); 
  </code></pre>
  
  <p><strong>This code is already tested in hundreds of Samsung, LG, Xiomi, Gionee, Xolo etc. phones and working very very much fine.</strong></p>
  
  <p>it only gives error in HTC Desire Series phones like,</p>
  
  <blockquote>
    <p>PHONE_MODEL=HTC Desire 700 dual sim ANDROID_VERSION=4.1.2</p>
  </blockquote>
  
  <p><strong>I repeat it gives error only in htc phones, in other works fine.</strong></p>
  
  <p><strong>Note :- Please understand and read question carefully before marking it as duplicate.</strong></p>