Backing Up mmssms.db From /data/ With Root Permissions
<p>I am trying to write an Android application for myself that will simply copy the file located at /data/data/com.android.providers.telephony/databases/mmssms.db to a location on my sdcard, /sdcard/test/mmssms.db</p>

<p>The device is rooted and the application has been granted super user access but the file is never actually copied. The destination directory does exist and the SDK for the application for is 1.5. The following are the commands used to perform the backup.</p>

<pre><code>Runtime.getRuntime().exec("su");

Runtime.getRuntime().exec("mount -o rw,remount -t yaffs2 /data/data/com.android.providers.telephony/databases /data");

Runtime.getRuntime().exec("chmod -R 777 /data/data/com.android.providers.telephony/databases");

Runtime.getRuntime().exec("cp /data/data/com.android.providers.telephony/databases/mmssms.db /sdcard/test/mmssms.db");
</code></pre>

<p>The following permission is used in the Manifest xml:</p>

<pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
</code></pre>

<p>I would just like to know what I can do to be able to copy the that file and the others in the /data/ directory. Thanks for your time.</p>
