ADB Tutorial: How to use ADB

preview_player
Показать описание
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.

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
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*
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*
Рекомендации по теме
Комментарии
Автор

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!

johnnyjimj
Автор

This would be much better as an article than a video.

megodzillaudeadable
Автор

How to connect to my adb enabled android device from anywhere remotely?

Insomniac_Insights
Автор

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.

pronounceword
Автор

good tutorial. some zoom was required to view the commands clearly.

sonicsolitude
Автор

Fantastic my friend. Comprehensive introduction to ADB.

sergioropo
Автор

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.

vladimirmikulic
Автор

thanks for the help, appreciate much.

ryanpadilla
Автор

When we control our Android Mobile using ADB, there will be some shortcuts.. Likewise, is there any shortcuts for the Navigation buttons of Android Mobile?

legendaryunknowntuts
Автор

please tell me the live example of adb forward <local> <remote> command

manishchheda
Автор

Great tutorial

Can get incoming sms using adb command???

rafeequekc
Автор

how did u connect andoid in adb as I am using USB port. I cant see any devices using adb devices command.

Mrnaga
Автор

CMD:
Command "ADB" is either written wrong or couldn't be found...

legitscoper
Автор

How can we uninstall adb commands if we dont want to use that command anymore?

deepakshetter
Автор

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 !!!

AyudateAyudando
Автор

If command at 6:21 doesn't work replace the word 'windows' with 'displays'

mryup
Автор

Can you tell me what programs your are using for the command line window, and the phone screen emulator?

nateb
Автор

Hir sir, thanks for ur tutorial.
wht software do yo use to make this video?

vinaprann
Автор

How to solve this when trying to disable a system app using the ADB command: "permission denial, attempt to change the component state"?

dongliu
Автор

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

bikinadha