summaryrefslogtreecommitdiff
path: root/tools/releasetools/apex_utils.py
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2024-08-15 07:38:17 +0000
committer Jooyung Han <jooyung@google.com> 2024-08-15 07:38:17 +0000
commit1e45baff6bf048e90adcdf00a568b424d7bf1662 (patch)
tree63b6bfd189593e1a1755d584f4bdb2d0bf493f3c /tools/releasetools/apex_utils.py
parentf55902f65fe2289dc69024f39753df8782560f13 (diff)
Add /odm/apex/ support.
We now allow APEXes in /odm. Bug: 162049873 Change-Id: I2af97504a8d6159e778f8f833335db49beee6873
Diffstat (limited to 'tools/releasetools/apex_utils.py')
-rw-r--r--tools/releasetools/apex_utils.py4
1 files changed, 3 insertions, 1 deletions
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