liblog: suppress pmsg on user builds

- add optimized & cached LIBLOG_HIDDEN __android_log_is_debuggable()
- check when writing, either LOG_ID_SECURITY, SafetyNet or
  debuggable when pushing content to the pmsg buffer.

Bug: 27566046
Change-Id: I85f1b55ec329b38e00f4183836b6ed53046c323d
5 files changed
tree: b6379d07c2ba311b9f00cc0baf69a2bf0a2fd881
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/