adb: set umask to 000

Init is going to be modified to set the umask to 077.
This will impact adb, as "adb install" and "adb sync"
assume that files will be world-readable / writable.

Keep adb's umask at 000 for now.

Bug: 3272072
Change-Id: I75978e8dd7bbdf4dbe7c9a691ef516235f207da2
This commit is contained in:
Nick Kralevich 2012-04-02 13:00:35 -07:00
parent 1ecb8681c3
commit eb68fa8153

View file

@ -933,6 +933,8 @@ int adb_main(int is_daemon, int server_port)
#if !ADB_HOST
int port;
char value[PROPERTY_VALUE_MAX];
umask(000);
#endif
atexit(adb_cleanup);