How to check USB api in phone

hi so i need to check if the device has USB API support which used for OTG
i need to check android.hardware.usb.host but i don’t know how could anyone guide me ?

Why don’t you Google for your device’s information? So you can check that your device is compatibel with a OTG adapter.

well i don’t need this for my device i need it for my app so my app can check it for every user then perform its functions otherwise it stops

You can check here to get some idea

hum so i need a custom extension to do that

1 Like

You can add a request here… If someone is interested can make extension for you…