title: Running native android executable as root?
body: <p>Anybody knows how to to this? 
  This is my code:</p>
  
  <pre><code>try {
              Process p = Runtime.getRuntime().exec("su");
              p.waitFor();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          try {
              Process p = Runtime.getRuntime().exec(
                      "/system/bin/netcfg &gt; /sdcard/netcfg.txt");
              p.waitFor();
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
  }
  </code></pre>
  
  <p>Yes, I know I haven't got any tests to see if user actually accepted the superuser dialog, but this is just a test for myself.</p>