Merge branch 'mr-entgra-142' into 'master'

Access Name Point Settings Policy

See merge request entgra/carbon-device-mgt-plugins!147
revert-dabc3590
Charitha Goonetilleke 5 years ago
commit 58052c273f

@ -49,6 +49,7 @@ var androidOperationModule = function () {
var androidOperationConstants = { var androidOperationConstants = {
"PASSCODE_POLICY_OPERATION_CODE": "PASSCODE_POLICY", "PASSCODE_POLICY_OPERATION_CODE": "PASSCODE_POLICY",
"VPN_OPERATION_CODE": "VPN", "VPN_OPERATION_CODE": "VPN",
"APN_OPERATION_CODE": "APN",
"CAMERA_OPERATION_CODE": "CAMERA", "CAMERA_OPERATION_CODE": "CAMERA",
"BACKUP_SERVICE_CODE": "BACKUP_SERVICE", "BACKUP_SERVICE_CODE": "BACKUP_SERVICE",
"ENCRYPT_STORAGE_OPERATION_CODE": "ENCRYPT_STORAGE", "ENCRYPT_STORAGE_OPERATION_CODE": "ENCRYPT_STORAGE",
@ -67,6 +68,7 @@ var androidOperationModule = function () {
"DISALLOW_CONFIG_MOBILE_NETWORKS": "DISALLOW_CONFIG_MOBILE_NETWORKS", "DISALLOW_CONFIG_MOBILE_NETWORKS": "DISALLOW_CONFIG_MOBILE_NETWORKS",
"DISALLOW_CONFIG_TETHERING": "DISALLOW_CONFIG_TETHERING", "DISALLOW_CONFIG_TETHERING": "DISALLOW_CONFIG_TETHERING",
"DISALLOW_CONFIG_VPN": "DISALLOW_CONFIG_VPN", "DISALLOW_CONFIG_VPN": "DISALLOW_CONFIG_VPN",
"DISALLOW_CONFIG_APN": "DISALLOW_CONFIG_APN",
"DISALLOW_CONFIG_WIFI": "DISALLOW_CONFIG_WIFI", "DISALLOW_CONFIG_WIFI": "DISALLOW_CONFIG_WIFI",
"DISALLOW_APPS_CONTROL": "DISALLOW_APPS_CONTROL", "DISALLOW_APPS_CONTROL": "DISALLOW_APPS_CONTROL",
"DISALLOW_CREATE_WINDOWS": "DISALLOW_CREATE_WINDOWS", "DISALLOW_CREATE_WINDOWS": "DISALLOW_CREATE_WINDOWS",
@ -180,6 +182,30 @@ var androidOperationModule = function () {
"wifiCaCertName": operationPayload["cacertName"] "wifiCaCertName": operationPayload["cacertName"]
}; };
break; break;
case androidOperationConstants["APN_OPERATION_CODE"]:
payload = {
"apnName": operationPayload["name"],
"apnApn": operationPayload["apn"],
"apnProxyAddress": operationPayload["proxyAddress"],
"apnProxyPort": operationPayload["proxyPort"],
"apnUsername": operationPayload["username"],
"apnPassword": operationPayload["password"],
"apnServer": operationPayload["server"],
"apnMMSC": operationPayload["mMSC"],
"apnMMSProxyAddress": operationPayload["mmsProxyAddress"],
"apnMMSProxyPort": operationPayload["mMSProxyPort"],
"apnMCC": operationPayload["mCC"],
"apnMNC": operationPayload["mNC"],
"apnAuthenticationType": operationPayload["authenticationType"],
"apnType": operationPayload["type"],
"apnProtocol": operationPayload["protocol"],
"apnRoamingProtocol": operationPayload["roamingProtocol"],
"apnIsEnable": operationPayload["isEnable"],
"apnBearer": operationPayload["bearer"],
"apnMVNOType": operationPayload["mVNOType"],
"apnMVNOValue": operationPayload["mVNOValue"]
};
break;
case androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"]: case androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"]:
payload = { payload = {
"proxyConfigType": operationPayload["proxyConfigType"], "proxyConfigType": operationPayload["proxyConfigType"],
@ -372,6 +398,7 @@ var androidOperationModule = function () {
"DISALLOW_CONFIG_MOBILE_NETWORKS": operationData["disallowConfigMobileNetworks"], "DISALLOW_CONFIG_MOBILE_NETWORKS": operationData["disallowConfigMobileNetworks"],
"DISALLOW_CONFIG_TETHERING": operationData["disallowConfigTethering"], "DISALLOW_CONFIG_TETHERING": operationData["disallowConfigTethering"],
"DISALLOW_CONFIG_VPN": operationData["disallowConfigVpn"], "DISALLOW_CONFIG_VPN": operationData["disallowConfigVpn"],
"DISALLOW_CONFIG_APN": operationData["disallowConfigApn"],
"DISALLOW_CONFIG_WIFI": operationData["disallowConfigWifi"], "DISALLOW_CONFIG_WIFI": operationData["disallowConfigWifi"],
"DISALLOW_APPS_CONTROL": operationData["disallowAppControl"], "DISALLOW_APPS_CONTROL": operationData["disallowAppControl"],
"DISALLOW_CREATE_WINDOWS": operationData["disallowCreateWindows"], "DISALLOW_CREATE_WINDOWS": operationData["disallowCreateWindows"],
@ -469,6 +496,33 @@ var androidOperationModule = function () {
} }
}; };
break; break;
case androidOperationConstants["APN_OPERATION_CODE"]:
operationType = operationTypeConstants["PROFILE"];
payload = {
"operation": {
"name": operationData["apnName"],
"apn": operationData["apnApn"],
"proxyAddress": operationData["apnProxyAddress"],
"proxyPort": operationData["apnProxyPort"],
"username": operationData["apnUsername"],
"password": operationData["apnPassword"],
"server": operationData["apnServer"],
"mMSC": operationData["apnMMSC"],
"mmsProxyAddress": operationData["apnMMSProxyAddress"],
"mMSProxyPort": operationData["apnMMSProxyPort"],
"mCC": operationData["apnMCC"],
"mNC": operationData["apnMNC"],
"authenticationType": operationData["apnAuthenticationType"],
"type": operationData["apnType"],
"protocol": operationData["apnProtocol"],
"roamingProtocol": operationData["apnRoamingProtocol"],
"isEnable": operationData["apnIsEnable"],
"bearer": operationData["apnBearer"],
"mVNOType": operationData["apnMVNOType"],
"mVNOValue": operationData["apnMVNOValue"]
}
};
break;
case androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"]: case androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"]:
operationType = operationTypeConstants["PROFILE"]; operationType = operationTypeConstants["PROFILE"];
payload = { payload = {
@ -776,6 +830,7 @@ var androidOperationModule = function () {
"CAMERA": "control-camera", "CAMERA": "control-camera",
"BACKUP_SERVICE": "enable-backup", "BACKUP_SERVICE": "enable-backup",
"VPN": "configure-vpn", "VPN": "configure-vpn",
"APN": "configure-apn",
"DEVICE_LOCK": "lock-devices", "DEVICE_LOCK": "lock-devices",
"DEVICE_UNLOCK": "unlock-devices", "DEVICE_UNLOCK": "unlock-devices",
"DEVICE_LOCATION": "location", "DEVICE_LOCATION": "location",
@ -1262,6 +1317,9 @@ var androidOperationModule = function () {
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_VPN"]) { } else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_VPN"]) {
restrictions["disallowConfigVpn"] = restriction["enabled"]; restrictions["disallowConfigVpn"] = restriction["enabled"];
continue; continue;
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_APN"]) {
restrictions["disallowConfigApn"] = restriction["enabled"];
continue;
} else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_WIFI"]) { } else if (featureCode == androidOperationConstants["DISALLOW_CONFIG_WIFI"]) {
restrictions["disallowConfigWifi"] = restriction["enabled"]; restrictions["disallowConfigWifi"] = restriction["enabled"];
continue; continue;
@ -1377,4 +1435,4 @@ var androidOperationModule = function () {
}; };
return publicMethods; return publicMethods;
}(); }();

