gooftool: finalize: disable cr50 factory mode before checking WP switch.
When cr50 factory mode is enabled, the HW WP would be disabled always.
Therefore finalize procedure would get failed if we check WP switch
before disabling cr50 factory mode.
BUG=b:113068962
TEST=manually test in the DUT.
Change-Id: Ifeaac2b99db774c069635bd11fc86cecd4ca91db
Reviewed-on: https://chromium-review.googlesource.com/1198842
Commit-Ready: Marco Chen <marcochen@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
diff --git a/py/gooftool/commands.py b/py/gooftool/commands.py
index a826598..9b16753 100755
--- a/py/gooftool/commands.py
+++ b/py/gooftool/commands.py
@@ -691,8 +691,8 @@
# Write VPD values related to RLZ ping into VPD.
GetGooftool(options).WriteVPDForRLZPing(options.embargo_offset)
Cr50SetBoardId(options)
- Verify(options)
Cr50DisableFactoryMode(options)
+ Verify(options)
LogSourceHashes(options)
UntarStatefulFiles(options)
if options.cros_core: