[英]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.