From 6b3e296c170ff1169dac490fd99e6563b90fa2ac Mon Sep 17 00:00:00 2001 From: Ido Ben-Hur Date: Fri, 29 Nov 2019 22:15:37 +0200 Subject: [PATCH] build: Erase package_cache upon flashing To avoid the resources bug when dirty flashing Signed-off-by: saikiran2001 --- tools/releasetools/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 518fca6c70..127d6160ec 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -3667,6 +3667,9 @@ class BlockDifference(object): new_data_name=new_data_name, code=code)) script.AppendExtra(script.WordWrap(call)) + call = ('delete_recursive("/data/system/package_cache");') + script.AppendExtra(script.WordWrap(call)) + def _HashBlocks(self, source, ranges): # pylint: disable=no-self-use data = source.ReadRangeSet(ranges) ctx = sha1()