title: Mount R/W system in android application to edit Read Only files
body: <p>How can I, within my application, edit a file in the <code>/system/</code> directory?</p>
  <p>Do I have to make the system R/W accessible?</p>
  <p>I ve tried:</p>
  <pre><code>process = Runtime.getRuntime().exec(&quot;su&quot;);
  os = new DataOutputStream(process.getOutputStream());
  os.writeBytes(&quot;mount -o remount,rw /system\n&quot;);
  os.writeBytes(&quot;exit\n&quot;);
  os.flush();
  process.waitFor();
  </code></pre>
  <p>and many other ways, without success.</p>
  <p>If anybody can help me, I'd greatly appreciated it! :)</p>
  <p>Also, if i finally made it, will it worked with all rooted phones? Or is it different with some phones?</p>