summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-19 20:30:17 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-19 20:37:33 +0200
commitcfb63ae2b11dc5b9a7e0231a489131523114e7de (patch)
tree1c625c2d24fde213c5c9b8c8f537b33ac0d1ddc9 /recovery.cpp
parentCleanup extra-functions (diff)
downloadandroid_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.tar
android_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.tar.gz
android_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.tar.bz2
android_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.tar.lz
android_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.tar.xz
android_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.tar.zst
android_bootable_recovery-cfb63ae2b11dc5b9a7e0231a489131523114e7de.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/recovery.cpp b/recovery.cpp
index b333db904..b8bb09920 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -773,6 +773,10 @@ print_property(const char *key, const char *name, void *cookie) {
int
main(int argc, char **argv) {
+ // Recovery needs to install world-readable files, so clear umask
+ // set by init
+ umask(0);
+
time_t start = time(NULL);
// If these fail, there's not really anywhere to complain...
@@ -792,9 +796,6 @@ main(int argc, char **argv) {
}
printf("Starting TWRP %s on %s", TW_VERSION_STR, ctime(&start));
- // Recovery needs to install world-readable files, so clear umask
- // set by init
- umask(0);
Device* device = make_device();
ui = device->GetUI();