recovery: Add "Enable ADB" to advanced options
Change-Id: I78ff93a43a17caeaae8a9601ec299b53a2802b20
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 97c97ab..a0ee7c4 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -460,6 +460,10 @@
device->RemoveMenuItemForAction(Device::ENTER_RESCUE);
}
+ if (get_build_type() != "userdebug") {
+ device->RemoveMenuItemForAction(Device::ENABLE_ADB);
+ }
+
if (get_build_type() == "user") {
device->RemoveMenuItemForAction(Device::WIPE_SYSTEM);
device->RemoveMenuItemForAction(Device::MOUNT_SYSTEM);