title: Android Integration test application permissions
body: <p>I'm looking a way to get current device's serial number in my integration tests.</p>
  
  <p>Now, when calling</p>
  
  <pre><code>TelephonyManager manager = (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE);
  String deviceId = manager.getDeviceId();
  </code></pre>
  
  <p>in my test method, I get <code>java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10227 nor current process has android.permission.READ_PHONE_STATE.</code></p>
  
  <p>I added <code>&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;</code> in my test project <code>AndroidManifest.xml</code>, but that did not helped.</p>