fastboot: Add routines for unlock and lock device
Add support for functions to request unlock and lock of devices in
response to fastboot oem unlock/lock commands. Unlock operation is
equivalent to enabling dev mode and lock operation is equivalent to
leaving dev mode. It is the responsibility of the caller to ensure
that user confirmation is obtained before unlock/lock operations.
TEST=Compiles successfully and fastboot lock/unlock operations work as
expected on smaug. Added tests to ensure lock/unlock operations are
covered. Verified using make -j runtests.
Signed-off-by: Furquan Shaikh <email@example.com>
Reviewed-by: Furquan Shaikh <firstname.lastname@example.org>
Tested-by: Furquan Shaikh <email@example.com>
Reviewed-by: Randall Spangler <firstname.lastname@example.org>
Commit-Queue: Furquan Shaikh <email@example.com>
Trybot-Ready: Furquan Shaikh <firstname.lastname@example.org>
4 files changed