Adb: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 +
=Einstellen des Ports=
 +
*adb tcpip 5555
 
=connect=
 
=connect=
 
*adb connect  10.85.70.2:5555
 
*adb connect  10.85.70.2:5555
 
  connected to 10.85.70.2:5555
 
  connected to 10.85.70.2:5555
 +
 
=devices=
 
=devices=
 
*adb devices
 
*adb devices

Version vom 5. August 2021, 13:24 Uhr

Einstellen des Ports

  • adb tcpip 5555

connect

  • adb connect 10.85.70.2:5555
connected to 10.85.70.2:5555

devices

  • 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
  • netstat -rn
  • uname -a
  • df -h
  • cd /bin
  • ls

befehl ausführen

  • adb shell ls -l storage/sdcard0/Download/
-rw-rw---- root     sdcard_rw  4254181 2016-09-13 15:51 SuperSU-v2.65-20151226141550.zip

adb push

  • adb -s 10.85.70.2:5555 push test.txt /storage/sdcard0/Download

adb pull

  • adb pull /storage/sdcard0/Download/SuperSU-v2.65-20151226141550.zip .

adb reboot recovery

  • adb reboot recovery