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

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

The APN is a setting 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 the 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.

Purpose

The purpose of this knowledge article is to provide a guide on how to save an APN from SureMDM on Samsung Knox or signed devices.

Prerequisites

NA

Steps

1. Login to the SureMDM Web Console and click on 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.

!#suremdm

createApnSettings(APN,Username,Password,Server,MMSC,MMS proxy,MMS Port,MCC,MNC,APN type,Name,SetdefaultApn,Authentication Type,APN Protocol,APN Roaming Protocol,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.

The authentication types in the run script are as follows: 

  • 0 for None
  • 1 for PAP
  • 2 for CHAP
  • 3 for PAP or CHAP

The 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 that are not shared on the carrier website, just leave the placeholder blank but keep the comma.

Need more help? Here’s how to get help from our experts. 

CONTACT US 

Was this helpful?
YesNo
Updated on June 2023