How to get permissions for unit tests to interact with usb on Android?



  • I need to write a test that would create a file on a usb device and check for its existence (for example). But in order to interact with a usb device, you need to obtain interaction rights.

    How can I get permission to interact with usb in my unit tests?



  • The issue was resolved by using UI Automator



Suggested Topics

  • 2
  • 5
  • 2
  • 2
  • 2