HDTutorial
NL

Afspelen laadt de ingesloten YouTube-speler (privacyvriendelijke modus).

ADB-tutorial: zo gebruik je ADB-commando’s

268.635 weergaven 26 oktober 2016 24:24

Bekijken op YouTube
KanaalArtur Spirin

Beschrijving van de maker

In deze ADB-tutorial gaan we enkele van de meest nuttige ADB-commando’s door. Ze zijn handig voor handmatige tests en in automatiseringsscripts. Deze commando’s werken hetzelfde, of je nu Windows, Mac of Linux gebruikt.

Hier is de lijst met ADB-commando’s die we in deze video behandelen:

Geef ADB aan op welk apparaat de opdracht moet worden uitgevoerd: adb -s *apparaat-id*
Installeer een app: adb install *pad-naar-bestand*
Deïnstalleer een app: adb uninstall *pakket-id*
Krijg informatie over de actieve activiteit: adb shell dumpsys window windows | findstr Focus
Haalt logboek uit de buffer: adb logcat -d
Wis het logboekbuffer: adb logcat -c
Haalt logboek continu op: adb logcat
Maak een screenshot: adb shell screencap /sdcard/Android/screenshot.png
Kopieer bestanden van Android-apparaat: adb pull /sdcard/Android/log.txt
Kopieer bestanden naar Android-apparaat: adb push example.txt /sdcard/Android
Open de shell van het apparaat: adb shell
Wis de gegevens van een app: adb shell pm clear *pakket-id*
Forceer het stoppen van een app: adb shell am force-stop *pakket-id*
Start de activiteit van een app: adb shell am start -c android.intent.category.LAUNCHER -a android.intent.action.MAIN -n *pakket/activiteit*
Stuur een Android-toetsaanslag: adb shell input keyevent 3
Typ tekst in: adb shell input text "Artur"
Gebruik de debug-hulpmiddelen van dumpsys: adb shell dumpsys | findstr "DUMP OF SERVICE"
Toon apparaateigenschappen: adb shell getprop *sleutel*

Over deze tutorial

Artur Spirin publiceerde deze videotutorial van 24:24 op 26 oktober 2016. Hij is 268.635 keer bekeken op YouTube.

Duur
24:24
Gepubliceerd
26 oktober 2016
Weergaven
268.635
Likes
1.642

Delen

Verder lezen

  • ADB Commands: A Beginner’s Guide - Android Tutorials android.tutorials.how

    ADB (Android Debugging Bridge) is a very useful program made by Google to help Android Developers and users. It’s based on command-line interface and can communicate with an Android device to respond to certain commands…

  • ADB Tutorial: How to use ADB - Hdwallpaperslovely hdwallpaperslovely.com

    Here is the list of the ADB commands that we covered in this video: Tell ADB which device to execute command on: adb -s *device id* Install application: adb install *path to file* Uninstall application: adb uninstall *p…

  • How to Install and Use ADB, the Android Debug Bridge Utility howtogeek.com

    ADB, Android Debug Bridge, is a command-line utility included with Google’s Android SDK. ADB can control your device over USB from a computer, copy files back and forth, install and uninstall apps, run shell commands, a…

Deze tutorial in andere talen