diff options
author | Erfan Abdi <erfangplus@gmail.com> | 2021-06-24 07:19:38 +0430 |
---|---|---|
committer | Nolen Johnson <johnsonnolen@gmail.com> | 2021-06-24 04:53:35 +0200 |
commit | 5f7f10de7b15134d45e16c1e5d57bf09b685bed4 (patch) | |
tree | 5b9abcb0fdfe15c22528dcbbb5f679a3a8335254 | |
parent | e741d463e9fa1fa578fd991c100b860d75ce63a7 (diff) |
lineage: Add double quote in custom APN name check
* This fixes the case of have having APNs with same the name,
such as:
“Sprint EHRPD”
"Sprint EHRPD ota"
“Sprint EHRPD internet”
* But we want to replace only “Sprint EHRPD”, not all matches.
Change-Id: Ic3139c5d73a8c3c8667ac2bc527abc1a85541361
-rw-r--r-- | tools/custom_apns.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/custom_apns.py b/tools/custom_apns.py index b58ece1b..0de116ee 100644 --- a/tools/custom_apns.py +++ b/tools/custom_apns.py @@ -34,7 +34,7 @@ def main(argv): for line in f: xmltree = parseString(line) carrier = xmltree.getElementsByTagName('apn')[0].getAttribute('carrier') - custom_apn_names.append(carrier) + custom_apn_names.append('"' + carrier + '"') with open(original_file, 'r') as input_file: with open(output_file_path, 'w') as output_file: |