That is correct; the HTTP response is 200 telling you that the server responded with some data. The response data is a JSON reply which contains information about the JSON request. You need to contact the owners of the website, or the documentation, to find out why it returned the "Invalid access" status.
The best way to achieve this will be to install a server application on your own device, and have a client-based application on other devices. Then upon connection, detect the devices and connect to them using server-client channel that you will hold in the network.
This is the safest way, and the simplest way, otherwise USB won't allow much of permissions, such as executing any command (write commands are way too strict).
By inspecting the Android sources to find which module is generating the message (if the message is not prefixed with the module name). Once the module is known check if it provides some kind of notification that can be used.
The above code seems to be executed when activating and deactivating the host mode and calls the msm_otg_host_notify function when enabled by build configuration. So it might be useful to inspect this function.
But please understand that I don't have the time and interest to dig into this further (especially because it would also require to get the sources first).
I pointed you to directions that might help to solve the problem. But I'm not going to do the research for you.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Nov-23 4:30