ADB Tutorial: How to use ADB



In this ADB Tutorial we will explore some of the more common ADB commands out there. Those are useful both for manual testing and in test automation scripts. Those ADB commands will be the same whether you are on Windows, Mac, or Linux.

Learn how to use ADB commands in Java + Appium Automation framework:

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 *package id*
Get info about activity in focus: adb shell dumpsys window windows | findstr Focus
Take Log from buffer: adb logcat -d
Clear Log buffer: adb logcat -c
Take Log continuously: adb logcat
Take Screenshot: adb shell screencap /sdcard/Android/screenshot.png
Pull/Copy Files from Android device: adb pull /sdcard/Android/log.txt
Push/Copy Files to Android device: adb push example.txt /sdcard/Android
Open device’s shell: adb shell
Clear application’s data: adb shell pm clear *package id*
Force-Stop application: adb shell am force-stop *package id*
Open application’s activity: adb shell am start -c api.android.intent.LAUNCHER -a api.android.category.MAIN -n *package/activity*
Send Android Keyevent: adb shell input keyevent 3
Send Text: adb shell input text “Artur”
Dumpsys debug utility: adb shell dumpsys | findstr “DUMP OF SERVICE”
Device Properties: adb shell getprop *key*

Nguồn:https://hdwallpaperslovely.com/

Related Posts

Silicon Power Ace A55 1TB SSD Review (with speed tests)

March 2, 2020

March 2, 2020 20

Review of the Silicon Power ACE A55 1TB SSD. Tested on a RYZEN platform. You can purchase this SSD from...

สอนโหลดโปรแกรม Adobe Illustrator CC 2018 ตัวเต็ม เวอร์ชั่นล่าสุด 2.2 GB

May 21, 2020

May 21, 2020 5

►สอนโหลดโปรแกรม Adobe Illustrator CC 2018 ตัวเต็ม ►ลิ้งโหลด : ============================= ►โดเนทได้ที่นี้เลย !! โดเนทขึ้นหน้าจอ บัตรทรู ► ►- โดเนทขึ้นหน้าจอช่องทางที่ 2 โอนวอเลต เบอร์ 098-194-4990...

mysql is not recognized as an internal or external command,operable program or batch file

February 1, 2020

February 1, 2020 21

This video tutorial provides the solution for removing the error “mysql is not recognized as an internal or external command,operable...

Bypass Google Acccount Verification FRP Android 8.0 Oreo || NEW UPDATE SOLUTION

February 9, 2020

February 9, 2020 23

Bypass Google Acccount Verification FRP Android 8.0 Oreo || NEW UPDATE SOLUTION – How To Bypass Google Acccount Verification FRP...

Обзор ADATA Premier Pro SP920 256GB

February 6, 2020

February 6, 2020 5

подробно – мы вконтакте – мы в твиттер – instagram – Nguồn:https://hdwallpaperslovely.com/ Xem Thêm Bài Viết Khác:https://hdwallpaperslovely.com/cong-nghe/

Learn How to Use After Effects CC 2017 Tutorial for Beginners

March 9, 2020

March 9, 2020 35

BIG NEWS!!!!! Our CEO’s new book “Become a Content Brand” is out on Amazon NOW! Check it out here and...

all android mobile adb mode edl mode fastboot mode

February 2, 2020

February 2, 2020 1

দের এখানে একবার দেখে আসুন — flash bd ফ্ল্যাশ বিডি ***************************************************************** Disclaimer ********************* This video is only Research and Education...

How to ADB: An Introduction to ADB Commands and Fastboot

March 16, 2020

March 16, 2020 3

In this video I’m going to cover an introduction to work with adb (android debug bridge) commands and Fastboot Table...

ADB-S / DVB-T/ RASPBERRY PI/ Flight Radar Tracker/ 2014

February 17, 2020

February 17, 2020 28

Receive the ADB-S signal (1090MHz) from the aircraft’s around you with a DVB-T stick.Touchscreen is optional. Range is up to...

Прошивка и восстановление устройства Xiaomi через режим EDL!

March 21, 2020

March 21, 2020 35

