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

am: d9880a0246

Change-Id: I466278a0f2a0158a4a5180be0b99d69e46585be9
This commit is contained in:
Tianjie Xu 2017-03-02 21:41:14 +00:00 committed by android-build-merger
commit 4ef67cee73
1 changed files with 1 additions and 2 deletions

View File

@ -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"