You can set up a Sideload Staging bundle for devices using the Generic OEM Service. This procedure is not supportive of Advanced Staging.

Step 1 - get the enrollment credentials

  1. Create a Staging bundle in the console.
  2. Download the Sideload Staging Package.
  3. Unzip the Sideload Staging Package file, and grab the 'credentials.bin' file inside the enrollment folder. Save this file for later.

Step 2 - Collect the necessary files for the device

  1. Get the latest Agent apk.
  2. Get the OEM Service apk for your device. For more information, see Platform OEM Service Overview.
  3. Get the credentials.bin from Step 1, number 3 above.
  4. Put all of these in a folder on your PC.

Step 3 - create your auto-enroll bat file

  1. Using a text editor, add the following lines (change the filenames and storage locations based on your own configuration).

adb push credentials.bin /sdcard/credentials.bin

adb install OEMService.apk

adb shell am start -a android.intent.action.MAIN -n com.airwatch.admin.awoem.[OEM_NAME]/com.airwatch.admin.awoem.PlatformOEMActivity -e hideui true

*If you are using POEM v3.2 or higher, use this intent instead:

adb shell am start -a com.airwatch.START_AIRWATCH_SERVICE

adb install Agent.apk

adb shell am start -a android.intent.action.MAIN -n com.airwatch.androidagent/com.airwatch.agent.ui.activity.SplashActivity -e hideui true

adb shell am broadcast -a com.airwatch.agent.action.IMPORT_CREDENTIAL_XML -e file /sdcard/credentials.bin --user 0

adb shell am broadcast -a com.airwatch.agent.action.AUTO_ENROLL --user 0

  1. Save the file as autoenroll_OEM.bat in the same directory as the other files.

    *On Mac, it must be a .SH file and run in Terminal.

Step 4 - auto-enroll the device

  1. Connect the device to Wifi.
  2. Connect the device to the PC via an ADB connection.
  3. Run the autoenroll_OEM.bat file.