Android: adb pull command not working/not able to perform

16,418

You should use adb pull /sdcard/PB.

Share:
16,418
roger_that
Author by

roger_that

Java Software Developer

Updated on June 04, 2022

Comments

  • roger_that
    roger_that almost 2 years

    I am trying to copy a complete directory on my device(not rooted) to a directory in my mac say /Users/myUserName/Documents/Copied using the android Pull commands but every time I run the command, it gives me a message saying remote object does not exist.

    I used

    File file = new File(Environment.getExternalStorageDirectory()+"/PB/").getAbsolutePath();

    to get the absolute path of the directory in my device which comes out to be /storage/emulated/0/PB . Now I run the below command

    ./adb pull /storage/emulated/0/PB /Users/myUserName/Documents/Copied/
    

    and I get following response

    remote object '/storage/emulated/0/PB' does not exist
    

    I don't know whats wrong with my approach and why is this not working even if the directory is there in my device.

    Please guide.