天天看点

未经授权的ADB Android设备

本文翻译自:ADB Android Device Unauthorized

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can't debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2).

由于我重新安装了Eclipse(仅删除并再次下载了它),因此无法在Samsung Galaxy i9001(使用CyanogenMod-Android 4.4.2)上调试应用程序。

It worked fine before reinstallation.

重新安装之前,它工作正常。

Unplug/plug, Uncheck/check "Debug Enabled", adb kill-server/adb start-server, restart phone/computer doesn't work for me.

拔出/插入,取消选中/选中“调试已启用”,adb kill-server / adb启动服务器,重启电话/计算机对我不起作用。

On the device authorize dialog never appears (but I remember that dialog appeared before reinstallation).

在设备上,授权对话框永远不会出现(但我记得该对话框是在重新安装之前出现的)。

I have no idea how to force this authorize dialog to display.

我不知道如何强制显示此授权对话框。

There is no abd_key.pub file in .android directory.

.android目录中没有abd_key.pub文件。

When i try read cpu info DDMS says:

当我尝试读取CPU信息时,DDMS会说:
[2014-04-15 12:47:06 - DDMS] device unauthorized. Please check the confirmation dialog on your device.
           

Any ideas?

有任何想法吗?

Is it possible to generate keys manually without confirmation dialog?

是否可以在没有确认对话框的情况下手动生成密钥?

USB Connection

USB连接
未经授权的ADB Android设备

Wireless Connection

无线连接
未经授权的ADB Android设备

#1楼

参考:https://stackoom.com/question/1YqUR/未经授权的ADB-Android设备

#2楼

Check if you have kies installed.

检查是否安装了凯斯。

That is one possible solution

那是一种可能的解决方案

#3楼

As the message have stated, you need to allow the adb access on your phone. 如消息所述,您需要允许手机上的adb访问。

You need to first connect the phone to your PC with USB cables, then the authorization message will pop out on the screen.

您需要先使用USB电缆将手机连接到PC,然后授权消息将在屏幕上弹出。

Tick remember your choice, then allow it.

勾选记住您的选择,然后允许它。

IF your device doesnt shows any messages when connected to the PC.Just do this.

如果您的设备连接到PC时未显示任何消息,请执行此操作。
Remove /data/misc/adb/adb_key, reboot your phone and try connect again. 删除/ data / misc / adb / adb_key,重新启动手机,然后尝试重新连接。 The message should come up. 该消息应该出现。

#4楼

Ohhh finally I figured it out!

哦,终于我明白了!

After removing Eclipse directory I installed it into another directory.

删除Eclipse目录后,我将其安装到另一个目录中。
echo %ANDROID_SDK_HOME%
           

has displayed wrong path to sdk directory.

显示了错误的sdk目录路径。
  1. set ANDROID_SDK_HOME "E:\\adt-bundle-windows-x86_64-20140321\\sdk"

  2. unplug device 拔出设备
  3. adb kill-server

  4. adb start-server

  5. plug device 插头装置

After these steps, I was able to see confirmation dialog with RSA fingerprint on my phone :)

完成这些步骤后,我可以在手机上看到带有RSA指纹的确认对话框:)

#5楼

I run into the same issues with nexus7.

我遇到了与nexus7相同的问题。

Following worked for fixing this.

以下工作已解决此问题。
  1. Open

    Developer

    option in the

    Settings

    menu on your device. 打开设备上“

    Settings

    菜单中的

    Settings

    Developer

    选项。
  2. Switch off

    the button on the upper right of the screen.

    Switch off

    屏幕右上方的按钮。
  3. Delete

    all

    debug permission

    from the list of the menu. 从菜单列表中

    Delete

    所有

    debug permission

  4. Switch on

    the button on the upper right of the screen.

    Switch on

    屏幕右上方的按钮。

now reconnect your device to your PC and everything should be fine.

现在,将您的设备重新连接到PC,一切正常。

Sorry for my poor english and some name of the menus(buttons) can be incorrect in your language because mine is Japanese.

对不起,我的英语不好,因为我的语言是日语,所以某些菜单(按钮)的名称在您的语言中可能不正确。

#6楼

It's likely that the device is no longer authorized on ADB for whatever reason.

无论出于何种原因,都有可能不再在ADB上授权该设备。

1. Check if authorized:

1.检查是否经过授权:
<ANDROID_SDK_HOME>\platform-tools>adb devices
List of devices attached
4df798d76f98cf6d        unauthorized
           

2. Revoke USB Debugging on phone

2.撤销手机上的USB调试

If the device is shown as unauthorized , go to the developer options on the phone and click "Revoke USB debugging authorization" (tested with JellyBean & Samsung GalaxyIII).

如果该设备显示为未授权 ,请转到手机上的开发人员选项,然后单击“撤销USB调试授权” (已通过JellyBean和Samsung GalaxyIII测试)。

3. Restart ADB Server:

3.重新启动ADB服务器:

Then restarted adb server

然后重启adb服务器
adb kill-server
adb start-server
           

4. Reconnect the device

4.重新连接设备

The device will ask if you are agree to connect the computer id.

设备将询问您是否同意连接计算机ID。

You need to confirm it.

您需要确认。

5. Now Check the device

5.现在检查设备

It is now authorized!

现在已授权!
adb devices
<ANDROID_SDK_HOME>\platform-tools>adb devices
List of devices attached
4df798d76f98cf6d        device