Adb: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 29: | Zeile 29: | ||
*cd /bin | *cd /bin | ||
*ls | *ls | ||
| − | |||
=befehl ausführen= | =befehl ausführen= | ||
| − | *adb shell ls -l /storage/sdcard0/Download/ | + | *adb -s 10.85.70.2:5555 shell ls -l /storage/sdcard0/Download/ |
| − | |||
=adb push= | =adb push= | ||
| − | *adb -s 10.85.70.2:5555 pull /storage/sdcard0/Download/ | + | *adb -s 10.85.70.2:5555 pull /storage/sdcard0/Download/geheim.txt |
| − | |||
=adb pull= | =adb pull= | ||
| − | *adb | + | *adb -s 10.85.70.2:5555 push /storage/sdcard0/Download/test.txt |
=adb reboot recovery= | =adb reboot recovery= | ||
| − | *adb reboot recovery | + | *adb -s 10.85.70.2:5555 reboot recovery |
Version vom 5. August 2021, 14:04 Uhr
Der Android Debugger
- 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
- Debuging über WLAN muss aktiv sein.
- Problem wenn man vergisst ihn wieder auszuschalten.
Einstellen des TCP Modus
- 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 -s 10.85.70.2:5555 shell ls -l /storage/sdcard0/Download/
adb push
- adb -s 10.85.70.2:5555 pull /storage/sdcard0/Download/geheim.txt
adb pull
- adb -s 10.85.70.2:5555 push /storage/sdcard0/Download/test.txt
adb reboot recovery
- adb -s 10.85.70.2:5555 reboot recovery