简体   繁体   English

ADB 无法识别我的 Redmi Note 设备

[英]ADB is not recognizing my Redmi Note device

ADB is not recognizing my Redmi Note device. ADB 无法识别我的 Redmi Note 设备。 I am using windows 8我正在使用 Windows 8

显示设备的设备管理器

Also when I use below command in CMD, adb devices it is displaying此外,当我在 CMD 中使用以下命令时,它显示的 adb devices

CMD不显示设备

I followed the procedure in below link,我按照以下链接中的程序进行操作,

Using Hardware Devices使用硬件设备

For the Redmi Note ADB drivers, you have to go through this hoop.对于 Redmi Note ADB 驱动程序,您必须通过这个环节。 I am certain it is the same with all MI phones or maybe for all non-Google mfg phones, I am not sure.我确定所有 MI 手机或所有非 Google 制造的手机都一样,我不确定。 First of all if you connect the device with USB cable and USB Debugging off, you will see that Windows 8 loads a generic driver for you to copy on/off files to the phone and SD storage.首先,如果您使用 USB 电缆连接设备并关闭 USB 调试,您将看到 Windows 8 加载了一个通用驱动程序,供您将开/关文件复制到手机和 SD 存储。 This will appear when the USB cable is first plugged in and appears as a device icon under Control Panel, Device Manager, Portable Devices, HM Note(or the device you are working with).这将在首次插入 USB 电缆时出现,并在控制面板、设备管理器、便携式设备、HM Note(或您正在使用的设备)下显示为设备图标。

Go to the phone and switch on USB Debugging in the Developer section of your phone.转到手机并在手机的“开发人员”部分中打开“USB 调试”。 Notice that an additional item appears as an undefined device now in the device manager list, it will have the yellow exclamation mark and it may not have the same name of the phone listed as you saw under Portable Devices.请注意,在设备管理器列表中,现在有一个附加项目显示为未定义的设备,它将带有黄色感叹号,并且可能与您在便携式设备下看到的列出的电话名称不同。 Ignore this item for the moment.暂时忽略此项目。 Now, without doing anything to the phone (it should be already in USB debug mode) go back to the Portable Devices in Device Manager and right-click the HM Note or whatever phone you are working with that is listed there without the exclamation mark (listed under Portable Devices).现在,无需对手机执行任何操作(它应该已经处于 USB 调试模式)返回设备管理器中的便携式设备,然后右键单击 HM Note 或您正在使用的任何手机,其中列出的没有感叹号(列在便携式设备下)。 Right click on the icon under Portable Devices.右键单击便携式设备下的图标。 On that icon select Properties, Details, and under the pull down, select Hardware IDs and copy down what you see.在该图标上选择“属性”、“详细信息”,然后在下拉菜单下选择“硬件 ID”并复制您看到的内容。

For Redmi Note I get:对于 Redmi Note 我得到:

USB\VID_2717&PID_1218&REV_0216&MI_00
USB\VID_2717&PID_1218&MI_00

(Note if you do this out of turn, the HW ID will be different with the phone USB debugging turned off. You want to copy the value that it changes to when the USB debugging is ON) (注意,如果你不按顺序这样做,手机USB调试关闭时HW ID会不同。你想复制USB调试打开时它改变的值)

Now do as the instructions say above, of course customizing the lines you add the the INF file with those relating to your own phone, not the Nexus 10. Here is what to customize;现在按照上面的说明进行操作,当然可以自定义添加 INF 文件的行,这些行与您自己的手机相关,而不是 Nexus 10。以下是自定义内容; when you downloaded the SDK you should have a file structure expanded from the ZIP such as this:当您下载 SDK 时,您应该有一个从 ZIP 扩展的文件结构,例如:

\adt-bundle-windows-x86_64-20140321\sdk\extras\google\usb_driver

Find the file named: android_winusb.inf in the usb_driver folder Make a copy of it and name it anything, such as redmi.inf .在 usb_driver 文件夹中找到名为android_winusb.inf的文件,将其复制并命名为任意名称,例如redmi.inf

Edit the redmi.inf and add the lines as instructed above only modified for your particular phone.编辑redmi.inf并按照上面的说明添加仅针对您的特定手机修改的行。 For example, for the HM Note, I added the following 2 lines as instructed in the 2 locations as instructed.例如,对于HM Note,我按照指示在2个位置中添加了以下2行。

;HM Note
%SingleAdbInterface%        = USB_Install, USB\VID_2717&PID_1218&REV_0216&MI_0
%CompositeAdbInterface%     = USB_Install, USB\VID_2717&PID_1218&MI_00

