Reputation: 1404
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 follow:
# cd databases
# ls
webview.db
mydatabase.db
webviewCache.db
# cp mydatabase /mnt/sdcard
but
cp: not found
Does anybody know how to do this? How can I get this file.
Upvotes: 2
Views: 2450
Reputation: 2246
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.
Upvotes: 1
Reputation: 3799
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
Upvotes: 2