title: Does process executed from android app have the same rights as android app?
body: <p>I have granted access to UsbDevice, got his device name (<code>/dev/bus/usb/002/002</code>) and passed it to executed process to work with USB device (<strong>avrdude</strong> to be more detailed)</p>
  
  <pre><code>Process process = Runtime.getRuntime().exec(commandArray);
  </code></pre>
  
  <p>and get "<strong>permission denied</strong>" error:</p>
  
  <pre><code>W/System.err( 9368): avrdude: ser_open(): can't open device "/dev/bus/usb/002/002": Permission denied
  W/System.err( 9368): ioctl("TIOCMGET"): Invalid argument
  </code></pre>
  
  <p>Avrdude is in the app sandbox (<code>/data/data/%package%</code>) so it does not require rooting just to execute avrdude (sure). I believe if i grant access to UsbDevice android app process and all child processes (avrdude) gets access to according USB device file.</p>
  
  <p>Any thoughts? Rooting is undesired.</p>