releasetools: build_super_image: Do not set readonly attr

* Makes logical partitions writable when flashed to the device

Change-Id: Id473acaedab9400870700bc317a140fd73a58456
This commit is contained in:
Yumi Yukimura 2024-01-07 03:15:46 +08:00 committed by Bartłomiej Rudecki
parent d233aeb780
commit 28e997681e
Signed by: przekichane
GPG key ID: 751F23C6F014EF76

View file

@ -62,7 +62,7 @@ def GetArgumentsForImage(partition, group, image=None):
image_size = sparse_img.GetImagePartitionSize(image) if image else 0
cmd = ["--partition",
"{}:readonly:{}:{}".format(partition, image_size, group)]
"{}:none:{}:{}".format(partition, image_size, group)]
if image:
cmd += ["--image", "{}={}".format(partition, image)]