Middle
How can you open a deep link on a device via ADB?
sobes.tech AI
Answer from AI
To open a deep link on an Android device via ADB, you can use the command am start with the action and URI specified. For example:
adb shell am start -a android.intent.action.VIEW -d "yourapp://path/to/content"
Where:
-a android.intent.action.VIEW— the action to open the link.-d— data URI, which is the deep link itself.
An example to open the deep link myapp://product/123:
adb shell am start -a android.intent.action.VIEW -d "myapp://product/123"
This will launch the app registered to handle this deep link and open the corresponding screen.