使用hdc file recv命令接收文件失败。
hdc file recv XXXX YYYY # XXXX是远程待发送的文件路径(手机设备中文件的地址) # YYYY是本地待接收的文件路径(本地存放文件的地址)
报错hdc is sending or deleting file now,please wait...
报错hdc is sending or deleting file now,please wait...
等待当前任务完成。如一直不完成,可以使用hdc kill命令结束当前hdc任务并再次尝试操作。
使用hdc file recv命令接收文件失败。
hdc file recv XXXX YYYY # XXXX是远程待发送的文件路径(手机设备中文件的地址) # YYYY是本地待接收的文件路径(本地存放文件的地址)
报错no such file or directory...
D:\soft\img>hdc file recv file://media/Photo/147/IMG_1751371660_141/IMG_141.png [Fail]Error opening file: no such file or directory, path:file://media/Photo/147/IMG_1751371660_141/IMG_141.png
使用mediatool工具来进行文件导出。mediatool工具可以根据媒体文件在图库中的名字,对媒体文件进行导出。方法步骤如下:
$ mediatool query IMG_141.jpg -u find 1 result uri "file://media/Photo/147/IMG_1751371660_141/IMG_141.jpg"
$ mediatool recv file://media/Photo/147/IMG_1751371660_141/IMG_141.jpg /data/local/tmp/out.jpg Table Name: Photos /data/local/tmp/out.jpg
D:\soft\img>hdc file recv /data/local/tmp/out.jpg FileTransfer finish, Size:2159874, File count = 1, time:102ms rate:21175.24kB/s
使用hdc file recv命令接收文件失败。
hdc file recv XXXX YYYY # XXXX是远程待发送的文件路径(手机设备中文件的地址) # YYYY是本地待接收的文件路径(本地存放文件的地址)
使用open函数在沙箱中创建文件,接收文件时报错Error opening file: permission denied...
int fd = open(filePath, O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); write(fd, buf, len);
D:\>hdc file recv /data/app/el2/100/base/com.example.myapplication/files/test.txt [Fail]Error opening file: permission denied, path:/data/app/el2/100/base/com.example.myapplication/files/test.txt
使用hdc file recv命令接收文件失败。
hdc file recv XXXX YYYY # XXXX是远程待发送的文件路径(手机设备中文件的地址) # YYYY是本地待接收的文件路径(本地存放文件的地址)
接收data/log/hilog/时报错Error opening file: no such file or directory。
D:\>hdc file recv data/log/hilog/ ./ [Fail]Error opening file: no such file or directory, path:data/log/hilog/hilog.xxx.xxxxxx.gz