how to enroll device with qrcode and auto fill enrollmentID

R
rathasatekun Bronze Contributor
Gosoft (Thailand) Co.,Ltd.

how to enroll device with qrcode and auto fill enrollmentID

this my provision 

{​ "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_LOCALE": "", "android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE": {​ "enrollmentId": ""​, "PROVISIONING_MODE":"FULLY_MANAGED_DEVICE" }​ }

14 days ago
Android
ANSWERS
RS
Rafael Schäfer
14 days ago (edited 14 days ago)

How you mean autofill enrollment id? In your code you provide an empty enrollment id:

"enrollmentId": ""

So, ofc, nothing is provided, you need to add the relevant enrollment ID there:

​"enrollmentId": "YOURENROLLMENTID"

Or did i get your question wrong?

 

And btw. You also provide empty locale, i recommend to remove those empty fields to avoid issues or put relevant data in:

"android.app.extra.PROVISIONING_LOCALE": "th-TH"

R
rathasatekun
14 days ago

{​ "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_LOCALE": "th_TH", "android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE": {​ "enrollmentId": "KGUTNQ42"​, "PROVISIONING_MODE":"FULLY_MANAGED_DEVICE" }​ }

 

this full ersion sorry to remove enrollment ID

RS
Rafael Schäfer
13 days ago

ok, please exchange (just for this public post) the nerollment ID with something random, so no one can use it but we know you have it there because i think now you just removed it.

But in that case, you might describe your issue a bit better.
So, even you use this QR, the enrollment ID in the agent stays empty during enrollment?

RS
Rafael Schäfer
13 days ago

btw. i also see an issue in your QR.

remove the \n in the:

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

RC
Raymond Chan
13 days ago (edited 13 days ago)

Rathasatekun,

 

It seems that you know you have to include value of the enrollmentID manually, so "auto fill enrollment" part of your discussion title should not be an issue now.

 

Do you already know how to perform the actual enrollment with QR code generated based on your listed provision parameters?  If so, is there any issue when you test the enrollment flow with your device(s)?

 

K
KJMOD@soti.net
3 hours ago

Hi Rathasatekun,

Thanks for posting on SOTI Pulse, Thanks Rafael and Raymond for responding to the post, your expertise and willingness to help are greatly appreciated!

Kindly let me know if you have any further concerns.

Thank you for choosing SOTI.

Regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net