I can access to my package in /data/data
folder. But i can\'t cp
command this database file to SDCard. It says : cp: not found
. I do as f
When you are referring a file , you need to give the extension as well!. That's the first part. i.e, It should be cp mydatabase.db /mnt/sdcard
with a .db
. However cp
is not a part of android stock binaries. You need busybox for getting those commands.
If you really want the file to be copied [ Without busybox installed ] .Use this ,
cat mydatabase.db > /mnt/sdcard/mydatabase.db
.
If you want to use cp
, you need to install BusyBox on your device.
cat source_file > dest_file
You can also install busybox, and get the use of cp command, along with a host of others. https://play.google.com/store/apps/details?id=stericson.busybox&hl=en