Get database file in /data/data on rooted device

前端 未结 2 417
时光说笑
时光说笑 2021-01-23 04:01

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

2条回答
  •  离开以前
    2021-01-23 04:41

    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.

提交回复
热议问题