title: A terminal command for a rooted Android to remount /System as read/write
body: <p>I'm writing an android app that needs to copy a file to the "/system" partition at runtime. I've got the commands to run "su" and can successfully request SuperUser permissions and run commands as root. But I don't know how to make this app universal across multiple devices, because the mount command can differ depending on where the /system is actually mounted. Here's the command that's used most offen:</p>
  
  <pre><code>mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
  </code></pre>
  
  <p>But I know that mtdblock3 could be different on some devices (and for that matter, i guess so could yaffs2). So, my question is: Is there a universal command that will work on all phones? Or is there a way to find out at runtime what the correct parameters are?</p>