@ -49,6 +49,8 @@ var androidOperationConstants = {
"GLOBAL_PROXY_OPERATION_CODE": "GLOBAL_PROXY", "GLOBAL_PROXY_OPERATION_CODE": "GLOBAL_PROXY",
"VPN_OPERATION": "vpn", "VPN_OPERATION": "vpn",
"VPN_OPERATION_CODE": "VPN", "VPN_OPERATION_CODE": "VPN",
"APN_OPERATION": "apn",
"APN_OPERATION_CODE": "APN",
"APPLICATION_OPERATION": "app-restriction", "APPLICATION_OPERATION": "app-restriction",
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION", "APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
"KIOSK_APPS_CODE": "KIOSK_APPS", "KIOSK_APPS_CODE": "KIOSK_APPS",
@ -953,6 +955,89 @@ var validatePolicyProfile = function () {
validationStatusArray.push(validationStatus); validationStatusArray.push(validationStatus);
} }
// Validating APN
if ($.inArray(androidOperationConstants["APN_OPERATION_CODE"], configuredOperations) !== -1) {
// if APN is configured
operation = androidOperationConstants["APN_OPERATION"];
// initializing continueToCheckNextInputs to true
continueToCheckNextInputs = true;
var apnName= $("input#apn-name").val();
var apnProxyPort = $("input#apn-proxy-port").val();
var apnMMSProxyPort = $("input#apn-mms-proxy-port").val();
var apnMCC = $("input#apn-mcc").val();
var apnMNC = $("input#apn-mnc").val();
if (!apnName) {
validationStatus = {
"error": true,
"subErrorMsg": "APN name is required.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnProxyPort)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN Proxy port requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
} else if (!inputIsValidAgainstRange(apnProxyPort, 0, 65535)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN Proxy port is not within the range of valid port numbers.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnMMSProxyPort)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MMS proxy port requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
} else if (!inputIsValidAgainstRange(apnMMSProxyPort, 0, 65535)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MMS proxy port is not within the range of valid port numbers.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnMCC)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MCC requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnMNC)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MNC requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
// at-last, if the value of continueToCheckNextInputs is still true
// this means that no error is found
if (continueToCheckNextInputs) {
validationStatus = {
"error": false,
"okFeature": operation
};
}
validationStatusArray.push(validationStatus);
}
// Validating PROXY // Validating PROXY
if ($.inArray(androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"], configuredOperations) !== -1) { if ($.inArray(androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"], configuredOperations) !== -1) {
// if PROXY is configured // if PROXY is configured

@ -75,6 +75,15 @@
<span id="vpn-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span> <span id="vpn-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
<span id="vpn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span> <span id="vpn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
<span id="vpn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span> <span id="vpn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
</a>
<a href="javascript:void(0)" onclick="showAdvanceOperation('apn', this)">
<span class="wr-hidden-operations-icon fw-stack">
<i class="fw fw-apn fw-stack-2x"></i>
</span>
Access Point Name
<span id="apn-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
<span id="apn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
<span id="apn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
</a> </a>
<a href="javascript:void(0)" onclick="showAdvanceOperation('cert', this)"> <a href="javascript:void(0)" onclick="showAdvanceOperation('cert', this)">
<span class="wr-hidden-operations-icon fw-stack"> <span class="wr-hidden-operations-icon fw-stack">
@ -1635,6 +1644,321 @@
</div> </div>
<!-- /VPN --> <!-- /VPN -->
<!-- APN -->
<div class="wr-hidden-operation" data-operation="apn">
<div class="panel panel-default operation-data" data-operation="apn" data-operation-code="APN">
<div id="apn-heading" class="panel-heading" role="tab">
<h2 class="sub-title panel-title">
APN Settings
<label class="wr-input-control switch" data-toggle="collapse" data-target="#apn-body">
<input type="checkbox"/>
<span class="helper"></span>
<span class="text"></span>
</label>
</h2>
<div class="panel-title-description">
Configure the APN settings on Android devices.
This feature only support for the Android 9.0 onwards only.
</div>
</div>
<div id="apn-body" class="panel-collapse panel-body collapse" role="tabpanel"
aria-labelledby="apn-body">
<hr/>
Please note that * sign represents required fields of data.
<br>
<br>
<div id="apn-feature-error-msg" class="alert alert-danger hidden" role="alert">
<i class="icon fw fw-error"></i><span></span>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-name">
Name*
<span class="helper" title="Sets the name of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
Name to set for the APN (This value may be null)
</label>
<input id="apn-name" type="text" class="form-control operationDataKeys" data-key="apnName"
maxlength="100" placeholder="[ Name to set for the APN (This value may be null) ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-apn">
Entry Name
<span class="helper" title="Sets a human-readable name that describes the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Entry Name to set for the APN (This value may be null)
</label>
<input id="apn-apn" type="text" class="form-control operationDataKeys" data-key="apnApn"
maxlength="100" placeholder="[ APN Entry Name to set for the APN (This value may be null) ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-proxy-address">
Proxy Address
<span class="helper" title="Sets the proxy address of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Proxy Address the proxy address to set for the APN
</label>
<input id="apn-proxy-address" type="text" class="form-control operationDataKeys" data-key="apnProxyAddress"
maxlength="100" placeholder="[ 192.168.8.1 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-proxy-port">
Proxy Port
<span class="helper" title="Sets the proxy port of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Proxy port should be between 0 - 65535
</label>
<input id="apn-proxy-port" type="text" class="form-control operationDataKeys" data-key="apnProxyPort"
maxlength="100" placeholder="[ Enter a valid proxy port between 0 - 65535]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-username">
Username
<span class="helper" title="Sets the APN username of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN username to set for the APN (This value may be null)
</label>
<input id="apn-username" type="text" class="form-control operationDataKeys" data-key="apnUsername"
maxlength="100" placeholder="[ APN username to set for the APN (This value may be null)]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-password">
Password
<span class="helper" title="Sets the APN password of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Password should be strong
</label>
<input id="apn-password" type="password" class="form-control operationDataKeys" data-key="apnPassword"
maxlength="100" placeholder="[ Enter a strong password ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-server">
Server
<span class="helper" title="Apn server settings">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
Server should be 1-to-30 characters long
</label>
<input id="apn-server" type="text" class="form-control operationDataKeys" data-key="apnServer"
maxlength="100" placeholder="[ APN server to set for the APN ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mmsc">
MMSC
<span class="helper" title="MMSC Uri to set for the APN (This value may be null)">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMSC Uri to set for the APN This value may be null
</label>
<input id="apn-mmsc" type="text" class="form-control operationDataKeys" data-key="apnMMSC"
maxlength="100" placeholder="[192.168.8.1]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mms-proxy-address">
MMS Proxy Address
<span class="helper" title="Sets the MMS proxy address of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMS Proxy Address to set for the APN This value may be null.
</label>
<input id="apn-mms-proxy-address" type="text" class="form-control operationDataKeys" data-key="apnMMSProxyAddress"
maxlength="100" placeholder="[ 192.168.8.1 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mms-proxy-port">
MMS Proxy Port
<span class="helper" title="MMS Proxy Port to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMS Proxy Port to set for the APN
</label>
<input id="apn-mms-proxy-port" type="text" class="form-control operationDataKeys" data-key="apnMMSProxyPort"
maxlength="100" placeholder="[ MMS Proxy Port sould be between 0 - 65535 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mcc">
MCC
<span class="helper" title="MCC to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MCC to set for the APN
</label>
<input id="apn-mcc" type="text" class="form-control operationDataKeys" data-key="apnMCC"
maxlength="100" placeholder="[ 413 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mnc">
MNC
<span class="helper" title="MNC to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MNC to set for the APN
</label>
<input id="apn-mnc" type="text" class="form-control operationDataKeys" data-key="apnMNC"
maxlength="100" placeholder="[ 02 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-authentication-type">
Authentication Type
<span class="helper"
title="Sets the authentication type of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-authentication-type"
data-key="apnAuthenticationType">
<option value="none" selected>NONE </option>
<option value="pap">PAP</option>
<option value="chap">CHAP </option>
<option value="pap_or_chap">PAP_OR_CHAP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-type">
APN Type
<span class="helper"
title="APN Type">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-type"
data-key="apnType">
<option value="default" selected>DEFAULT</option>
<option value="cbs">CBS</option>
<option value="dun">DUN</option>
<option value="ims">IMS</option>
<option value="mms">MMS</option>
<option value="supl">SUPL</option>
<option value="ia">IA</option>
<option value="hipri">HIPRI</option>
<option value="fota">FOTA</option>
<option value="emergency">EMERGENCY</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-protocol">
APN Protocol*
<span class="helper"
title="Sets the protocol to use to connect to this APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-protocol"
data-key="apnProtocol">
<option value="ipv4v6" selected>IPV4V6</option>
<option value="ip">IP</option>
<option value="ipv6">IPV6</option>
<option value="ppp">PPP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-roaming-protocol">
APN Roaming Protocol*
<span class="helper"
title="Sets the protocol to use to connect to this APN when the device is roaming.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-roaming-protocol"
data-key="apnRoamingProtocol">
<option value="ipv4v6" selected>IPV4V6</option>
<option value="ip">IP</option>
<option value="ipv6">IPV6</option>
<option value="ppp">PPP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-bearer">
Bearer*
<span class="helper"
title="Sets Radio Technology (Network Type) info for this APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-bearer"
data-key="apnBearer">
<option value="unspecified" selected>UNSPECIFIED</option>
<option value="cdma">CDMA</option>
<option value="lte">LTE</option>
<option value="hspap">HSPAP</option>
<option value="hspa">HSPA</option>
<option value="hsupa">HSUPA</option>
<option value="hsdpa">HSDPA</option>
<option value="gprs">GPRS</option>
<option value="edge">EDGE</option>
<option value="ehrpd">EHRPD</option>
<option value="evdo_a">EVDO_A</option>
<option value="evdo_b">EVDO_B</option>
<option value="evdo_0">EVDO_0</option>
<option value="1xrtt">1xRTT</option>
<option value="iwlan">IWLAN</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label checkbox" for="apn-is-enable">
APN Enable/Disable
<br>
<input id="apn-is-enable" type="checkbox"
class="operationDataKeys" data-key="apnIsEnable" checked/>
<span class="helper"
title="Apn enable disable settings">
Enable/Disable
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mvno-type">
Mobile Virtual Network Operator Type
<span class="helper"
title="Mobile Virtual Network Operator Type">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-mvno-type"
data-key="apnMVNOType">
<option value="gid" selected>GID</option>
<option value="spn">SPN</option>
<option value="iccid">ICCID</option>
<option value="imsi">IMSI</option>
</select>
</div>
</div>
</div>
</div>
<!-- APN -->
<!--cert--> <!--cert-->
<div class="wr-hidden-operation" data-operation="cert"> <div class="wr-hidden-operation" data-operation="cert">
<div class="panel panel-default operation-data" data-operation="cert" <div class="panel panel-default operation-data" data-operation="cert"

@ -59,6 +59,17 @@
<span id="wifi-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span> <span id="wifi-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
<span id="wifi-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span> <span id="wifi-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
</a> </a>
<a href="javascript:void(0)" onclick="showAdvanceOperation('apn', this)">
<span class="wr-hidden-operations-icon fw-stack">
<i class="fw fw-apn fw-stack-2x"></i>
</span>
Access Point Name
<span id="apn-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
<span id="apn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
<span id="apn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
</a>
<a href="javascript:void(0)" onclick="showAdvanceOperation('cert', this)"> <a href="javascript:void(0)" onclick="showAdvanceOperation('cert', this)">
<span class="wr-hidden-operations-icon fw-stack"> <span class="wr-hidden-operations-icon fw-stack">
<i class="fw fw-pages fw-stack-2x"></i> <i class="fw fw-pages fw-stack-2x"></i>
@ -1295,6 +1306,318 @@
</div> </div>
<!-- /wi-fi --> <!-- /wi-fi -->
<!-- APN -->
<div class="wr-hidden-operation" data-operation="apn">
<div class="panel panel-default operation-data" data-operation="apn" data-operation-code="APN">
<div id="apn-heading" class="panel-heading" role="tab">
<h2 class="sub-title panel-title">
APN Settings
<label class="wr-input-control switch hidden" data-toggle="collapse" data-target="#apn-body">
<input type="checkbox"/>
<span class="helper"></span>
<span class="text"></span>
</label>
</h2>
<div class="panel-title-description">
Configure the APN settings on Android devices.
This feature only support for the Android 9.0 onwards only.
</div>
</div>
<div id="apn-body" class="panel-collapse panel-body collapse" role="tabpanel"
aria-labelledby="apn-body">
<hr/>
<div id="apn-feature-error-msg" class="alert alert-danger hidden" role="alert">
<i class="icon fw fw-error"></i><span></span>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-name">
APN Name
<span class="helper" title="Sets the name of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
Name to set for the APN (This value may be null)
</label>
<input id="apn-name" type="text" class="form-control operationDataKeys" data-key="apnName"
maxlength="100" placeholder="[ Name to set for the APN (This value may be null) ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-apn">
APN Entry Name
<span class="helper" title="Sets a human-readable name that describes the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Entry Name to set for the APN (This value may be null)
</label>
<input id="apn-apn" type="text" class="form-control operationDataKeys" data-key="apnApn"
maxlength="100" placeholder="[ APN Entry Name to set for the APN (This value may be null) ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-proxy-address">
APN Proxy Address
<span class="helper" title="Sets the proxy address of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Proxy Address the proxy address to set for the APN
</label>
<input id="apn-proxy-address" type="text" class="form-control operationDataKeys" data-key="apnProxyAddress"
maxlength="100" placeholder="[ 192.168.8.1 ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-proxy-port">
APN Proxy Port
<span class="helper" title="Sets the proxy port of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Proxy port should be between 0 - 65535
</label>
<input id="apn-proxy-port" type="text" class="form-control operationDataKeys" data-key="apnProxyPort"
maxlength="100" placeholder="[ Enter a valid proxy port between 0 - 65535]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-username">
APN Username
<span class="helper" title="Sets the APN username of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN username to set for the APN (This value may be null)
</label>
<input id="apn-username" type="text" class="form-control operationDataKeys" data-key="apnUsername"
maxlength="100" placeholder="[ APN username to set for the APN (This value may be null)]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-password">
APN Password
<span class="helper" title="Sets the APN password of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Password should be strong
</label>
<input id="apn-password" type="password" class="form-control operationDataKeys" data-key="apnPassword"
maxlength="100" placeholder="[ Enter a strong password ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-server">
Server
<span class="helper" title="Apn server settings">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
Server should be 1-to-30 characters long
</label>
<input id="apn-server" type="text" class="form-control operationDataKeys" data-key="apnServer"
maxlength="100" placeholder="[ APN server to set for the APN ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mmsc">
MMSC
<span class="helper" title="MMSC Uri to set for the APN (This value may be null)">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMSC Uri to set for the APN This value may be null
</label>
<input id="apn-mmsc" type="text" class="form-control operationDataKeys" data-key="apnMMSC"
maxlength="100" placeholder="[192.168.8.1]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mms-proxy-address">
MMS Proxy Address
<span class="helper" title="Sets the MMS proxy address of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMS Proxy Address to set for the APN This value may be null.
</label>
<input id="apn-mms-proxy-address" type="text" class="form-control operationDataKeys" data-key="apnMMSProxyAddress"
maxlength="100" placeholder="[ 192.168.8.1 ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mms-proxy-port">
MMS Proxy Port
<span class="helper" title="MMS Proxy Port to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMS Proxy Port to set for the APN
</label>
<input id="apn-mms-proxy-port" type="text" class="form-control operationDataKeys" data-key="apnMMSProxyPort"
maxlength="100" placeholder="[ MMS Proxy Port sould be between 0 - 65535 ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mcc">
MCC
<span class="helper" title="MCC to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MCC to set for the APN
</label>
<input id="apn-mcc" type="text" class="form-control operationDataKeys" data-key="apnMCC"
maxlength="100" placeholder="[ MCC to set for the APN ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mnc">
MNC
<span class="helper" title="MNC to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MNC to set for the APN
</label>
<input id="apn-mnc" type="text" class="form-control operationDataKeys" data-key="apnMNC"
maxlength="100" placeholder="[ MCC to set for the APN ]" disabled/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-authentication-type">
Authentication Type
<span class="helper"
title="Sets the authentication type of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-authentication-type"
data-key="apnAuthenticationType" disabled>
<option value="none" selected>NONE </option>
<option value="pap">PAP</option>
<option value="chap">CHAP </option>
<option value="pap_or_chap">PAP_OR_CHAP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-type">
APN Type
<span class="helper"
title="APN Type">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-type"
data-key="apnType" disabled>
<option value="default" selected>DEFAULT</option>
<option value="cbs">CBS</option>
<option value="dun">DUN</option>
<option value="ims">IMS</option>
<option value="mms">MMS</option>
<option value="supl">SUPL</option>
<option value="ia">IA</option>
<option value="hipri">HIPRI</option>
<option value="fota">FOTA</option>
<option value="emergency">EMERGENCY</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-protocol">
APN Protocol
<span class="helper"
title="Sets the protocol to use to connect to this APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-protocol"
data-key="apnProtocol" disabled>
<option value="ipv4v6" selected>IPV4V6</option>
<option value="ip">IP</option>
<option value="ipv6">IPV6</option>
<option value="ppp">PPP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-roaming-protocol">
APN Roaming Protocol
<span class="helper"
title="Sets the protocol to use to connect to this APN when the device is roaming.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-roaming-protocol"
data-key="apnRoamingProtocol" disabled>
<option value="ipv4v6" selected>IPV4V6</option>
<option value="ip">IP</option>
<option value="ipv6">IPV6</option>
<option value="ppp">PPP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-bearer">
APN Bearer
<span class="helper"
title="Sets Radio Technology (Network Type) info for this APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-bearer"
data-key="apnBearer" disabled>
<option value="unspecified" selected>UNSPECIFIED</option>
<option value="cdma">CDMA</option>
<option value="lte">LTE</option>
<option value="hspap">HSPAP</option>
<option value="hspa">HSPA</option>
<option value="hsupa">HSUPA</option>
<option value="hsdpa">HSDPA</option>
<option value="gprs">GPRS</option>
<option value="edge">EDGE</option>
<option value="ehrpd">EHRPD</option>
<option value="evdo_a">EVDO_A</option>
<option value="evdo_b">EVDO_B</option>
<option value="evdo_0">EVDO_0</option>
<option value="1xrtt">1xRTT</option>
<option value="iwlan">IWLAN</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label checkbox" for="apn-is-enable">
APN Enable/Disable
<br>
<input id="apn-is-enable" type="checkbox"
class="operationDataKeys" data-key="apnIsEnable" disabled/>
<span class="helper"
title="Apn enable disable settings">
Enable/Disable
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mvno-type">
Mobile Virtual Network Operator Type
<span class="helper"
title="Mobile Virtual Network Operator Type">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-mvno-type"
data-key="apnMVNOType" disabled>
<option value="gid" selected>GID</option>
<option value="spn">SPN</option>
<option value="iccid">ICCID</option>
<option value="imsi">IMSI</option>
</select>
</div>
</div>
</div>
</div>
<!-- APN -->
<!-- global-proxy --> <!-- global-proxy -->
<div class="wr-hidden-operation" data-operation="global-proxy"> <div class="wr-hidden-operation" data-operation="global-proxy">
<div class="panel panel-default operation-data" data-operation="global-proxy" <div class="panel panel-default operation-data" data-operation="global-proxy"

@ -44,6 +44,8 @@ var androidOperationConstants = {
"ENCRYPT_STORAGE_OPERATION_CODE": "ENCRYPT_STORAGE", "ENCRYPT_STORAGE_OPERATION_CODE": "ENCRYPT_STORAGE",
"WIFI_OPERATION": "wifi", "WIFI_OPERATION": "wifi",
"WIFI_OPERATION_CODE": "WIFI", "WIFI_OPERATION_CODE": "WIFI",
"APN_OPERATION": "apn",
"APN_OPERATION_CODE": "APN",
"GLOBAL_PROXY_OPERATION": "global-proxy", "GLOBAL_PROXY_OPERATION": "global-proxy",
"GLOBAL_PROXY_OPERATION_CODE": "GLOBAL_PROXY", "GLOBAL_PROXY_OPERATION_CODE": "GLOBAL_PROXY",
"VPN_OPERATION": "vpn", "VPN_OPERATION": "vpn",
@ -884,6 +886,89 @@ var validatePolicyProfile = function () {
validationStatusArray.push(validationStatus); validationStatusArray.push(validationStatus);
} }
// Validating APN
if ($.inArray(androidOperationConstants["APN_OPERATION_CODE"], configuredOperations) !== -1) {
// if APN is configured
operation = androidOperationConstants["APN_OPERATION"];
// initializing continueToCheckNextInputs to true
continueToCheckNextInputs = true;
var apnName= $("input#apn-name").val();
var apnProxyPort = $("input#apn-proxy-port").val();
var apnMMSProxyPort = $("input#apn-mms-proxy-port").val();
var apnMCC = $("input#apn-mcc").val();
var apnMNC = $("input#apn-mnc").val();
if (!apnName) {
validationStatus = {
"error": true,
"subErrorMsg": "APN name is required.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnProxyPort)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN Proxy port requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
} else if (!inputIsValidAgainstRange(apnProxyPort, 0, 65535)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN Proxy port is not within the range of valid port numbers.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnMMSProxyPort)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MMS proxy port requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
} else if (!inputIsValidAgainstRange(apnMMSProxyPort, 0, 65535)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MMS proxy port is not within the range of valid port numbers.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnMCC)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MCC requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
if (!$.isNumeric(apnMNC)) {
validationStatus = {
"error": true,
"subErrorMsg": "APN MNC requires a number input.",
"erroneousFeature": operation
};
continueToCheckNextInputs = false;
}
// at-last, if the value of continueToCheckNextInputs is still true
// this means that no error is found
if (continueToCheckNextInputs) {
validationStatus = {
"error": false,
"okFeature": operation
};
}
validationStatusArray.push(validationStatus);
}
// Validating PROXY // Validating PROXY
if ($.inArray(androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"], configuredOperations) !== -1) { if ($.inArray(androidOperationConstants["GLOBAL_PROXY_OPERATION_CODE"], configuredOperations) !== -1) {
// if PROXY is configured // if PROXY is configured

@ -76,6 +76,15 @@
<span id="vpn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span> <span id="vpn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
<span id="vpn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span> <span id="vpn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
</a> </a>
<a href="javascript:void(0)" onclick="showAdvanceOperation('apn', this)">
<span class="wr-hidden-operations-icon fw-stack">
<i class="fw fw-apn fw-stack-2x"></i>
</span>
Access Point Name
<span id="apn-configured" class="has-configured status-icon hidden"><i class="fw fw-success"></i></span>
<span id="apn-ok" class="has-success status-icon hidden"><i class="fw fw-success"></i></span>
<span id="apn-error" class="has-error status-icon hidden"><i class="fw fw-error"></i></span>
</a>
<a href="javascript:void(0)" onclick="showAdvanceOperation('cert', this)"> <a href="javascript:void(0)" onclick="showAdvanceOperation('cert', this)">
<span class="wr-hidden-operations-icon fw-stack"> <span class="wr-hidden-operations-icon fw-stack">
<i class="fw fw-pages fw-stack-2x"></i> <i class="fw fw-pages fw-stack-2x"></i>
@ -1132,6 +1141,324 @@
</div> </div>
<!-- /encrypt-storage --> <!-- /encrypt-storage -->
<!-- APN -->
<div class="wr-hidden-operation" data-operation="apn">
<div class="panel panel-default operation-data" data-operation="apn" data-operation-code="APN">
<div id="apn-heading" class="panel-heading" role="tab">
<h2 class="sub-title panel-title">
APN Settings
<label class="wr-input-control switch" data-toggle="collapse" data-target="#apn-body">
<input type="checkbox"/>
<span class="helper"></span>
<span class="text"></span>
</label>
</h2>
<div class="panel-title-description">
Configure the APN settings on Android devices.
This feature only support for the Android 9.0 onwards only.
And also Agent must be the device owner to activate this policy.
</div>
</div>
<div id="apn-body" class="panel-collapse panel-body collapse" role="tabpanel"
aria-labelledby="apn-body">
<hr/>
Please note that * sign represents required fields of data.
<br>
<br>
<div id="apn-feature-error-msg" class="alert alert-danger hidden" role="alert">
<i class="icon fw fw-error"></i><span></span>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-name">
Name*
<span class="helper" title="Sets the name of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
Name to set for the APN (This value may be null)
</label>
<input id="apn-name" type="text" class="form-control operationDataKeys" data-key="apnName"
maxlength="100" placeholder="[ Name to set for the APN (This value may be null) ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-apn">
Entry Name
<span class="helper" title="Sets a human-readable name that describes the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Entry Name to set for the APN (This value may be null)
</label>
<input id="apn-apn" type="text" class="form-control operationDataKeys" data-key="apnApn"
maxlength="100" placeholder="[ APN Entry Name to set for the APN (This value may be null) ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-proxy-address">
Proxy Address
<span class="helper" title="Sets the proxy address of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Proxy Address the proxy address to set for the APN
</label>
<input id="apn-proxy-address" type="text" class="form-control operationDataKeys" data-key="apnProxyAddress"
placeholder="[ 192.168.8.1 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-proxy-port">
Proxy Port
<span class="helper" title="Sets the proxy port of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Proxy port should be between 0 - 65535
</label>
<input id="apn-proxy-port" type="text" class="form-control operationDataKeys" data-key="apnProxyPort"
placeholder="[ Enter a valid proxy port between 0 - 65535]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-username">
Username
<span class="helper" title="Sets the APN username of the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN username to set for the APN (This value may be null)
</label>
<input id="apn-username" type="text" class="form-control operationDataKeys" data-key="apnUsername"
maxlength="100" placeholder="[ APN username to set for the APN (This value may be null)]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-password">
Password
<span class="helper" title="Sets the APN password of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
APN Password should be strong
</label>
<input id="apn-password" type="password" class="form-control operationDataKeys" data-key="apnPassword"
maxlength="100" placeholder="[ Enter a strong password ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-server">
Server
<span class="helper" title="Apn server settings">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
Server should be 1-to-30 characters long
</label>
<input id="apn-server" type="text" class="form-control operationDataKeys" data-key="apnServer"
maxlength="100" placeholder="[ APN server to set for the APN ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mmsc">
MMSC
<span class="helper" title="MMSC Uri to set for the APN (This value may be null)">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMSC Uri to set for the APN This value may be null
</label>
<input id="apn-mmsc" type="text" class="form-control operationDataKeys" data-key="apnMMSC"
placeholder="[192.168.8.1]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mms-proxy-address">
MMS Proxy Address
<span class="helper" title="Sets the MMS proxy address of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMS Proxy Address to set for the APN This value may be null.
</label>
<input id="apn-mms-proxy-address" type="text" class="form-control operationDataKeys" data-key="apnMMSProxyAddress"
placeholder="[ 192.168.8.1 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mms-proxy-port">
MMS Proxy Port
<span class="helper" title="MMS Proxy Port to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MMS Proxy Port to set for the APN
</label>
<input id="apn-mms-proxy-port" type="text" class="form-control operationDataKeys" data-key="apnMMSProxyPort"
placeholder="[ MMS Proxy Port sould be between 0 - 65535 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mcc">
MCC
<span class="helper" title="MCC to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MCC to set for the APN
</label>
<input id="apn-mcc" type="text" class="form-control operationDataKeys" data-key="apnMCC"
placeholder="[ 413 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mnc">
MNC
<span class="helper" title="MNC to set for the APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<label id="apnValidationText" class="wr-input-label hidden">
MNC to set for the APN
</label>
<input id="apn-mnc" type="text" class="form-control operationDataKeys" data-key="apnMNC"
placeholder="[ 01 ]"/>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-authentication-type">
Authentication Type
<span class="helper"
title="Sets the authentication type of the APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-authentication-type"
data-key="apnAuthenticationType">
<option value="none" selected>NONE </option>
<option value="pap">PAP</option>
<option value="chap">CHAP </option>
<option value="pap_or_chap">PAP_OR_CHAP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-type">
APN Type
<span class="helper"
title="APN Type">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-type"
data-key="apnType">
<option value="default" selected>DEFAULT</option>
<option value="cbs">CBS</option>
<option value="dun">DUN</option>
<option value="ims">IMS</option>
<option value="mms">MMS</option>
<option value="supl">SUPL</option>
<option value="ia">IA</option>
<option value="hipri">HIPRI</option>
<option value="fota">FOTA</option>
<option value="emergency">EMERGENCY</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-protocol">
APN Protocol*
<span class="helper"
title="Sets the protocol to use to connect to this APN.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-protocol"
data-key="apnProtocol">
<option value="ipv4v6" selected>IPV4V6</option>
<option value="ip">IP</option>
<option value="ipv6">IPV6</option>
<option value="ppp">PPP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-roaming-protocol">
APN Roaming Protocol*
<span class="helper"
title="Sets the protocol to use to connect to this APN when the device is roaming.">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-roaming-protocol"
data-key="apnRoamingProtocol">
<option value="ipv4v6" selected>IPV4V6</option>
<option value="ip">IP</option>
<option value="ipv6">IPV6</option>
<option value="ppp">PPP</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-bearer">
Bearer*
<span class="helper"
title="Sets Radio Technology (Network Type) info for this APN">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-bearer"
data-key="apnBearer">
<option value="unspecified" selected>UNSPECIFIED</option>
<option value="lte">LTE</option>
<option value="hspap">HSPAP</option>
<option value="hspa">HSPA</option>
<option value="hsupa">HSUPA</option>
<option value="hsdpa">HSDPA</option>
<option value="umts">UMTS</option>
<option value="edge">EDGE</option>
<option value="gprs">GPRS</option>
<option value="ehrpd">eHRPD</option>
<option value="evdo_a">EVDO_A</option>
<option value="evdo_b">EVDO_B</option>
<option value="evdo_0">EVDO_0</option>
<option value="1xrtt">1xRTT</option>
<option value="gsm">GSM</option>
<option value="iwlan">IWLAN</option>
</select>
</div>
<div class="wr-input-control">
<label class="wr-input-label checkbox" for="apn-is-enable">
APN Enable/Disable
<br>
<input id="apn-is-enable" type="checkbox"
class="operationDataKeys" data-key="apnIsEnable" checked />
<span class="helper"
title="Apn enable disable settings">
Enable/Disable
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
</div>
<div class="wr-input-control">
<label class="wr-input-label" for="apn-mvno-type">
Mobile Virtual Network Operator Type
<span class="helper"
title="Mobile Virtual Network Operator Type">
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span>
</label>
<select class="form-control operationDataKeys" id="apn-mvno-type"
data-key="apnMVNOType">
<option value="gid" selected>GID</option>
<option value="spn">SPN</option>
<option value="iccid">ICCID</option>
<option value="imsi">IMSI</option>
</select>
</div>
</div>
</div>
</div>
<!-- APN -->
<!-- wi-fi --> <!-- wi-fi -->
<div class="wr-hidden-operation" data-operation="wifi"> <div class="wr-hidden-operation" data-operation="wifi">
<div class="panel panel-default operation-data" data-operation="wifi" data-operation-code="WIFI"> <div class="panel panel-default operation-data" data-operation="wifi" data-operation-code="WIFI">
@ -2564,7 +2891,6 @@
</div> </div>
<!-- /VPN --> <!-- /VPN -->
<!--cert--> <!--cert-->
<div class="wr-hidden-operation" data-operation="cert"> <div class="wr-hidden-operation" data-operation="cert">
<div class="panel panel-default operation-data" data-operation="cert" <div class="panel panel-default operation-data" data-operation="cert"

Loading…
Cancel
Save