Revert "Move libutils to libc++"

Causes issues in the unbundled branches.

This reverts commit dc133729b0bc983c6ecfecdb06ac8b433ea31350.

Change-Id: I9185ce9ea9e0ea631f0bfe016edf38c6830b288a
Merge "Revert "Move libutils to libc++""
am 570cd46d: Merge "Revert "Move libutils to libc++""

* commit '570cd46d14645f622e9972671308fdb4f2425292':
  Revert "Move libutils to libc++"
am e8f90ca6: am 570cd46d: Merge "Revert "Move libutils to libc++""

* commit 'e8f90ca60d65f5a0542b77f8f517c4fb80da2e52':
  Revert "Move libutils to libc++"
am 4b126c46: am e8f90ca6: am 570cd46d: Merge "Revert "Move libutils to libc++""

* commit '4b126c4604965ea029d9c741d074ad7f820b5269':
  Revert "Move libutils to libc++"
Per-app media directories on external storage.

This change defines per-app directories on external storage that
will be scanned and included in MediaStore.  This gives apps a way
to write content to secondary shared storage in a way that can
easily be surfaced to other apps.

Bug: 14382377
Change-Id: I6f03d8076a9391d8b9eb8421ec3fc93669b3ba0d
am 2e7d80d1: Per-app media directories on external storage.

* commit '2e7d80d10acf95076dfb1f2727455432091de65f':
  Per-app media directories on external storage.
Merge "SELinux changes to check policy versions during a reload."
am 252b0e2b: Merge "SELinux changes to check policy versions during a reload."

* commit '252b0e2b46e3d5e71a8b5c55928dc9ca62811f0a':
  SELinux changes to check policy versions during a reload.
am 6fb92bd8: am 252b0e2b: Merge "SELinux changes to check policy versions during a reload."

* commit '6fb92bd84bea3c5efadd891f1853fef7c811e79d':
  SELinux changes to check policy versions during a reload.
am 4f04439f: am 6fb92bd8: am 252b0e2b: Merge "SELinux changes to check policy versions during a reload."

* commit '4f04439f0eab481d1b7938e78d8ee316dda4d641':
  SELinux changes to check policy versions during a reload.
Merge "Add "exec" service: shell commands with no pty."
liblog: cache getuid() syscall

BUG: 15315766
Change-Id: I8f889a1c6ede74f2621f1b8ea5fda666c4b9cba2
Merge "liblog: cache getuid() syscall"
am bf0f2590: Merge "liblog: cache getuid() syscall"

* commit 'bf0f25905b12581f05b65b1ebe95211c727ae483':
  liblog: cache getuid() syscall
am 00d70979: am bf0f2590: Merge "liblog: cache getuid() syscall"

* commit '00d70979632fb72a7837206476505af3a030f782':
  liblog: cache getuid() syscall
am 5ce10c4d: am 00d70979: am bf0f2590: Merge "liblog: cache getuid() syscall"

* commit '5ce10c4d2415f25a4d2bfbf49c50bb152dff0fa2':
  liblog: cache getuid() syscall
Add LD_PRELOAD for libsigchain.so to the environment

To remove the need to modify the bionic dynamic linker, add the
signal chaining library as a preload in the environment.  This
will be picked up by the dynamic linker and will override
sigaction and sigprocmask to allow for signal chaining.

Change-Id: I6e2d0628b009bd01e0ed9aed0b311871b9c8363a
libutils: turn on -Werror

- Deal with some -Wunused issues
- Override PRI macros (windows)
- Revert use of PRI macros on off64_t (linux)
- Deal with a gnu++11 complaince issue

Change-Id: Ie66751293bd84477a5a6dfd8a57e700a16e36964
libcutils: fix rw FS remount check issue

In some condition, some of FS would set disable_roll_forward option.
In this case, when we do power off or reboot, the power down progress
would stuck at android_reboot for 360 sec.
The reason is, remount_ro_done function check key word "rw" to determine
whether all the read-write FS has been remounted as read-only FS.
Unfortunately, it takes disable_roll_forward as a rw flag too by
mistake, so the check would always fail, until reach 360 sec threshold.

The patch would match "rw," from mount options, this can avoid the issue
successfully.

Change-Id: I409f9dc88c9ee5cf049615ea9dcccaf195b6bc5a
Signed-off-by: Hong-Mei Li <a21834@motorola.com>