Прошивка и восстановление устройства Xiaomi через режим EDL! Mi flash 2018.05.28: Adb: Команды которые использовал в фастбут: Fastboot devices Fastboot...

How To Install TWRP Recovery & Root the Redmi Note 3 Pro

February 20, 2020

February 20, 2020 48

How To Install TWRP Recovery & Root the Redmi Note 3 Pro. unlock bootloader is required see that first click...

Android Studio USB DEBUGING NOT WORKING SOLVED

February 5, 2020

February 5, 2020 25

Step by Step Instructions: Android studio USB DEBUGGING not working. How to fix ADB Interface problems using google USB driver....

Object keys, values, and entries methods

March 7, 2020

March 7, 2020 24

This video covers three Object methods – keys( ), values( ) and entries( ). All three methods will create an...

VIVO ADB MODE LOCK REMOVE TOOL|Y81|Y83|Y83 PRO|V11|FRP UNLOCK|PIN UNLOCK| By RKH Mobile tech

February 17, 2020

February 17, 2020 18

vivo v11 y83 pattern unlock using vivo adb format tool link- 1- turn off the phone 2- reboot in boot...

Adobe MAX 2019 Opening Keynote – Accelerating Your Creativity

March 22, 2020

March 22, 2020 31

Accelerating Your Creativity Creativity is what sets humans apart, and it’s never been more important. But our innate creativity is...

