forked from RattlesnakeOS/community_patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
00003-disable-menu-entries-in-recovery.patch
30 lines (27 loc) · 1.19 KB
/
00003-disable-menu-entries-in-recovery.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 332e14f74e5580af746411975c70c555a0737109 Mon Sep 17 00:00:00 2001
From: Andreas Baldeau <[email protected]>
Date: Sun, 4 Nov 2018 00:19:57 +0100
Subject: [PATCH] Disable menu entries in recovery
* Wipe data/factory reset
* Mount /system
* View recovery logs
* Run graphics test
---
bootable/recovery/recovery_ui/device.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/recovery_ui/device.cpp b/recovery_ui/device.cpp
index e7ae1a3..09b3944 100644
--- a/bootable/recovery/recovery_ui/device.cpp
+++ b/bootable/recovery/recovery_ui/device.cpp
@@ -31,11 +31,7 @@ static std::vector<std::pair<std::string, Device::BuiltinAction>> g_menu_actions
{ "Enter fastboot", Device::ENTER_FASTBOOT },
{ "Apply update from ADB", Device::APPLY_ADB_SIDELOAD },
{ "Apply update from SD card", Device::APPLY_SDCARD },
- { "Wipe data/factory reset", Device::WIPE_DATA },
{ "Wipe cache partition", Device::WIPE_CACHE },
- { "Mount /system", Device::MOUNT_SYSTEM },
- { "View recovery logs", Device::VIEW_RECOVERY_LOGS },
- { "Run graphics test", Device::RUN_GRAPHICS_TEST },
{ "Run locale test", Device::RUN_LOCALE_TEST },
{ "Enter rescue", Device::ENTER_RESCUE },
{ "Power off", Device::SHUTDOWN },