gwp_asan_headers is marked as available to platform
The header lib is depended on by many of the bionic libraries which are
part of the platform.
With b/153073816, we will be checking the availability to the platform,
i.e. platform-available module depending on platform-unavailable module
causes a build error.
Prepare for the change by correctly marking that this interface lib is
available to the platform.
Also, this change narrows down the APEXes where this header lib is
available for. Instead of allowing it to be included in any APEX, the
list of APEXes that are currently using this is specified.
diff --git a/Android.bp b/Android.bp
index 1112873..dacc40f 100644
@@ -50,13 +50,16 @@
- // This header lib is depended on by gwp_asan which is available to
- // platform.
+ // This header lib is compiled also as part of the platform due to libasync_safe
+ // and others that are compiled with this header and are statically included
+ // in the platform side.
- // GWP-ASan headers are frequently referenced by apexes that include
- // references to libc_headers or libc_scudo. These modules manage apex
- // visibility in Soong, and are globally visible.
+ // GWP-ASan headers are currently referenced by the following additional APEXes