Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

I am sending the runCommand Push message running the following payload: 

{command: "am start -n my.app.id/.MainActivity"}

but it doesn't work. 

How to open a specific activity of my app?

ago by (44.2k points)

1 Answer

0 votes

Most Android shell commands, including the am command, require `shell` privileges. Unfortunately, the MDM app doesn't have these permissions, so in your case the am command will fail.

Headwind MDM doesn't have an option to open a specific package activity. 

To open different activities of your application, use intents (recommended by Android) instead of explicitly specifying the activity names. To send an intent to your app, use the runApp command (more details here).

Here's how to declare an intent: https://qa.h-mdm.com/17252/

ago by (44.2k points)
...