diff options
| author | 2020-07-01 20:03:27 +0000 | |
|---|---|---|
| committer | 2020-07-01 20:03:27 +0000 | |
| commit | 066ff58724e2750390f8650c6cded3be26a988e1 (patch) | |
| tree | 1091f1e0578cc1681496ad639cf573f5f8fdc0b9 | |
| parent | 5c3748e7763dcc68a49550b1c92e72e0de1a645a (diff) | |
| parent | 520b9e44815a4bece605431d3a1bb1149057a2f4 (diff) | |
Merge "binder parcel: restrict on APEX"
| -rw-r--r-- | libs/binder/ndk/include_platform/android/binder_parcel_platform.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 ac46cb80f4..114a781232 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 @@ __BEGIN_DECLS */ bool AParcel_getAllowFds(const AParcel*); -__END_DECLS
\ No newline at end of file +__END_DECLS |