From cfb63ae2b11dc5b9a7e0231a489131523114e7de Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Wed, 19 Sep 2012 14:30:17 -0400 Subject: Improve adb sideload -- add cancel Also copy zip from /tmp to storage and remove from /tmp to prevent running out of RAM. --- recovery.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'recovery.cpp') 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(); -- cgit v1.2.3