Fix unauthorized device error in adb
adb devices in bash a device is shown as
- Disconnect USB between PC and device.
- Stop adb server by entering
adb kill-serverin command window.
- On device use Revoke USB debugging authorizations in Developer Options
- On PC delete
adbkeyfile in user directory, eg.
- Reconnect the device to the PC.
- Check the box on the popup on the device.
- Open a bash and enter
Device should be shown as shown in this screenshot