Use prebuilt_visibility property on sdk/module_exports
When the ART sdk/module_exports snapshots are unpacked in a prebuilts
directory they need some additional visibility rules to be added to
ensure that the prebuilts are visible to each other. Previously, those
were added on a case by case basis to the individual modules. This
change replaces them by using the prebuilt_visibility property that
specifies additional visibility rules to be added to all prebuilt
modules in the snapshots.
Currently, the additional visibility added to the prebuilts makes them
visible to anything in //prebuilts or beneath which is not restrictive
enough. Specifying the rule in a single place will make that easier to
restrict in future.
Bug: 155921753
Bug: 168301990
Test: build sdk/snapshot, install them in prebuilts/module_sdk/art
and run m nothing to ensure the visibility rules are valid.
Change-Id: I751ed6d488038214ac9df35849babe69a3c79a31
9 files changed