USB data transfer

I am trying to understand how to transfer frames transferred to a computer to an Android phone. Wi-Fi and Bluetooth are not fast enough to provide an even frame rate, but the data transfer speed through the USB connector is more than enough (up to 480 megabytes per second). The fact is that I can’t understand how to do this - there is nothing in the Android docs, and I didn’t find anything on the Internet. How can I access the USB connection?

+4
source share
3 answers

You cannot access the USB connection in any documented and supported manner.

+2
source

Is it even impossible? Are there any hacks that allow? This is not a publishing application, and I don't mind messing around with my own phone.

0
source

Try turning on debugging mode and use adb to connect to the device. You can manually redirect files to your phone (for example, to an SD card), which you can take turns to periodically check in your application. You can also write files in reverse order (from your application), and your PC application checks this file again over ADB. This way you can set up simple protocols for communication.

I also need this right now, but a little more complicated as I try to access the phone from a programmable integrated device with a USB host USB inside. Which probably means reverse engineering ADB ...

In any case, this is a rather hacky solution, but it should work on all phones while debugging is on, which makes it possible.

0
source

Source: https://habr.com/ru/post/1334593/


All Articles