This will make sure files are created with proper permissions so Android daemon doesn't have to handle that. On Android umask is set by init. --- android/system-emulator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/system-emulator.c b/android/system-emulator.c index 24f2741..299de0f 100644 --- a/android/system-emulator.c +++ b/android/system-emulator.c @@ -37,6 +37,8 @@ #include <sys/param.h> #include <sys/socket.h> #include <sys/un.h> +#include <sys/types.h> +#include <sys/stat.h> #include "monitor/mainloop.h" @@ -169,5 +171,7 @@ int main(int argc, char *argv[]) mainloop_add_fd(fd, EPOLLIN, system_socket_callback, NULL, NULL); + umask(0177); + return mainloop_run(); } -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html