Don't allow mounting system on user builds

Change-Id: I7138c307ae6d7996d9fcf1cf280730ff6fb5ccf9
This commit is contained in:
Luca Stefani 2020-03-14 00:12:18 +01:00 committed by zlewchan
parent 2384f9a92e
commit 2293566829

View file

@ -458,6 +458,10 @@ int main(int argc, char** argv) {
device->RemoveMenuItemForAction(Device::ENTER_RESCUE);
}
if (get_build_type() == "user") {
device->RemoveMenuItemForAction(Device::MOUNT_SYSTEM);
}
ui->SetBackground(RecoveryUI::NONE);
if (show_text) ui->ShowText(true);