From 47f876b74be0a2d6d417f5ff385f85d835a97fe9 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 17 Apr 2018 13:56:46 +0900 Subject: Hide some headers from libbinder to vendors The headers that are related to system services are now hidden to vendors. Note that this does not break anything because vendors have already been disallowed to talk to system services via sepolicy. Their use of binder is strictly limited within themselves (via /dev/vndbinder). The hidden headers are now guarded with __ANDROID_VNDK__ and including them from vendors (or vendor variants of other VNDK libraries) will trigger a build-time error. Bug: 78113963 Test: m -j Test: devices boots to the UI Change-Id: I19be5ca024fc4081b7861d908d75758c1d956a83 --- libs/binder/Static.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/binder/Static.cpp') diff --git a/libs/binder/Static.cpp b/libs/binder/Static.cpp index f0613d1631..9899b65288 100644 --- a/libs/binder/Static.cpp +++ b/libs/binder/Static.cpp @@ -94,6 +94,8 @@ static LibBinderIPCtStatics gIPCStatics; Mutex gDefaultServiceManagerLock; sp gDefaultServiceManager; +#ifndef __ANDROID_VNDK__ sp gPermissionController; +#endif } // namespace android -- cgit v1.2.3-59-g8ed1b