title: Android 4.1 SuperSU Shell grants no root access
body: <p>I recently upgraded on a Stock Android 4.1 on my transformer tf101. In my app, i need root access my USB camera plugged in to the device. Till now, i have done this by the following code:</p>
  
  <pre><code>        Runtime.getRuntime().exec("su");
          DataOutputStream oOutSream = new DataOutputStream( process.getOutputStream());
          oOutSream.writeBytes( "chmod -R 777 /dev/bus/usb/* \n" );
          oOutSream.flush();
          oOutSream.writeBytes("exit\n");
          oOutSream.flush();
  </code></pre>
  
  <p>I know, chmod 777 is NOT a good idea, but i haven't found any other solution so far. Well, after upgrading to 4.1 this is NOT working anymore. SuperSU prompts a Messagebox informing me that the app has requested root access, but it wont work. the strange thing is.. when i open up the adb shell from the pc, and enter those commands, it works flawlessly. </p>
  
  <p>If i granted su access by the pc, my app works correctly, although random toasts show up informing me "root acces granted" or "root acces denied". Could it be a bug in SuperSU?</p>
  
  <p>Thanks for the help!</p>