Switch from using base64 BIOs to encoding funcs.

The OpenSSL base64 BIO is going away in BoringSSL. This change switches
to using the explicit base64 functions which are availible in both
OpenSSL and BoringSSL. The BoringSSL helper functions (i.e. for
calculating the size of the base64 encoding) are wrapped in #ifdefs so
that this change isn't coupled with the switch to BoringSSL. Once that
switch is complete, the #ifdefs can be removed.

Bug: 17409664
Change-Id: I42bac3bc93a1fb39feed39a8917d8e38d97629d3
Signed-off-by: Adam Langley <agl@google.com>
logcat: tests: deal with -v threadtime default

- specify -v brief where necessary to preserve tests
- fix an occasional issue for logrotate and device block size

Change-Id: I09b02cc0359dc351a89311abc3ee762a0f23582c
Merge "logcat: tests: deal with -v threadtime default"
logd: auditd: kmsg priority

Change-Id: I2016fe140e2daf6c69efbd10aef205fffb931aa1
Merge "logd: auditd: kmsg priority"
Fix warning for uninitialized variable.

Change-Id: I78e6a20562419dcc2fb3f579089b32aeb5538f8b
Merge "Fix warning for uninitialized variable."
init: Fix memory corruption when sanitizing platform paths

This commit fixes code that incorrectly increments s when it
hits the terminator character of the string being sanitized.
This means it will randomly start trashing memory beyond the
end of the string being sanitized until it happens to hit two
NULs (\0\0) which will break it out of the loop.

Change-Id: I76553d7f183236a78a0bc7b408e92559b98f732f
Merge "init: Fix memory corruption when sanitizing platform paths"
defined(HAVE_OFF_T) is really just !defined(__APPLE__).

Change-Id: I83c271bfe24b777acf293d2b4ac5af2cce8398b9
Merge "defined(HAVE_OFF_T) is really just !defined(__APPLE__)."
Switch adb to epoll(2).

Bug: 17588403
Change-Id: I2590f5e7dd4e178ff4f743609c5ef0155b1015a1
Merge "Switch adb to epoll(2)."
LibNativeBridge: Add early init & env setup

Add a method to set up /proc/cpuinfo with enough privileges. Set
up the environment for an app in InitializeNativeBridge().

Turn on -Wall for libnativebridge.

Change-Id: I0b93da93251c6b4638de786bf98cf99df07c3fc2
bionic has O_RSYNC now.

Change-Id: Idad77b6ddc0abe270edff773bb0316d30b9f894d
Merge "bionic has O_RSYNC now."
Merge "LibNativeBridge: Add early init & env setup"
LibNativeHelper: No bind mount on mac

Cannot bind-mount /proc/cpuinfo on the mac.

Change-Id: Id5f0cd46ba0eba484477c56bbecf14d95e88d6f2
Merge "LibNativeHelper: No bind mount on mac"
LibNativeBridge: Fix mac build warning

Change-Id: I5a819cb5edb064b8a7288b5f2b3100c515421adf