title: Access /data folder files in android
body: <p>I have rooted my device and I have install busybox. Now I want to access /data folder files through my application. My application have super user permissions but still I am not able to access file .
  Can any one know how to do this (with or without busybox)?</p>
  
  <p>Please help me. </p>
  
  <p>Code:</p>
  
  <pre><code>if ((new File("/data/bin/su")).exists())
      SU_COMMAND = "/data/bin/su";
  else
      SU_COMMAND = "su";
  
  String command1 = "busybox mount /sdcard \n";
  String command2 = "busybox mount /system \n";
  String command = "busybox cp /data/data/com.my.test.app/databases/ /mnt/sdcard/testapp/ \n";
  Process process = (new ProcessBuilder(as)).start();
  Runtime rt = Runtime.getRuntime();
  java.io.OutputStream outputstream = process.getOutputStream();
  outputstream.write(command1.getBytes());
  outputstream.flush();
  </code></pre>