[ADB] Various solutions for devices offline in adb devices

[Download address:]
[Problem description] When
using adb devicesa connected device, it prompts offline
insert image description here
[Cause analysis]
Using the command: adb version, after checking the version, it is found to be 1.0.26 (the version is lower, and many current devices are no longer supported)
insert image description here
[Solution Solution]
Update the version of adb to 1.0.41, which successfully solved the problem (find the latest version of adb installation package on the Internet, download and decompress it in the original path)
insert image description here

insert image description here

Record the detours you have taken:
**Problem 1: **Just started typing adb devices, but the device list is empty
[Solution]

  1. My Computer –> Properties –> Device Manager –> Details –> Hardware ID, record the number after VID, here is 22D9.
    insert image description here

  2. Find the adb_usb.ini file on your computer, open it, add the number 0x22D9 you just found in the file, and save it

  3. Open cmd, enter to adb kill-serverclose the service and then enter adb start-serverto open the service, then adb shellyou can see the device by typing.

adb kill-server
adb start-server
adb shell

**Question 2:** I can see the device, but it prompts devices offline
【Solution】

  1. adb kill-server && adb start-server
  2. adb reconnect offlinerepeatedly
  3. Check the occupation of port 5037, and exclude the renamed adb
  4. Replace the USB cable and USB port
  5. restart cellphone
  6. reinstall the driver
  7. revoke usb authorization and try again
  8. Turn off developer mode and turn it on again
  9. Try switching the adb version
    . It doesn’t work after the above steps, replace adbkey and adbkey.pub

[Summary]
Check the adb version first, make sure it is not a version problem, and then rule out other situations one by one.

Guess you like

Origin blog.csdn.net/Moonlight_16/article/details/125125455