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"
Asked: 2023-05-04 00:38:03 +0000
Seen: 10 times
Last updated: May 04 '23