summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-03-25 17:50:46 -0500
committerMark Salyzyn2016-03-29 15:52:21 -0500
commit7ef5249afacffe3901e3a602372c7d34cf655675 (patch)
tree608776f5c0e1444cdacd32a106ba91b7ea198605 /liblog/logger.h
parentfbdbf100cb48f18d308c96f1959945cf7d1909ec (diff)
downloadplatform-system-core-7ef5249afacffe3901e3a602372c7d34cf655675.tar.gz
platform-system-core-7ef5249afacffe3901e3a602372c7d34cf655675.tar.xz
platform-system-core-7ef5249afacffe3901e3a602372c7d34cf655675.zip
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
Diffstat (limited to 'liblog/logger.h')
-rw-r--r--liblog/logger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/liblog/logger.h b/liblog/logger.h
index 5d031d79f..c727f294a 100644
--- a/liblog/logger.h
+++ b/liblog/logger.h
@@ -154,6 +154,7 @@ LIBLOG_HIDDEN pid_t __android_log_pid();
154LIBLOG_HIDDEN void __android_log_lock(); 154LIBLOG_HIDDEN void __android_log_lock();
155LIBLOG_HIDDEN int __android_log_trylock(); 155LIBLOG_HIDDEN int __android_log_trylock();
156LIBLOG_HIDDEN void __android_log_unlock(); 156LIBLOG_HIDDEN void __android_log_unlock();
157LIBLOG_HIDDEN int __android_log_is_debuggable();
157 158
158__END_DECLS 159__END_DECLS
159 160