Basics of Android OS
Before we dive in to the interesting world of Android automation, let us try to understand some basics of the Android mobile phone.
You need to know below things on your Android phone.
- Android version
- Device Name
- Developer Options
- Debugging mode
To find out the Android version and device name, just go to the settings of your mobile and tap on About device menu item. The About device screen will show you the version of the Android system.
To be able to automate the Android device, you should enable the USB debugging option in Developer options screen. All new Android phones have their Developer options menu item hidden. To view the Developer options, you should tap the Build number in About device screen 7 times as shown in below image.
After that, you can go to settings menu and tap on the Developer options menu item.
On Developer options screen, you should enable Stay awake check box on which ensures that device will not get locked while in debug mode. Also ensure that you check USB debugging option on which allows Appium to interact with mobile.