To allow the automation of gathering logs and swapping out OS images during tests a MSC reboot
endpoint was added. Together with a change to ecoboot, this allows the sending of a "reboot to
MSC" command. The deivce will then reboot and enter MSC mode.
Fix of the issue that after blocking
passcode from Center, Pure would still
display passcode input popup; providing
valid passcode there would result in
phone entering invalid state, where it
behaved as if it was unlocked, but
with blocked passcode.
The time of the next attempt to unlock the phone on
the MC side was bonded with the system time of
the MC host system. This could lead to issues when
the time on Pure was different than on MC host
operating system. Now everything relies on Pure
system time.
Body field was always added to response json, even if
it was containing only null. Now empty body is
not attached to response json, and status code
for such message is set to 204. Additionaly some
minor cleanup in service desktop was done.
When passcode is passed as json string, each of digits needs to be
parsed as separate character with std::atoi. Replaced the string
with json array of integers to simplify decoding and avoid SO.
- Added pass code unlock from MC
- Removed Set USB security status
- Changed isLocked to phoneLocked in request for phone lock status
- Removed remainings of USB security in Settings App
- Reworked USB security model to depend both on
Phone lock state and Pass code being enabled
- Updated test_security.py