Adb: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
−
=Der Android Debug Bridge=
+
=Android Debug Bridge=
 
*Kommunikation vom PC zum Smartphone über WLAN oder USB
 
*Kommunikation vom PC zum Smartphone über WLAN oder USB
 
*Voraussetzung Smartphone muss im Entwicklermodus laufen.
 
*Voraussetzung Smartphone muss im Entwicklermodus laufen.
Zeile 7: Zeile 7:
 
*Debugging über WLAN muss aktiv sein.
 
*Debugging über WLAN muss aktiv sein.
 
*Problem: wenn man vergisst ihn wieder auszuschalten.
 
*Problem: wenn man vergisst ihn wieder auszuschalten.
 +
 
=Beispiel Android One=
 
=Beispiel Android One=
 
[[Datei:Adb-1.png|300px]]
 
[[Datei:Adb-1.png|300px]]
Zeile 13: Zeile 14:
  
 
=Installation unter Debian/Kali/Ubuntu/=
 
=Installation unter Debian/Kali/Ubuntu/=
 +
==adb==
 
*apt install adb
 
*apt install adb
−
=Einstellen des TCP Modus=
+
==scrcpy==
−
*adb tcpip 5555
+
*sudo apt install ffmpeg libsdl2-2.0-0 adb wget gcc git pkg-config meson ninja-build libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
−
 
+
*git clone https://github.com/Genymobile/scrcpy
−
=connect=
+
*cd scrcpy
−
*adb connect  10.85.70.2:5555
+
*./install_release.sh
−
connected to 10.85.70.2:5555
+
====Quelle====
−
=devices=
+
*https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md
−
*adb devices
 
−
List of devices attached
 
−
10.85.70.2:5555 device
 
−
pjofm7xoae85fafe device
 
−
=interaktiv=
 
−
*adb -s 10.85.70.2:5555 shell
 
−
begonia:/ $
 
−
;Die Befehle gehen interaktiv und auf der Linux Konsole
 
−
=Beispiele=
 
−
*ip a a
 
−
*ip route show  table all | grep default
 
−
*uname -a
 
−
*df -h
 
−
*cd /bin
 
−
*ls
 
−
 
 
−
=befehl ausführen=
 
−
*adb -s 10.85.70.2:5555 shell ls -l /storage/sdcard0/Download/
 
−
=adb pull=
 
−
*adb -s 10.85.70.2:5555 pull  /storage/sdcard0/Download/test.txt
 
−
 
 
−
=adb push=
 
−
*adb -s 10.85.70.2:5555 push  /storage/sdcard0/Download/test.txt
 
  
−
=adb reboot recovery=
+
=Adb Modi=
−
*adb -s 10.85.70.2:5555 reboot recovery
+
*[[adb tcpip]]
 +
*[[adb usb]]

Aktuelle Version vom 15. August 2024, 08:11 Uhr

Android Debug Bridge

  • Kommunikation vom PC zum Smartphone über WLAN oder USB
  • Voraussetzung Smartphone muss im Entwicklermodus laufen.
  • Wie man dort hingelangt ist bei jedem Smartphone ein wenig verschieden
  • Normalerweise geht man über die Buildnummer und drückt mehrmals drauf.
  • USB Debug muss aktiviert
  • Debugging über WLAN muss aktiv sein.
  • Problem: wenn man vergisst ihn wieder auszuschalten.

Beispiel Android One

Adb-1.png Adb-2.png Adb-3.png

Installation unter Debian/Kali/Ubuntu/

adb

  • apt install adb

scrcpy

  • sudo apt install ffmpeg libsdl2-2.0-0 adb wget gcc git pkg-config meson ninja-build libsdl2-dev libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libswresample-dev libusb-1.0-0 libusb-1.0-0-dev
  • git clone https://github.com/Genymobile/scrcpy
  • cd scrcpy
  • ./install_release.sh

Quelle

Adb Modi