cellular data on/off script

RJ
Ruwan Jayasanka
South Asian Technologies Pvt Ltd

can we on and off Cellular data via script on Android Enterprise devices ? I heard the API has closed in AE devices.

device model sm-A260G

I have execute following script but didn't work.

writeprivateprofstring DeviceFeature DisableCellularData 1

apply featurecontrol
4 years ago
Android Scripting
ANSWERS
R
Rafael
4 years ago

Following should work:

setmobiledata 1
setradioenable phone 1
RC
Raymond Chan Diamond Contributor
4 years ago

Your Samsung A2 device should be lacking all Samsung KNOX libraries in the device firmware.  Many MDM features and script commands will not be supported as a result.  Exactly what are not supported need to be tested on the actual device.  Unfortunately, I do not have any A2 device to do any test.  Last week, I did tests with latest AE device agent on Samsung A22 5G.  It is the highest Samsung A-series model I have tested so far without any KNOX libraries. I often recommend my customers to avoid buying such devices with KNOX libraries because of the time/effort to find the missing features and possible workaround.