When running adb devices in bash a device is shown as unauthorized

  1. Disconnect USB between PC and device.
  2. Stop adb server by entering adb kill-server in command window.
  3. On device use Revoke USB debugging authorizations in Developer Options
  4. On PC delete adbkey file in user directory, eg. .android
  5. Reconnect the device to the PC.
  6. Check the box on the popup on the device.
  7. Open a bash and enter adb devices

Device should be shown as shown in this screenshot