title: android dumpsys permission denial
body: <p>I have an application where I create a process and call the <code>dumpsys telephony.registry</code> command to get information about the mobile network status.</p>
  
  <pre><code>String[] cmds={"dumpsys telephony.registry"};
  Process p = Runtime.getRuntime().exec(cmds [0]+"\n");
  </code></pre>
  
  <p>and then after that I parse the result of the command. For <code>"ls"</code> or other commands it works fine. For dupmsys I get <code>Permission Denial: can't dump telephony.registry from pid-953, uid=10090</code>. I get the same error results for <code>dumpsys power</code> or other dumpsys commands.</p>
  
  <p>I have set DUMP permissions <code>android.permission.DUMP</code> in the android Manifest like suggested <a href="https://stackoverflow.com/questions/11201659/android-adb-shell-dumpsys-tool">here</a></p>
  
  <p>I think that I am doing this right since Android offers this feature <a href="http://developer.android.com/reference/android/Manifest.permission.html#DUMP" rel="noreferrer">here</a></p>
  
  <p>I have also done the step described <a href="https://stackoverflow.com/questions/13801984/permission-is-only-granted-to-system-app">here</a> to force eclipse to allow me to give my application DUMP permission in the manifest.</p>
  
  <p>When I execute the dumpsys command I always get the same result</p>
  
  <p><code>Permission Denial: can't dump telephony.registry from pid-953, uid=10090</code></p>
  
  <p>Am I doing something wrong? Why does android OS still deny me access to the dump service ?</p>
  
  <p>PS I have set min API 8 and I am testing the application on device running (ICS)
  API 15   </p>