Run the following commands in the terminal.
hdc shell write_updater user_factory_reset reboot updater