From 2293566829a91d6bc4f4fce5710377fcad960389 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sat, 14 Mar 2020 00:12:18 +0100 Subject: [PATCH] Don't allow mounting system on user builds Change-Id: I7138c307ae6d7996d9fcf1cf280730ff6fb5ccf9 --- recovery_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recovery_main.cpp b/recovery_main.cpp index 678afa02..a8c94ae7 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -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);