-1

I am using Redmi Note 5 Pro as a physical device to connect to the android studio. A night before everything was working fine and I was able to install apps from android studio to my physical device and view Logs with ease but Now apparently it's not working and showing the device as NULL. Please help. I tried the post method but it is not working for me.

PS: The only thing I did was update a system update MIUI 9.5.14.0 in between but I suppose that should not be the reason for this.

OS: Ubuntu 16.04 LTS

Falcon
  • 372
  • 4
  • 20

2 Answers2

8

As pointed out in the post

   ~/Android/Sdk/platform-tools> ./adb devices

Then restart the adb despite it shows device by

   ~/Android/Sdk/platform-tools$> ./adb kill-server

   ~/Android/Sdk/platform-tools$> sudo ./adb devices

This worked for me. Since it showed the device as against the answer in post prior to killing the adb server.

Falcon
  • 372
  • 4
  • 20
0

A more permanent solution instead of restarting the adb service every time you can add a udev rule so that you can always access the device.

See: https://stackoverflow.com/a/51554826/5815054

hb0
  • 3,350
  • 3
  • 30
  • 48