简体   繁体   English

adb pull 失败,参数无效

[英]adb pull fails with Invalid argument

Xiaomi Redmi Note 9 Pro with SD inserted sd card.带有 SD 插入式 SD 卡的小米 Redmi Note 9 Pro。

adb pull /sdcard C:\Redmi

fails with失败了

adb: error: failed to create directory 'C:\Redmi\MIUI\debug_log\common\com.xiaomi.finddevice\process-com.xiaomi.finddevice:securitypush\': Invalid argument

I believe it's because a folder with : cannot be created.我相信这是因为无法创建带有:的文件夹。

How to skip the directory to be copied or how to fix the error?如何跳过要复制的目录或如何修复错误?

You can use您可以使用

adb exec-out tar chf - -C /sdcard . > file.tar

and then extract the tar avoiding errors (you can specify what to extract from tar).然后提取 tar 避免错误(您可以指定从 tar 中提取的内容)。

Or use linux or WSL to run adb pull .或者使用linux或 WSL 运行adb pull

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM