Comment 7 for bug 1243160

Revision history for this message
Botao (botao-sun) wrote : Re: SD Card directory is unavailable after ADB file transfer.

@Vishal and Tixy, Yes, both ways can walk around this issue:

1. Using "/mnt/sdcard" instead of "/sdcard";
2. Using "/sdcard/" instead of "/sdcard".

However, when I do the same test on my Nexus 7 tablet, I got following output:

$ sudo adb push Wonderful_Tonight.mp3 /sdcard
failed to copy 'Wonderful_Tonight.mp3' to '/sdcard': Is a directory

$ sudo adb push Wonderful_Tonight.mp3 /sdcard/
1158 KB/s (22124380 bytes in 18.654s)
$

So you can see there is an error message to prevent me using "/sdcard" as the destination. But on our Linaro Android image, this mechanism doesn't exist, it shows successful on host PC side regardless using "/sdcard" or "/sdcard/", but then error shows on target side if using the first one.

Should we involve this process to our image? Or just curious that why it's in AOSP but disappeared in Linaro Android?