summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-18 21:40:25 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-18 21:44:39 +0200
commit8170a921453945caffb31c06d563010e8a182b3d (patch)
tree570e5aebccc70b1c4ba2ae29b9e3dd16dd44e16d /recovery.cpp
parentImprove backup and restore (diff)
downloadandroid_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.gz
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.bz2
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.lz
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.xz
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.tar.zst
android_bootable_recovery-8170a921453945caffb31c06d563010e8a182b3d.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 743920c85..b333db904 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -808,14 +808,15 @@ main(int argc, char **argv) {
printf("Starting the UI...");
gui_init();
printf("=> Installing busybox into /sbin\n");
- __system("/sbin/bbinstall.sh"); // Let's install busybox
+ system("/sbin/bbinstall.sh"); // Let's install busybox
printf("=> Linking mtab\n");
- __system("ln -s /proc/mounts /etc/mtab"); // And link mtab for mke2fs
+ system("ln -s /proc/mounts /etc/mtab"); // And link mtab for mke2fs
printf("=> Processing recovery.fstab\n");
if (!PartitionManager.Process_Fstab("/etc/recovery.fstab", 1)) {
LOGE("Failing out of recovery due to problem with recovery.fstab.\n");
//return -1;
}
+ PartitionManager.Output_Partition_Logging();
// Load up all the resources
gui_loadResources();
@@ -890,7 +891,7 @@ main(int argc, char **argv) {
#ifdef TW_INCLUDE_INJECTTWRP
// Back up TWRP Ramdisk if needed:
LOGI("Backing up TWRP ramdisk...\n");
- __system("injecttwrp --backup /tmp/backup_recovery_ramdisk.img");
+ system("injecttwrp --backup /tmp/backup_recovery_ramdisk.img");
LOGI("Backup of TWRP ramdisk done.\n");
#endif
@@ -923,9 +924,6 @@ main(int argc, char **argv) {
//if (status != INSTALL_SUCCESS) ui->SetBackground(RecoveryUI::ERROR);
if (status != INSTALL_SUCCESS /*|| ui->IsTextVisible()*/) {
DataManager_ReadSettingsFile();
-
- // Update some of the main data
- update_tz_environment_variables();
gui_start();
//prompt_and_wait(device);
}