Launch Android app via ADB using a deep link

·1 min read·paskov
Launch Android app via ADB using a deep link
adb shell am start -W \
  -n / \
  -a android.intent.action.VIEW \
  -c android.intent.category.BROWSABLE \
  -d ""

-W - Blocks activity manager (am) until the launch is finished (or times out) and then prints timing/status info.
-n - Sets the explicit component to launch. Ex: com.mypackage/com.mypackage.MainActivity.
-a - Sets the intent action.
-c - Sets the intent category.
-d - Sets the intent data. Can be anything that the app is configured to handle. Ex: https://mysite.com?action=1