summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 15:49:29 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 15:50:56 +0200
commita58beade0a4f5342f5dcd3b3a597f9183de92260 (patch)
tree62bfd10e4fc279cc4decc7fd96a0e6a86d710008 /data.cpp
parentDisplay symlinks and block devices in file manager (diff)
downloadandroid_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.gz
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.bz2
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.lz
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.xz
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.zst
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.zip
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/data.cpp b/data.cpp
index 9c53c46f1..ab240a7a4 100644
--- a/data.cpp
+++ b/data.cpp
@@ -44,13 +44,9 @@ extern "C"
{
#include "common.h"
#include "data.h"
- #include "tw_reboot.h"
- #include "roots.h"
#include "gui/pages.h"
void gui_notifyVarChange(const char *name, const char* value);
-
- int __system(const char *command);
}
#define FILE_VERSION 0x00010001
@@ -627,17 +623,17 @@ void DataManager::SetDefaultValues()
#endif
#endif
- mConstValues.insert(make_pair(TW_REBOOT_SYSTEM, tw_isRebootCommandSupported(rb_system) ? "1" : "0"));
+ mConstValues.insert(make_pair(TW_REBOOT_SYSTEM, "1"));
#ifdef TW_NO_REBOOT_RECOVERY
mConstValues.insert(make_pair(TW_REBOOT_RECOVERY, "0"));
#else
- mConstValues.insert(make_pair(TW_REBOOT_RECOVERY, tw_isRebootCommandSupported(rb_recovery) ? "1" : "0"));
+ mConstValues.insert(make_pair(TW_REBOOT_RECOVERY, "1"));
#endif
- mConstValues.insert(make_pair(TW_REBOOT_POWEROFF, tw_isRebootCommandSupported(rb_poweroff) ? "1" : "0"));
+ mConstValues.insert(make_pair(TW_REBOOT_POWEROFF, "1"));
#ifdef TW_NO_REBOOT_BOOTLOADER
mConstValues.insert(make_pair(TW_REBOOT_BOOTLOADER, "0"));
#else
- mConstValues.insert(make_pair(TW_REBOOT_BOOTLOADER, tw_isRebootCommandSupported(rb_bootloader) ? "1" : "0"));
+ mConstValues.insert(make_pair(TW_REBOOT_BOOTLOADER, "1"));
#endif
#ifdef RECOVERY_SDCARD_ON_DATA
mConstValues.insert(make_pair(TW_HAS_DATA_MEDIA, "1"));