我正在尝试从终端(Ubuntu20.04)解压缩android (11)手机中的文件。我需要从我的Ubuntu笔记本电脑上运行一个脚本来解压缩我手机上的文件。
我已经尝试过来自百事箱的这建议。使用这个应用程序,我可以在访问shell后解压缩文件。我是说-
$ adb shell
a60q:/ $ cd /sdcard/
a60q:/sdcard $ unzip data.zip
Archive: data.zip
inflating: Screenshot from 2020-11-30 16-45-46 (7th copy).png
inflating: Screenshot from 2020-11-30 16-45-46 (10th copy).png但是当我尝试使用直接命令时,它会显示一个错误。
$ adb shell unzip /sdcard/data.zip
unzip: couldn't create file Screenshot from 2020-11-30 16-45-46 (7th copy).png: Read-only file system
Archive: /sdcard/data.zip换根手机不是一种选择。我的问题是-
发布于 2021-08-08 14:38:22
为了成功地从终端调用unzip命令,您应该显式地指定提取zip内容的文件夹,例如:
adb shell unzip /sdcard/data.zip -d /sdcard通过调用unzip --help,您也将获得有关其他可用参数的更多信息。
https://stackoverflow.com/questions/68562919
复制相似问题