Now go back up to the unknown device that appeared in Device Manager when you switched on device USB debugging and right click on this item (has yellow exclamation mark), right click on it and then select Update Driver Software, and then Browse My Computer, Let Me Pick, click on the Have Disk button and browse to find the Redmi.inf.现在回到打开设备USB调试时出现在设备管理器中的未知设备并右键单击该项目(有黄色感叹号),右键单击它然后选择更新驱动程序软件,然后浏览我的电脑,让我选择,单击“从磁盘安装”按钮并浏览以找到 Redmi.inf。 Continue to agree to all the prompts warning you it might not be the right driver.继续同意所有警告您它可能不是正确驱动程序的提示。 As the final step, Windows should have identified the device as Android ADB Interface and once that is done, you should be able to go back, open your CMD window and run the command "adb devices" as instructed in this tutorial and now you should see that the phone is now discovered and communicating.作为最后一步,Windows 应该已将设备标识为 Android ADB 接口,完成后,您应该能够返回,打开 CMD 窗口并按照本教程中的说明运行命令“adb devices”,现在您应该看到电话现在已被发现并正在通信。

I found this at ADB No Devices Found我在ADB No Devices Found 上找到了这个

Follow the below step to resolve adb shell not showing device issue.按照以下步骤解决 adb shell 不显示设备问题。

1) Go to About Phone , and tap MIUI version for 7 to 8 times. 1) 进入关于手机,点击MIUI 版本7 到 8 次。 This is to enable developer mode.这是为了启用开发者模式。

2) Got to Additional Settings -> Developer options . 2) 进入其他设置->开发人员选项 Enable USB debugging .启用USB 调试 And set MIDI in Select USB configuration .并在Select USB configuration 中设置MIDI If you need apk installation via adb, then enable Install via USB also.如果您需要通过 adb 安装 apk,那么也启用通过 USB 安装

This solution worked for me :这个解决方案对我有用:

Try Installing the PC Suite that came with Redmi Note and it will install all the necessary drivers for the mobile to work properly with PC Suite ;) .尝试安装 Redmi Note 附带的 PC 套件,它将安装手机所需的所有驱动程序,以便与 PC 套件一起正常工作;)。 And after that check the connection with ADB it works fine.然后检查与亚行的连接它工作正常。

ADB is not recognizing my Redmi Note device. ADB无法识别我的Redmi Note设备。 I am using windows 8我正在使用Windows 8

设备管理器显示设备

Also when I use below command in CMD, adb devices it is displaying另外,当我在CMD中使用以下命令时,它会显示adb设备

CMD不显示设备

I followed the procedure in below link,我按照以下链接中的步骤进行操作,

Using Hardware Devices使用硬件设备

I found a workaround without installing anything.我找到了一个没有安装任何东西的解决方法。 Follow these steps:按着这些次序:

  1. Turn on Developer options.打开开发人员选项。
  2. Open the developer options.打开开发者选项。
  3. Turn on the android debugging.开启安卓调试。
  4. Scroll to bottom of the list.滚动到列表底部。
  5. There will be an option called "Turn on MIUI optimisation" which will be turned on by default, turn it off.将有一个名为“打开 MIUI 优化”的选项,默认情况下将打开,将其关闭。 the device will restart.设备将重新启动。 Voila!瞧! Your adb should be able to detect your mi device now.您的 adb 现在应该能够检测到您的 mi 设备。

PS: I found this solution a year back but now I don't remember where.:) PS:我一年前找到了这个解决方案,但现在我不记得在哪里了。:)

You need to enable the hidden Developer Options on your Redmi Note.您需要在 Redmi Note 上启用隐藏的开发者选项。 To do so:这样做:

  1. On your Redmi phone, find and launch the Settings app.在您的 Redmi 手机上,找到并启动“设置”应用。
  2. Tap General settings.点按常规设置。
  3. Tap About phone.点按关于手机。
  4. Tap "MIUI version" for 7 times.点击“MIUI 版本”7 次。 Once you reached the 7th times, you'll see the “You are now a developer” message appears on screen.到达第 7 次后,您会在屏幕上看到“您现在是开发人员”消息。 You are now a developer.您现在是一名开发人员。
  5. Once turned on, you can tap Developer options on the General Settings screen to access a list of options which deemed to be mainly useful to the developers.打开后,您可以在“常规设置”屏幕上点击“开发人员选项”以访问被认为主要对开发人员有用的选项列表。

Lastly, you can do a factory reset to hide the Developer options.最后,您可以恢复出厂设置以隐藏开发人员选项。

After the above steps, go to command prompt and run adb devices command.完成上述步骤后,转到命令提示符并运行 adb devices 命令。 It should fetch the device id for connected redmi note phone.它应该为连接的红米手机获取设备 ID。

If it doesn't work out by trying out solutions mentioned by others, then on top of that Try installing and running MI PC-SUITE from official Mi website HERE .如果通过尝试其他人提到的解决方案不起作用,那么最重要的是尝试从官方 Mi 网站HERE安装和运行MI PC-SUITE Then try debugging again and you will see your device name in the list of available devices/options to run the app.然后再次尝试调试,您​​将在运行应用程序的可用设备/选项列表中看到您的设备名称。

revoke all USB-debugging options and reenable it again in MI phones.撤销所有 USB 调试选项并在 MI 手机中重新启用它。

Setting -> Developer options -> Revoke all USB-debugging -> Then enable USB debugging设置 -> 开发者选项 -> 撤销所有 USB 调试 -> 然后启用 USB 调试

Disable MIUI optimizations禁用 MIUI 优化

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM