[androiddebugbridge] add start intent channel (#12438)
* [androiddebugbridge] add start intent channel Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
This commit is contained in:
@@ -90,6 +90,7 @@ Please note that events could fail if the input method is removed, for example i
|
||||
| url | String | Open url in browser |
|
||||
| media-volume | Dimmer | Set or get media volume level on android device |
|
||||
| media-control | Player | Control media on android device |
|
||||
| start-intent | String | Start application intent. Read bellow section |
|
||||
| start-package | String | Run application by package name. The commands for this Channel are populated dynamically based on the `mediaStateJSONConfig`. |
|
||||
| stop-package | String | Stop application by package name |
|
||||
| stop-current-package | String | Stop current application |
|
||||
@@ -101,6 +102,16 @@ Please note that events could fail if the input method is removed, for example i
|
||||
| wake-lock | Number | Power wake lock value |
|
||||
| screen-state | Switch | Screen power state |
|
||||
|
||||
#### Start Intent
|
||||
|
||||
This channel allows to invoke the 'am start' command, the syntax for it is:
|
||||
<package/activity>||<<arg name>> <arg value>||...
|
||||
|
||||
This is a sample:
|
||||
com.netflix.ninja/.MainActivity||<a>android.intent.action.VIEW||<d>netflix://title/80025384||<f>0x10000020||<es>amzn_deeplink_data 80025384
|
||||
|
||||
Not all the (arguments)[https://developer.android.com/studio/command-line/adb#IntentSpec] are supported. Please open an issue or pull request if you need more.
|
||||
|
||||
#### Available key-event values:
|
||||
|
||||
* KEYCODE_0
|
||||
|
||||
Reference in New Issue
Block a user