My device Xiaomi Redmi MI A1 is running stock android, don't mistake it to be running MIUI.
Things I did :
(1) Enabled developer options and enabled USB debugging.
(2) Connected to my PC and downloaded Google's USB drivers for Android Studio as well as OEM USB drivers from Xiaomi.
(3) Installed it and also updated the device drivers from device manager by manually selecting the OEM USB driver file (it was showing no updates available afterwards), but Android Studio was still not recognizing my device.
(4) I also downloaded MI PC suite from their website but now it wasn't recognizing my device, I connected my device in PTP with USB debugging enabled.
I am using Windows 10 ( Version 1703; build 15063.632 )
My device config is AMD A6 processor at 1.8 GHz quadcore with 4GB RAM.
Turn on MiUI optimization
from developer options and restarting the device? I did the same and it worked on my MI deviceadb.exe devices
in the SDK platform-tools folder path to check for connected devices. From there you can restart the adb server, do it as admin by opening the command prompt with admin privileges and thenadb.exe kill-server
andadb.exe start-server
. Be sure your USB cable allows data transfer (check with a different USB cable)