Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49ba2bbe authored by Tianjie Xu's avatar Tianjie Xu Committed by android-build-merger
Browse files

Merge "Do not read the block device when generating the care map" am: d9880a02

am: 4ef67cee

Change-Id: I8b4967fb9dee355599e6deb611c4b219b669040c
parents 126d7b17 4ef67cee
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -77,11 +77,10 @@ def GetCareMap(which, imgname):
  """Generate care_map of system (or vendor) partition"""

  assert which in ("system", "vendor")
  _, blk_device = common.GetTypeAndDevice("/" + which, OPTIONS.info_dict)

  simg = sparse_img.SparseImage(imgname)
  care_map_list = []
  care_map_list.append(blk_device)
  care_map_list.append(which)

  care_map_ranges = simg.care_map
  key = which + "_adjusted_partition_size"