Skip to content

Commit 6ff6b9b

Browse files
author
Steven Moreland
committed
libbinder_ndk: stability product build var canary
Build define to ensure that vendor stability is not used on the product partition. Bug: 385007343 Test: N/A Change-Id: I3fd03dde807b64e2c96c4f86cf10d619eb41b32e
1 parent a5f7d9f commit 6ff6b9b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libs/binder/ndk/include_platform/android/binder_stability.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ constexpr binder_flags_t FLAG_PRIVATE_VENDOR = 0x10000000;
2727

2828
#if defined(__ANDROID_VENDOR__)
2929

30+
#if defined(__ANDROID_PRODUCT__)
31+
#error "build bug: product is not part of the vendor half of the Treble system/vendor split"
32+
#endif
33+
3034
/**
3135
* Private addition to binder_flag_t.
3236
*/

0 commit comments

Comments
 (0)