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
This commit is contained in:
Erfan Abdi 2021-06-24 07:19:38 +04:30 committed by Nolen Johnson
parent e741d463e9
commit 5f7f10de7b

View file

@ -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: