carriersettings-extractor: Exclude some values from vendor.xml
* This will make it work with the naked config * We can have two different XMLs if needed, where one could include this config * Looked for any 'com.google.android.' or Sprint/Verizon packages and removed those Change-Id: I3d68c995f855c13231946a5796091936479906e9
This commit is contained in:
committed by
Michael Bestas
parent
e1499e0324
commit
b8697e3cb4
@@ -50,6 +50,16 @@ def main():
|
|||||||
apns_folder = args.apns
|
apns_folder = args.apns
|
||||||
vendor_folder = args.vendor
|
vendor_folder = args.vendor
|
||||||
|
|
||||||
|
# Anything where the value is a package name
|
||||||
|
unwanted_configs = ["carrier_app_wake_signal_config",
|
||||||
|
"carrier_settings_activity_component_name_string",
|
||||||
|
"carrier_setup_app_string",
|
||||||
|
"config_ims_package_override_string",
|
||||||
|
"enable_apps_string_array",
|
||||||
|
"gps.nfw_proxy_apps",
|
||||||
|
"smart_forwarding_config_component_name_string",
|
||||||
|
"wfc_emergency_address_carrier_app_string"]
|
||||||
|
|
||||||
carrier_id_list = CarrierIdList()
|
carrier_id_list = CarrierIdList()
|
||||||
carrier_attribute_map = {}
|
carrier_attribute_map = {}
|
||||||
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'carrier_list.pb'), 'rb') as pb:
|
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'carrier_list.pb'), 'rb') as pb:
|
||||||
@@ -215,6 +225,8 @@ def main():
|
|||||||
getattr(entry.carrierId, field),
|
getattr(entry.carrierId, field),
|
||||||
)
|
)
|
||||||
for config in setting.configs.config:
|
for config in setting.configs.config:
|
||||||
|
if config.key in unwanted_configs:
|
||||||
|
continue
|
||||||
value_type = config.WhichOneof('value')
|
value_type = config.WhichOneof('value')
|
||||||
if value_type == 'textValue':
|
if value_type == 'textValue':
|
||||||
carrier_config_subelement = ET.SubElement(
|
carrier_config_subelement = ET.SubElement(
|
||||||
|
|||||||
Reference in New Issue
Block a user