fastboot: add secure & lock check for fastboot cmd [1/1]

BUG:202994010

Problem:
fastboot unlock & oem cmd maybe unsafe

Solution:
1. check lock state before fastboot cmds such as oem;

Verify:
adt3

Change-Id: Iefd67d45ba826ab4f9704643ca3afc2ba71ebc8a
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
1 file changed