Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, you can execute multiple ADB commands in a one-line format by separating them with a semicolon (;) or using the double ampersand (&&) operator to execute the second command only if the first command exits without any error.

Example:

adb shell am start -n com.package.name/.ActivityName; adb shell input text "Hello World"

or

adb shell am start -n com.package.name/.ActivityName && adb shell input text "Hello World"