Error opening file: /sdcard/screenshot.png (Read-only file system) 问题解决
来源:互联网 发布:可信的淘宝货源 编辑:程序博客网 时间:2024/06/05 05:53
如题;adb命令很强大,但是遇到错误也很无奈,本人想用adb进行截屏的时候遇到如题错误,以下为解决方法:
C:\Users\Administrator>d:
D:\>cd adb
D:\adb>
D:\adb>adb connect 10.169.9.196
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
connected to 10.169.9.196:5555
#先adb root
D:\adb>adb root
adbd is already running as root
#root后会断开链接,再次链接,即可
D:\adb>adb connect 10.169.9.196
already connected to 10.169.9.196:5555
#重挂系统
D:\adb>adb remount
remount succeeded
#下面开始截屏
D:\adb>adb shell /system/bin/screencap -p /screenshot.png
Error opening file: /screenshot.png (Read-only file system)
#为什么会有这个提示?因为对应目录没有权限......,找一个有读写权限的目录如/cache
D:\adb>adb shell /system/bin/screencap -p /cache/screenshot.png
D:\adb>adb pull /cache/screenshot.png D:/adb/screenshot1.png
170 KB/s (965429 bytes in 5.526s)
#pull截屏到D:/adb目录下
D:\adb>
D:\adb>
以上为详细过程,问题解决。
答疑:为什么你的命令前有D:/adb?
因为我没有把adb工具写入环境变量,所以需要进入到指定目录才能使用adb工具,把adb写入环境变量不在这次的讨论中,请自行度娘解决
- Error opening file: /sdcard/screenshot.png (Read-only file system) 问题解决
- 用android虚拟机,向sdcard导入文件时候报错 transfer error: Read-only file system
- Error:/etc/fstab:Read-only file system
- android transfer error: Read-only file system
- Read-only File System
- Read-only file system
- Read-only file system
- Read-only file system
- Read-only file system
- read-only file system
- Read-only file system
- Read-only file system
- Read-only file system
- Read-only file system
- Unable to chmod sdcard: Read-only file system
- android sdcard read-only file system 的解决办法
- Unable to chmod sdcard: Read-only file system
- Unable to chmod sdcard: Read-only file system
- iOS 使用信号量来处理多图片上传
- CSS-如何让img图片元素居中
- 从AtomicXXX稍微说一下Unsafe
- 苹果手机的z-index 无效的问题
- 程序
- Error opening file: /sdcard/screenshot.png (Read-only file system) 问题解决
- linux中内存泄漏的检测(四)记录泄漏的大小
- 那些年我犯过的错
- HDU 6105 Gameia 博弈(思维)
- 2017-8-10 Struts2学习笔记二
- C# winform 右键下拉菜单
- 智能手机检测
- linux中内存泄漏的检测(五)记录内存泄漏的代码
- 哈哈哈