[英]Android and PC Communication over USB: What is a safe directory that I can use ADB push/pull on and access from an Android app?
[英]Android ADB: pull to memory
是否有可能以某种方式将adb pull的输出重定向到文件而不是内存中的某个位置?
特别是我正在编写一个执行的java程序
adb pull /dev/graphics/fb0
并且在同一程序中我想处理结果而不必再次从磁盘读取fb0
文件。
您可以确保将文件写入共享内存。 假设您使用的是Linux系统,只需将文件拉入
/ dev / shm /目录。
有关详细信息,请参阅此帖子。
http://www.howtoforge.com/storing-files-directories-in-memory-with-tmpfs
你可以随时做点什么
adb shell cat /dev/graphics/fb0 | myprogramthatprocessestheresult
只要myprogramthatprocessestheresult
从stdin读取,你就不必保存文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.