ADB-Befehle / apk

adb shell – shell starten
adb install – apk-Datei installieren (-r = force install)
adb kill-server – Server stoppen
adb start-server – Server starten
adb devices – Angeschlossene Geräte anzeigen
adb shell screenrecord /sdcard/filename.mp4 – Film von Handy-App machen

Possible solutions if „adb devices“ shows a device as „unauthorized“:

C:\Users\JohnDoo>adb devices
List of devices attached
17310D821D unauthorized

Disconnect USB between PC and device
Stop adb server by entering „adb kill-server“ in command window
On device use „Revoke USB debugging authorizations“ in „Developer Options“
On PC delete „adbkey“ file in user directory, for example "C:\Users\JohnDoo\.android"
Reconnect the device to the PC
Open a command window and enter „adb devices“. Watch the device’s screen for any Authorization message and allow the connection.

The device should now show as „device“:

C:\Users\JohnDoo>adb devices
List of devices attached
17310D821D device

If the above does not help, re-installing adb and or USB drivers may help.

https://support.honeywellaidc.com/s/article/How-to-fix-adb-devices-shows-unauthorized-device


Handy für Entwickler aktivieren:

  • mehrmals für Build-Nummer tippen, bis Entwickler-Status angezeigt wird
  • Zum Einstellungen -> System -> Erweitert -> Entwickleroptionen gegen und USB-Debugging aktivieren

Comments are closed.