Comments
  • When I type adb logcat and hit enter I don't get anything.
    Also when I type adb logcat > anoop.txt and hit enter then the file anoop.txt is made but contains nothing

  • i have a problem with many Android devices janam xt2 they stuck at the splash screen

    i tried to reboot devices in recovery mode wipe cache data then reboot devices

    still same issue second step factory reset ; still devices stuck at splash screen

    i tried to falsh PDA with manufacture tools

    i used fastboot devices the devices is detected

    the driver is installed as well

    when i start flash program the processe stop and give a errors message

    NB itried with usb cable and cradle

    error: no devices/emulators found
    32a2fd7 fastboot
    "Partition table…"
    "Flash nCPU…"
    Sending 'modem' (48513 KB) OKAY [ 1.685s]
    Writing 'system' FAILED (remote: 'flash writ
    failure')
    fastboot: error: Command failed
    "Flash fail"
    "Please check the USB connector"
    Press a key to continue..

  • i have a problem with many Android devices janam xt2 they stuck at the splash screen

    i tried to reboot devices in recovery mode wipe cache data then reboot devices

    still same issue second step factory reset ; still devices stuck at splash screen

    i tried to falsh PDA with manufacture tools

    i used fastboot devices the devices is detected

    the driver is installed as well

    when i start flash program the processe stop and give a errors message

    NB itried with usb cable and cradle

    error: no devices/emulators found
    32a2fd7 fastboot
    "Partition table…"
    "Flash nCPU…"
    Sending 'modem' (48513 KB) OKAY [ 1.685s]
    Writing 'system' FAILED (remote: 'flash writ
    failure')
    fastboot: error: Command failed
    "Flash fail"
    "Please check the USB connector"
    Press a key to continue..

  • Nice video…

    Hi. I have an issue… Need help !!!

    Have a oneplus one, 64gb, LineageOS 15.1, twrp 3.3.1.0

    Need to make full backup, but no enough free memory. Try to twrp direct to pc(win 10)

    Did adb device, and I see my phone..OK

    But when I try:
    adb backup –twrp

    Did not work. Shows back a error:

    adb unable to connect for backup: device '(null)' not found

    I DO NIT KNOW WHAT TO DO NEXT… 🙁

    need help !!!

  • I like your video very much. It's really great. I'll keep an eye on your channel. I am your fan and I will support you.

  • I will like to ask how do we use `$ adb sync` ? i saw this command but I am not exactly sure about the usage description:

    sync [system|vendor|oem|data|all]
    sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)
    -l: list but don't copy

  • You are a good speaker. But the main problem is we can't able to read what you type. So , make sure in the next video , we can able to read as well .it is hard for the beginners like me , to completely understand the things in the first go itself.

  • I now have (or I had a phone) a Xiaomi Redmi 4x phone that fell into the water and no longer works at all.

    My computer sees him as QDLoader 9008, but I can not bring him to mod Fastboot, or Edl.

    The phone is dead! The screen does not turn on, it does not vibrate … nothing!

    Does anyone know a way to write the ROM on it without working in any way?

    I tried writing the ROM with "Qualcomm_Flash_Image_Loader" or ADB, but it does not work! It must be brought in Fastboot, but I can not !!! Can you help me somehow?
    ( https://forum.xda-developers.com/showpost.php?p=78606812&postcount=617 )

  • Could you possibly film more videos on adb and advanced tips and tricks with Android in general? I would really love to see it. Thank you for this video and happy New Year.

  • hello , i have a question pls , can we remove the password with abd in recovry mode ? to access to the phone or just the files

  • Thanks a lot for this nice tutorial video on ADB commands. Is there any command for 'Long press'. If it will helpful.

  • Very interesting your video. I would like if is it possible to run a file .bat from my computer through the adb (cmd) to my android emulator. Please answer me and explain me how to do it? Thanks and keep doing interesting videos 🙂

  • This is one nifty command, first time seeing it 🙂
    adb shell dumpsys window windows | findstr Focus
    Now I can programatically blow up my phone he-he
    Question: If I already know the package name such as "org.vndnguyen.shortcutmaster" (ShortcutMaster) what's an easy way to list all its activities and determine the main one of that package? Anything with the "pm" command? Thanks in advance.

  • good tutorial but what if you have two devices ? how to target only one ?
    in my case i share internet connection via usb from pc to android and it require ADB "program named gnirehtet", but when i open android emulator on pc "LDplayer" automatically Adb disconnect from android , and i don't know how to target one only

  • What a great introduction to adb! I can't understand why I haven't seen this video before as I navigated over countless threads with all kinds of cobbled up recipes to get full control of your device, when it's all available right from the adb command line!

    Then again, with the amount of scaremongering evident in some of the comments here, I'm not surprised device providers, manufacturers and even enthusiast sites have deemed users just too stupid and have put so much effort to prevent people from gaining true access to their devices.

    Thank you for cutting to the chase and showing us that adb IS android 101. Kudos, subscribed!

  • how do i install a launcher and set it as default (after lockscreen, i get black screen but with top line icons eg. clock , signal, battery. also, i can swipe down from top normally)

  • you did not tell how to capture and save logs after you clear all logs in order to reproduce the issue and save the particular bug for developers

  • Hi Artur,
    I need help with sm-j700f/ds.i tried to flash rom and use adb to push rom but all failed!
    This phone has no OS installed and no backups. I saw the secure download
    enabled in download mode(i think this is the problem). I also tried kies
    and smart switch but they can't recognize this model. Pls help me thanks.

  • Hi! I tried several times didn't work. I deleted home wiz launcher by mistake…wanting the nova launcher. Now my screen is black can you fix this I will pay you pleeeeeezzzzzzzze?

  • Hey, maybe you know the answer to the problem I am having with my Chinese made tablet. When I turn on my wifi for the tablet, software starts downloading and installing on there own. I can't stop it. I connected the tablet to my PC and I see in the Download Provider/preload follder a file named myslave.apk. What is that? I did a search and on a Chinese website I found that it is a card game….? Is that actually what it is? I don't know. Or, is it the root of why mostly games are downloading on their own. Any help is appreciated.

  • Hello Friend. I am from Venezuela, could you help me, I have a blue phone
    Studio 5.0 CE and I do not know how to extract the commands to place them with the ADB, I want to revive the phone and only allows me to place the commands with ADB I want to extract the commands from the rom And I do not know what they are or how to extract them, I already have the official rom Download and I have the ADB program installed on my computer I only need that one Information, thanks

  • hi artur, pls. help me to install my android.hardware.usb.host.xml
    pls. give me a step by step if possible. my unit is grand prime g530h lollipop 5.0.2
    thanks in advance

  • bro i don't understand iam new to this do you have whatsapp so you can guide me through step by step…

Leave a Reply

Your email address will not be published. Required fields are marked *