external/extract_android_ota_payload: do not extract partitions built by AOSP
This commit is contained in:
parent
9b3c5bbeeb
commit
5dbb1ad2de
1 changed files with 17 additions and 0 deletions
|
@ -112,7 +112,24 @@ def main(filename, output_dir):
|
|||
payload = Payload(payload_file)
|
||||
payload.Init()
|
||||
|
||||
blacklist_partitions = ["boot",
|
||||
"dtbo",
|
||||
"persist",
|
||||
"product",
|
||||
"recovery",
|
||||
"system",
|
||||
"system_ext",
|
||||
"userdata",
|
||||
"vbmeta",
|
||||
"vbmeta_system",
|
||||
"vbmeta_vendor",
|
||||
"vendor",
|
||||
"vendor_boot",
|
||||
"vendor_dlkm"]
|
||||
|
||||
for p in payload.manifest.partitions:
|
||||
if p.partition_name in blacklist_partitions:
|
||||
continue
|
||||
name = p.partition_name + '.img'
|
||||
print("Extracting '%s'" % name)
|
||||
fname = os.path.join(output_dir, name)
|
||||
|
|
Loading…
Reference in a new issue