Zebra Device Enrollment using the JS barcode

DM
D Malipatil
Daimler AG

Hello team,

I have one article from you as mentioned below:

https://discussions.soti.net/articles/000001443

Can you please provide the JSON code  to use the EnrollmentURL instead of the EnrollmentID ?

"{
"android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME":
"net.soti.mobicontrol.androidwork/net.soti.mobicontrol.admin.DeviceAdminAdapter",
"android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM":
"hn8mSNJMPcovWbnnWrb-uMpWZjNlNp-jyV_2A-Whumc=\n",
"android.app.extra.PROVISIONING_SKIP_ENCRYPTION":"false",
"android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED":true,
"android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE":{
"enrollmentid":""
}
}"

I have replaced the enrollmenturl in place of enrollmentid but that did not work or may that is not a correct way to change the parameters.

9 months ago
SOTI MobiControl
ANSWERS
B
Börge
9 months ago

Hi,

I think you were missing some parameters e.g. "Fully_Managed_Device" and connect to the wifi.

You can simply type in the URL.

For me it is working with this String (Server are on Premise):

{

"android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME":"net.soti.mobicontrol.androidwork/net.soti.mobicontrol.admin.DeviceAdminAdapter",

"android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM":"hn8mSNJMPcovWbnnWrb-uMpWZjNlNp-jyV_2A-Whumc\=",

"android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION":"http://soti.net/apk/ae2",

"android.app.extra.PROVISIONING_WIFI_SSID":"<NameofWIfi>",

"android.app.extra.PROVISIONING_WIFI_SECURITY_TYPE":"WPA",

"android.app.extra.PROVISIONING_WIFI_PASSWORD":"<Wifi_Password>",

"android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED": true,

"android.app.extra.PROVISIONING_SKIP_ENCRYPTION": true,

"android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE": {

"enrollmentId":"https://nameofdeploymentserver.domain.net/Enrollment/123ABC",

"PROVISIONING_MODE":"FULLY_MANAGED_DEVICE"}

}

 

I hope this is helpful.

Best regards

Börge

MB

Hi,

have you also tried the new Function with Release 2024.

To create diretly a QR code for the Enrollment in MobiControl?

MD
Matt Dermody Diamond Contributor
9 months ago

I think you are confusing two different concepts.

This is the JSON structure for a QR based enrollment barcode that is handled through the Google Setup Wizard.

There is separately a Zebra StageNow based enrollment method that now requires JS based barcodes for A13+ based Zebra devices.

They are two separate concepts for achieving the same goal. 

A
ATMOD@SOTI
9 months ago

Hi D Malipatil,


Thanks for posting on SOTI Pulse. I extend my gratitude to Matt Dermody, Marcus Breitenthaler and Börge for your assistance. Your expertise and willingness to help are greatly appreciated. 

Could you please try the following code and please let us know the outcome.

{
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME": 
    "net.soti.mobicontrol.androidwork/net.soti.mobicontrol.admin.DeviceAdminAdapter",
  "android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM": 
    "hn8mSNJMPcovWbnnWrb-uMpWZjNlNp-jyV_2A-Whumc=",
  "android.app.extra.PROVISIONING_SKIP_ENCRYPTION": "false",
  "android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED": true,
  "android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE": {
    "enrollmenturl": "https://your-enrollment-url-here"
  }
}