Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1185805 - APN Settings: parse fota apn type from apn database. r=…
Browse files Browse the repository at this point in the history
…evelyn
  • Loading branch information
jaoo authored and rvandermeulen committed Sep 1, 2015
1 parent 8ae6fcb commit 84e4fe9
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 5 deletions.
5 changes: 5 additions & 0 deletions apps/settings/elements/apn_settings.html
Expand Up @@ -32,6 +32,11 @@ <h1 data-l10n-id="apnSettings-header"></h1>
<span data-l10n-id="imsSettings">IMS Settings</span>
</a>
</li>
<li>
<a class="menu-item" data-apn-type="fota" href="#">
<span data-l10n-id="fotaSettings">FOTA Settings</span>
</a>
</li>
<li>
<button class="icon reset-apn danger" data-l10n-id="reset-apn">Reset to Default</button>
</li>
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/js/modules/apn/apn_const.js
Expand Up @@ -4,7 +4,7 @@
define(function(require) {
'use strict';

var APN_TYPES = ['default', 'mms', 'supl', 'dun', 'ims'];
var APN_TYPES = ['default', 'mms', 'supl', 'dun', 'ims', 'fota'];

var CP_APN_KEY = 'ril.data.cp.apns';
var DEFAULT_APN_KEY = 'ril.data.default.apns';
Expand Down
3 changes: 2 additions & 1 deletion apps/settings/js/panels/apn_list/panel.js
Expand Up @@ -16,7 +16,8 @@ define(function(require) {
'mms': 'messageSettings-header',
'ims': 'imsSettings-header2',
'supl': 'suplSettings-header',
'dun': 'dunSettings-header'
'dun': 'dunSettings-header',
'fota': 'fotaSettings-header'
};

var _getDialogService = function() {
Expand Down
7 changes: 7 additions & 0 deletions apps/settings/locales/settings.en-US.properties
Expand Up @@ -408,6 +408,13 @@ imsSettings = IMS Settings
# If you need to adapt your localization to the reduced space available
# in headers, you can use a shorter string here.
imsSettings-header2 = {{imsSettings}}
fotaSettings = FOTA Settings
# LOCALIZATION NOTE (fotaSettings-header): if you leave the original
# en-US value "{{fotaSettings}}" in the following string, the localization
# will be automatically picked from the existing string with ID "fotaSettings".
# If you need to adapt your localization to the reduced space available
# in headers, you can use a shorter string here.
fotaSettings-header = {{fotaSettings}}
apn-editor-header = APN Editor
mmsport = MMS port
mmsproxy = MMS proxy
Expand Down
11 changes: 10 additions & 1 deletion apps/system/js/operator_variant_handler.js
Expand Up @@ -12,7 +12,7 @@
// as during normal run time.
var OPERATOR_VARIANT_FILE = '/shared/resources/apn.json';

var APN_TYPES = ['default', 'mms', 'supl', 'dun', 'ims'];
var APN_TYPES = ['default', 'mms', 'supl', 'dun', 'ims', 'fota'];
var AUTH_TYPES = ['none', 'pap', 'chap', 'papOrChap'];
var DEFAULT_MMS_SIZE_LIMITATION = 300 * 1024;

Expand Down Expand Up @@ -309,6 +309,15 @@
'ril.ims.httpProxyPort': 'port',
'ril.ims.authtype': 'authtype'
},
'fota': {
'ril.fota.carrier': 'carrier',
'ril.fota.apn': 'apn',
'ril.fota.user': 'user',
'ril.fota.passwd': 'password',
'ril.fota.httpProxyHost': 'proxy',
'ril.fota.httpProxyPort': 'port',
'ril.fota.authtype': 'authtype'
},
'operatorvariant': {
'ril.iccInfo.mbdn': 'voicemail',
'ril.sms.strict7BitEncoding.enabled':
Expand Down
4 changes: 2 additions & 2 deletions shared/resources/apn/index.html
Expand Up @@ -44,8 +44,8 @@
<body>
<textarea readonly></textarea>
<form>
<label> MCC: <input name="mcc" value="208"/> </label>
<label> MNC: <input name="mnc" value="15" /> </label>
<label> MCC: <input name="mcc" value="214"/> </label>
<label> MNC: <input name="mnc" value="07" /> </label>
<textarea readonly id="selection"></textarea>
<textarea readonly id="preferences"></textarea>
</form>
Expand Down
9 changes: 9 additions & 0 deletions shared/resources/apn/query.js
Expand Up @@ -262,6 +262,15 @@ document.addEventListener('DOMContentLoaded', function onload() {
'ril.ims.httpProxyPort': 'port',
'ril.ims.authtype': 'authtype'
},
'fota': {
'ril.fota.carrier': 'carrier',
'ril.fota.apn': 'apn',
'ril.fota.user': 'user',
'ril.fota.passwd': 'password',
'ril.fota.httpProxyHost': 'proxy',
'ril.fota.httpProxyPort': 'port',
'ril.fota.authtype': 'authtype'
},
'operatorvariant': {
'ril.iccInfo.mbdn': 'voicemail',
'ril.sms.strict7BitEncoding.enabled': 'enableStrict7BitEncodingForSms',
Expand Down

0 comments on commit 84e4fe9

Please sign in to comment.