To do that run the command: $ adb devices The first command you should learn is the one to list the connected devices, so you can check if your device was correctly recognized by the ADB server. Now connect the device to your computer using a USB cable and you are ready to run ADB commands! List connected devices Find the option USB debugging and enable it. Return to the main screen of the Settings application and go to System -> Advanced -> Developer options. Perform several touches on the Build number until the message “You are now a developer!” appears. To do that, launch the Settings application and navigate to About Phone, or About emulated device if you’re using an AVD. Using ADB makes it possible to copy files to/from the device, and is among the most useful of its features, run shell commands in the Android device □īefore using ADB, we must enable USB debugging in Developer options in the Android device. Table of Contents – Useful ADB Commands For Android TestingĪndroid Debug Bridge, or simply ADB, is a tool included in Android SDK that allows us to send commands from a computer host to an Android device. This saves you time and improves your productivity. This article will show you how you may perform these kinds of actions by a command in a terminal. But if you must manually navigate to the app info screen and press the clear data button before each test, you will reach the end of the day with several valuable minutes, maybe hours, spent doing this repetitive action. This takes less time than fully discharging a battery. The worst scenario would be if you are testing it using an Android Virtual Device (AVD), how would you discharge the battery of an emulator?Īnother required setup with a certain frequency is clearing the application data before launching it. If the battery is full, you’ll need to wait several hours before it is discharged. Suppose you need to test a feature of your app while the device battery is running low. Some scenarios may require a specific setup that takes a long time to perform ⏳ When testing Android applications, manually or automatically, there are several scenarios to validate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |