Configure your target device
On your target device:
- Ensure Developer Mode is enabled, then enable USB Debugging using
Settings > Developer options.
- Connect the target to the host through USB. If the connection is successful, running the
adb devicescommand on the host should return the ID of your target and you should be able to run
adb shellwithout issues.
- Install a debuggable application - ensure it is marked as debuggable in the Android application manifest (see more on how to do this in the Android Studio documentation).