How to enable mobile data on Android device

Hi. I’m a new user enrolling 40 android devices into MobiControl using an Android Enterprise enrolment policy. 

Everything was going well until I realised that mobile data is switched off on all devices and I can’t find any way in the MDM of switching it on. I can turn on/off WiFi, Bluetooth and pretty much anything else - but not mobile data. Which I would have thought is a pretty basic setting. 

I enroll the devices using a QR code link to a Work Managed provisioning profile, starting with a factory-reset device.

Hope someone can help. 

Thanks

James

2 years ago
SOTI MobiControl
ANSWERS
ZC
Zafer Cigdem
2 years ago

Hi James,

For new devices that you will enroll via QR Code, you can add "mobile data true" on your QR code to use devices via mobile data, example below:

.....

....

"android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE":{ "enrollmentId":"Enrollment FQDN or Enrollment ID here", "PROVISIONING_MODE":"FULLY_MANAGED_DEVICE"},
        "android.app.extra.PROVISIONING_USE_MOBILE_DATA":true

For devices that is on MC, you may use below script to enable mobile data:

setmobiledata 1
setradioenable phone 1
 
I hope it helps. Thank you
Zafer
JK
James Knight
2 years ago

Thank you, Zafer

The first script gave a log response of "Script command is not supported by device (setmobiledata)"

The second was accepted but didn't appear to do anything.

The device is a Ulefone Armor X7 Pro

ZC
Zafer Cigdem
2 years ago

Hi James,

If setmobiledata does not work, for a test purpose you can factory reset a test device and enroll it by using a QR enrollment by adding a Provisioning_use_mobile_data true as mentioned above, and then test out again whether setmobiledata 1 (to enable), setmobiledata 0 (disable) works or not. I'm not sure but either the device does not support the script, or there is a conflict with DPC as your QR code did not have mobile_data value earlier. That's why this test may be helpful. 

Other than that, AFAIK there is some "writesecuresetting" scripts regarding the mobile data disable/enable, you can contact SOTI Support to request this, and when you have it you can send this script as legacy to your devices on Mobicontrol webconsole and monitor whether it can enable the mobile data. I hope it helps. Thanks

Zafer

JK
James Knight
2 years ago

Thanks Zafer. All my most recent deployments have the provisioning_use_mobile_data true in the provisioning profile but it made no difference. In the end, I just turned each device on manually (I hope).

Soti have subsequently confirmed that it isn't possible to control mobile data using the MDM.

Thanks for your help, and have a great weekend.

James

ZC
Zafer Cigdem
2 years ago

Hi James,
Thanks for the update, it's strange to me, as we can use GSM to enroll devices via this method without any Wifi. if you don't have any specific APN setting or such that you should set (manually) to get connected to internet you should directly enroll your device via GSM by using QR code well. If there is any specific restriction based on the device or OS version etc. that I'm not aware of, it makes sense.

Just curiosity, did you delete WiFi information on your QR code, if not, you may delete wifi information from your QR code any may try again for a quick test. And when you scan the QR code what do you see, is there any error. If your GSM connectivity can not access the file folder that is specified in "PACKAGE_DOWNLOAD_LOCATION" you can put the file on any network path that your devices can access and download it there as well. I hope it helps. Here is a example QR template, that you can find similar on SOTI Pulse below (If you use lower version of Android Enterprise agent on "DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION" section or different time zone, it's okay):


{
    "android.app.extra.PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM":"hn8mSNJMPcovWbnnWrb-uMpWZjNlNp-jyV_2A-Whumc=",
    "android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME":"net.soti.mobicontrol.androidwork/net.soti.mobicontrol.admin.DeviceAdminAdapter",
    "android.app.extra.PROVISIONING_WIFI_SECURITY_TYPE":"NONE",
    "android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION":"https://downloads.soti.net/apk/AEAgent/GoogleMobiControl1542_1025.apk",
    "android.app.extra.PROVISIONING_SKIP_ENCRYPTION":true,
    "android.app.extra.PROVISIONING_LOCALE":"en_GB",
    "android.app.extra.PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLED":true,
    "android.app.extra.PROVISIONING_TIME_ZONE":"Europe/London",
    "android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE":{ "enrollmentId":"https://your_enrollment_FQDN or ID here", "PROVISIONING_MODE":"FULLY_MANAGED_DEVICE"},
    "android.app.extra.PROVISIONING_USE_MOBILE_DATA":true
}


Zafer

JK
James Knight
2 years ago

Thanks Zafer

The majority of these devices run on IOT data-only SIMs which require an APN - so enrolling them without WiFi isn't an option. We have to enroll them on WiFi and then get MobiControl to confgure the APN using the configuation policy. It does this perfectly, but mobile data has to be enabled manually on each device.

Thanks!

James

G
GPMOD@SOTI
2 years ago

Hi James, 

Thanks for posting on SOTI Pulse and thanks Zafer for responding to the post.

Would you like to use a Feature control profile for the device with Data Roaming enabled and test it? 

Furthermore, I can't see this device model as a certified device in my system. So, it might not work as expected as a certified device.  

Please find attached a screenshot for your reference. 

If that resolves your query, please mark this conversation as a solution. 

Thank you. 

Kind regards,

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

JK
James Knight
2 years ago

Thanks for your message. But data roaming is not the issue (and this is already enabled through the feature control profile). The issue is that mobile data seems to be disabled on these devices by default (from a factory reset) and there is no way in MobiControl to turn on mobile data.

You can enable/disable WiFi and Bluetooth, but not mobile data.

Thanks for trying.

James

G
GPMOD@SOTI
2 years ago

Hi James, 

Thank you for your quick response. 

I would request you open up a support case from here, and someone from the support team can help you to troubleshoot this issue further. If it is still unavailable, he/she can help to open up a feature request which might be implemented in future releases of MobiControl. 

Thank you. 

Kind regards,

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