The DeviceControlAgent provides APIs to control the remote device. Refer Javadoc for complete API list.

The following are the main functionalities provided by this agent:

  • Launch the app to remote device(s)
  • Launch the URL to remote device(s)
  • Remotely dispatch the touch events to the device(s)
  • System power off and reboot of remote device(s)

Permissions required:

The following permissions must be added in the application manifest to use the Device Control APIs:

  • android.permission.sec.MDM_REMOTE_CONTROL
  • android.permission.sec.MDM_APP_MGMT
  • android.permission.sec.MDM_SECURITY

ApplicationLaunchedListener must be registered by session recipients for listening to the application launches, that are launched by the session master’s command. To get the app launch callbacks, you must register this listener using the API method setApplicationLaunchedListener(DeviceControlAgent.ApplicationLaunchedListener listener).