How to enable app autostart through MDM

How to enable app autostart
   Examples tab
   Commands tab
   Editor tab
How to add apps to autostart
   Examples tab
   Commands tab
   Editor tab

How to enable App Autostart

Examples tab

  1. Log in to your Device Hub.
  2. Use the sidebar to navigate to Devices.
  3. In the Devices overview select a specific device or a device group.
  4. Navigate to the Commands tab. Now you're in the main MDM page of your device or device group.
    commands
  5. Click on the plus symbol (+) to open the Command dialog.
  6. Now the New Command window opens.
    NewCommandsMDM2
  7. In the Examples tab select Setup autostart mode.
    enable-autostart-mdm
  8. Select Enable autostart mode in the drop-down menu.
  9. Click Create.

Commands tab

  1. Navigate to the Commands tab in the main MDM page of your device or device group.
  2. Click on Add.
  3. Now the New Command window opens.
    NewCommandsMDM2
  4. In the Commands tab select Change system preference.
    commands-tab-2
  5. Fill in the following values:
    Application package: com.emteria.settings
    Category name: com.emteria.settings_preferences
    Value type: bool
    Preference key name: autostart_enabled
    New value: true
  6. Click Create.

Note: This only works for devices that have emteria.OS based on Android 11.

Editor tab

  1. Navigate to the Commands tab in the main MDM page of your device or device group.
  2. Click on Add.
  3. Now the New Command window opens.
    NewCommandsMDM2
  4. In the Editor tab click on JSON.
    MDM-NCEditor-4
  5. Fill in the following values:
    {
      "command": "changePreference"
      "package": "com.emteria.settings"
      "category": "com.emteria.settings_preferences"
      "key": "autostart_enabled"
      "type": "bool"
      "value": "true"
    }
  6. Click Create.

Note: This only works for devices that have emteria.OS based on Android 11.

How to add apps to Autostart

Examples tab

  1. In the Examples tab select Setup autostart apps.
    add-apps-autostart
  2. Add the apps to the Application list.
    add-apps-autostart-example
  3. Click Create.

Note: What to keep in mind when filling in the Application list:

  1. The values must be separated by a comma and follow the following form: n;package.
  2. With the n value you can set the order in which applications will start (0, 1, 2,...).
    e.g. 0;com.android.contacts,1;com.android.calendar

Commands tab

  1. Navigate to the Commands tab in the main MDM page of your device or device group.
  2. Click on Add.
  3. Now the New Command window opens.
    NewCommandsMDM2
  4. In the Commands tab select Change system preference.
    commands-tab-2
  5. Fill in the following values:
    Application package: com.emteria.settings
    Category name: com.emteria.settings_preferences
    Value type: set
    Preference key name: autostart_apps
    New value: 0;com.example.packagename,1;com.example.secondpackage
  6. Click Create.

Note: What to keep in mind when filling in the New value:

  • First value is the order (0,1,2,3,…) and the second value is the package.

Note: This only works for devices that have emteria.OS based on Android 11.

Editor tab

  1. Navigate to the Commands tab in the main MDM page of your device or device group.
  2. Click on Add.
  3. Now the New Command window opens.
    NewCommandsMDM2
  4. In the Editor tab click on JSON.
    MDM-NCEditor-4
  5. Fill in the following values:
    {
      "command": "changePreference"
      "package": "com.emteria.settings"
      "category": "com.emteria.settings_preferences"
      "key": "autostart_apps"
      "type": "set"
      "value": "0;com.example.packagename,1;com.example.secondpackage"
    }
  6. Click Create.

 

Note: What to keep in mind when filling in the Value:

  • First value is the order (0,1,2,3,…) and the second value is the package,
  • Value and package are separated by a semicolon (;),
  • Pairs of value;packages are separated by a comma (,).

Note: This only works for devices that have emteria.OS based on Android 11.