Android Debug Bridge (ADB) is a command-line tool that lets you communicate with a device which can be either an Emulator or Real Android device.
If you want to launch an app without actual manually launching the app, then we can use an ADB command to do that.
Precondition:1. Debugging mode should be turned ON in the device.2. ADB tool should be configured in the desktop.3. Mobile drivers should be installed after connecting the real device.( Not Applicable for Emulator)4. Package name and Activity name should be noticed.
Firstly check if the device is connected successfully or not.
Then launch the shell from the command prompt using adb shell command
Then provide the below command from the command prompt with the package name and activity name.
adb shellam start -n com.package.name/com.package.name.ActivityName
This adb command will be launching the app using the package name and activity name. This particular command is largely helpful usually while automating the maintenance activities during mobile automation.