Improve logging code.

- Write to log buffer ourselves instead of calling log, so the printed
  pid is correct
- Reduce debug spam

Change-Id: I9afe7249fc589268ea61419a7cfc724897981e9e
Don't use "am --user" unless multiuser mode is enabled (bug #204)

Change-Id: Iefef7d5f3da5f179169c3c6efdb738fcc2df921a
Update activity.c

another am invocation with unconditional --user (the last one on line 185 needs no condition as it is only called in multiuser mode)

Change-Id: I19174cbdff56cd5a654bc1391cf94a7b5d5b8c58
assign user before use

sorry, jumped too short on my last commit: the user array has to be initialized before first use ...

Change-Id: Ia7fadfd183f6817509b588bcb98fb4e523329088
daemon: do not leak resources

Before this patch, the client was responsible for removing FIFOs before
connecting. That left a whole bunch of FIFOs in the SuperUser /dev/...
directory. After This patch, the daemon removes FIFOs as soon as the client is
connected. (This is detected by making the daemon read from the control socket.)

This patch becomes unnecessary when file descriptors can be passed though
processes.

Change-Id: Ia414268eefe07e26a9832a00936eb77af4b59abf
Add workaround for Samsung set*id restrictions (bug #196)

Change-Id: I1c80723f9b43686d645b858e76ee472fdf90f630
rev versions

at upstream commit 11d1e2cee8e206538bcc445516eec142de9d9998

Change-Id: Id303ac7b8382d5dba1fbb3ede7c6fb0706920711