From 5f7f10de7b15134d45e16c1e5d57bf09b685bed4 Mon Sep 17 00:00:00 2001 From: Erfan Abdi Date: Thu, 24 Jun 2021 07:19:38 +0430 Subject: [PATCH] lineage: Add double quote in custom APN name check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- tools/custom_apns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: