summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-07 22:07:55 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-07 22:10:00 +0200
commit5bf439221d081eb1853c8958405b76eca190129e (patch)
tree7bf908afc56cb72163e771efd06ca7278b1604de /recovery.cpp
parentHax to make it boot (diff)
downloadandroid_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.gz
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.bz2
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.lz
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.xz
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.tar.zst
android_bootable_recovery-5bf439221d081eb1853c8958405b76eca190129e.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 2c77271b4..319cdc72a 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -52,10 +52,8 @@ extern "C" {
}
#include "partitions.hpp"
-int gui_init(void);
-int gui_loadResources(void);
-int gui_start(void);
-int gui_console_only(void);
+TWPartitionManager PartitionManager;
+char device_id[64];
struct selabel_handle *sehandle;
@@ -810,7 +808,7 @@ main(int argc, char **argv) {
printf("=> Linking mtab\n");
__system("ln -s /proc/mounts /etc/mtab"); // And link mtab for mke2fs
printf("=> Processing recovery.fstab\n");
- if (TWPartitionManager::Process_Fstab("/etc/recovery.fstab", 1)) {
+ if (!PartitionManager.Process_Fstab("/etc/recovery.fstab", 1)) {
LOGE("Failing out of recovery due to problem with recovery.fstab.\n");
//return -1;
}
@@ -905,7 +903,7 @@ main(int argc, char **argv) {
if (status != INSTALL_SUCCESS) ui->Print("Installation aborted.\n");
} else if (wipe_data) {
gui_console_only();
- if (TWPartitionManager::Factory_Reset()) status = INSTALL_ERROR;
+ if (PartitionManager.Factory_Reset()) status = INSTALL_ERROR;
//if (device->WipeData()) status = INSTALL_ERROR;
//if (erase_volume("/data")) status = INSTALL_ERROR;
//if (wipe_cache && erase_volume("/cache")) status = INSTALL_ERROR;