Get database file in /data/data on rooted device

前端 未结 2 418
时光说笑
时光说笑 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.

    0 讨论(0)
  • 2021-01-23 04:58
    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

    0 讨论(0)
提交回复
热议问题