BroadcastReceiver for Ethernet (RJ45) and USB on Android TV

How can I detect the plug and disconnect the Ethernet and USB devices (any device like pendrive) on Android TV. Is there a receiver for this as an internet connection?

I need to check out the TVBox app.

Decision:

Got a solution for ETHERNET - can be checked using TYPE_ETHERNET in ConnectivityManager

but still a usb drive

+4
source share

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


All Articles