adb: Do not look for bu in /system/bin when in recovery mode

This prevents breakage when /system is mounted while in recovery.

Change-Id: I4594d33969987cd1d17b4d865d6aca448596d0c1
sdcard: Link to cutils and libc as DSOs

There's no reason to link this statically, especially since we're
building a shared binary anyway. Reduce binary size from 108k to 18k

Change-Id: I0622f039080fa088348570048314121ea4e14587
charger: Use android blue for charge percentage

  This isn't gingerbread anymore

Change-Id: Ifb8635761b0e77deac4e78dfe783fd794e96199f
Remove obsolete vdc call.

Since ca8e66a8b0f843812014a28d49208f9f6f64ecbc, init has
been handling reboots and filesystem unmounts. Remove obsolete
call to vdc...

Bug: 12504045
Change-Id: If8704ca042cb3a68857743b9973e48c52e7eb881
Make tombstones directory to not follow symlink.

Use file descriptor to change ownership.

Change-Id: Ie6919c549885d950975a003c4009b6e185df6e64
CRs-Fixed: 600072
system/core: Remove AID_GRAPHICS from adb groups.

Remove AID_GRAPHICS from adb access groups so that
framebuffer access is restricted.

Change-Id: I306edaa2875ebc066118bb573e551325c137415a
toolbox: Avoid issues with non-regular files

Toolbox uses open() in order to check for existence of a file, instead
of using stat(). This breaks when using non-regular files such as FIFO,
because opening a FIFO for reading blocks until a writer is available.

Change-Id: I008d246d68f7ce56040f4b4c36e5ff4f9c34f4dc