summaryrefslogtreecommitdiff
authorLiang Ji <liang.ji@amlogic.com>2019-12-21 09:29:39 (GMT)
committer Ben Cheng <bccheng@google.com>2019-12-23 08:08:16 (GMT)
commitaa90bfff51c9cc1cb2de44d7aed947920e6d2b42 (patch)
tree9858f7bba0076df1666901bc36dfe906e0c97de0
parent93602373cdae8520194d25f8eb3dcb36a5d696e2 (diff)
downloadcommon-aa90bfff51c9cc1cb2de44d7aed947920e6d2b42.zip
common-aa90bfff51c9cc1cb2de44d7aed947920e6d2b42.tar.gz
common-aa90bfff51c9cc1cb2de44d7aed947920e6d2b42.tar.bz2
ota: format data partiton [1/1]
BUG=146662071 BUG=146767050 Problem: after ota upgrade, it is needed to "Factory data reset" because the keymaster ta was updated Solution: format data & tee partitions during the ota process this is a temp solution for keymaster ta updated if there is no keymaster ta updated, this patch do not need Verify: deadpool Change-Id: Iba62442d4c06bd74c1248abc82bc888b085b0002 Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Diffstat
-rwxr-xr-xreleasetools.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/releasetools.py b/releasetools.py
index 6103ef2..ed5ec2c 100755
--- a/releasetools.py
+++ b/releasetools.py
@@ -218,12 +218,14 @@ package_extract_file("vbmeta.img", "/dev/block/vbmeta");""")
info.script.AppendExtra('ui_print("update bootloader.img...");')
info.script.AppendExtra('write_bootloader_image(package_extract_file("bootloader.img"));')
- info.script.AppendExtra('if get_update_stage() == "2" then')
+ #TODO: this is a temp solution for keymaster ta updated
+ #TODO: need uncomment back next time after keymaster ta updated
+ #info.script.AppendExtra('if get_update_stage() == "2" then')
info.script.FormatPartition("/tee")
info.script.AppendExtra('wipe_cache();')
info.script.FormatPartition("/data")
info.script.AppendExtra('set_update_stage("0");')
- info.script.AppendExtra('endif;')
+ #info.script.AppendExtra('endif;')
SetBootloaderEnv(info.script, "upgrade_step", "1")
SetBootloaderEnv(info.script, "force_auto_update", "false")