1. Home
  2. SureMDM
  3. How to save APN from SureMDM on Samsung Knox or signed devices?
  1. Home
  2. Android Management
  3. How to save APN from SureMDM on Samsung Knox or signed devices?

How to save APN from SureMDM on Samsung Knox or signed devices?

KB ID: 42G2107423
Views: 704
Updated: September 2022

The APN is the settings on a mobile device to set up a connection to the gateway between the carrier’s cellular network and the public Internet. It is mostly pre-configured after the SIM is inserted. However, in some cases, it needs to be manually updated.

SureMDM, helps the admin configure APN settings of the devices remotely with a run script job. To do this, the first thing you’ll need to do is find the right APN settings for the network you want to use. You’ll be able to find these on the support pages on the carrier website.

Below are the steps to create a run script job in SureMDM. 

1. Login to SureMDM Web Console and Click Jobs.
2. Now, click New Job and select the platform as Android.
3. Select Run Script to create a run script job
4. Enter a Name and add the below-mentioned Command.

createApnSettings(APN,Username,Password,Server,MMSC,MMS proxy,MMS Port,MCC,MNC,APN type,Name,SetdefaultApn,Authentication Type,APN Protocol,APN Roaming Protocal,Bearer)

5. Click Save to complete and save the Run Script job.

The values for Authentication Type, APN Protocol, APN Roaming Protocol, and Bearer can be found below.

Authentication Type in Runscript are as follows:
0 for None
1 for PAP
2 for CHAP
3 for PAP or CHAP

APN Protocol and APN Roaming Protocol are as follows:
IP for IPv4
IPV6 for IPv6
IPV4V6 for IPv4/IPv6

Bearer values for Android Oreo and below are as follows:
Unspecified = 0;
GPRS = 1;
EDGE = 2;
UMTS = 3;
IS95A = 4;
IS95B = 5;
1xRTT = 6;
EVDO_0 = 7;
EVDO_A = 8;
HSDPA = 9;
HSUPA = 10;
HSPA = 11;
EVDO_B = 12;
EHRPD = 13;
LTE = 14;
HSPAP = 15;

Bearer values for Android Pie and above can be found under this Google Developer link:

Note: For unknown values in the above script which are not shared on the carrier website, just leave the placeholder blank,, but keep the comma.  

For more details on our products, click here 

Related Articles