I used my new Moto X phone, then I encountered a basic problem. It's running Android 4.4.2. I take a photo and want to send it to my PC. The Gallery app tells me the photo is at /storage/emulated/0/DCIM/Camera/
, but in adb shell
I cannot find it.
shell@ghost:/ $ cd /storage/emulated/0/DCIM/Camera/
/system/bin/sh: cd: /storage/emulated/0/DCIM/Camera: No such file or directory
I find it at /storage/emulated/legacy/DCIM/Camera/
Question 1: Why is the legacy
dir 0
dir?
Then I send it to the phone.
Question 2: Is there a convenient way to use adb pull
when I am in adb shell
?
exit;
➜ ~ adb pull /storage/emulated/legacy/DCIM/Camera/*.*
zsh: no matches found: /storage/emulated/legacy/DCIM/Camera/*.*
➜ ~ adb pull /storage/emulated/legacy/DCIM/Camera/IMG_20140302_105047591_HDR.jpg
5326 KB/s (2746404 bytes in 0.503s)
Question 3: Why can't I use *
in adb pull
?