commit | 520b9e44815a4bece605431d3a1bb1149057a2f4 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri May 29 18:22:13 2020 +0000 |
committer | Steven Moreland <smoreland@google.com> | Tue Jun 30 22:58:22 2020 +0000 |
tree | 88c65f1e84aecf5716ecedb83d798926907423c5 | |
parent | 839fc143377282191fc2bc12811123fb225e913d [diff] |
binder parcel: restrict on APEX This is platform-only, so we should provide a nice error message for APEX includes. Bug: N/A Test: N/A Change-Id: I4b0a169baaa342797975fd46dbf83d07fc5a06ff
diff --git a/libs/binder/ndk/include_platform/android/binder_parcel_platform.h b/libs/binder/ndk/include_platform/android/binder_parcel_platform.h index ac46cb8..114a781 100644 --- a/libs/binder/ndk/include_platform/android/binder_parcel_platform.h +++ b/libs/binder/ndk/include_platform/android/binder_parcel_platform.h
@@ -20,6 +20,10 @@ __BEGIN_DECLS +#if defined(__ANDROID_APEX__) || defined(__ANDROID_VNDK__) +#error this is only for platform code +#endif + /** * Gets whether or not FDs are allowed by this AParcel * @@ -29,4 +33,4 @@ */ bool AParcel_getAllowFds(const AParcel*); -__END_DECLS \ No newline at end of file +__END_DECLS