From 1e45baff6bf048e90adcdf00a568b424d7bf1662 Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Thu, 15 Aug 2024 07:38:17 +0000 Subject: Add /odm/apex/ support. We now allow APEXes in /odm. Bug: 162049873 Change-Id: I2af97504a8d6159e778f8f833335db49beee6873 --- tools/releasetools/apex_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/releasetools/apex_utils.py') diff --git a/tools/releasetools/apex_utils.py b/tools/releasetools/apex_utils.py index 3abef3bece..54df955e9f 100644 --- a/tools/releasetools/apex_utils.py +++ b/tools/releasetools/apex_utils.py @@ -36,6 +36,8 @@ APEX_PAYLOAD_IMAGE = 'apex_payload.img' APEX_PUBKEY = 'apex_pubkey' +# Partitions supporting APEXes +PARTITIONS = ['system', 'system_ext', 'product', 'vendor', 'odm'] class ApexInfoError(Exception): """An Exception raised during Apex Information command.""" @@ -550,7 +552,7 @@ def GetApexInfoFromTargetFiles(input_file): if not isinstance(input_file, str): raise RuntimeError("must pass filepath to target-files zip or directory") apex_infos = [] - for partition in ['system', 'system_ext', 'product', 'vendor']: + for partition in PARTITIONS: apex_infos.extend(GetApexInfoForPartition(input_file, partition)) return apex_infos -- cgit v1.2.3-59-g8ed1b