Can you send custom command using Android Enterprise?

312 Views Asked by At

I'm here asking another enigmatic question

Do you know if Android Enterprise is able to send custom commands to device?, I mean, commands like take screenshot, push file, etc.

Currently I'm reading this official documentation, but this does not mention something related with custom commands, it just mentions about to reboot, lock and reset password.

I hope someone has solved it, thanks!

2

There are 2 best solutions below

0
On

The Android Management API does not support custom commands such as taking a screenshot - there are the supported commands in the issueCommand docs you linked to, and one can also affect device state by modifying Policy (though that isn't really about sending commands).

If you want to add custom logic during device or profile setup, you can do that by building an app implementing your logic, having it in Play, setting it as REQUIRED_FOR_SETUP in Policy, and setting a SetupAction to launch the app during setup.


An Enterprise Mobility Management (EMM) provider might support some form of "custom" commands with their own Device Policy Controller (DPC) - consult their docs for this.

0
On

Currently, Android Enterprise doesn't have the API to do commands like you’ve mentioned. And, these are the only commands available right now.

  1. Lock the device.
  2. Reset the user's password
  3. Reboot the device