天天看點

未經授權的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