Added visibility needed for the S snapshot

Change https://r.android.com/1762266 moved some modules that depended
upon art.module.public.api from libcore/mmodules/core_platform_api to
build/soong/java/core-libraries. As part of that work
"libcore/mmodules/core_platform_api" was removed from
art.module.public.api's visibility.

Unfortunately, an sdk snapshot generated after that change will not
work in S because it still has the dependency from
libcore/mmodules/core_platform_api to art.module.public.api but the
latter has no matching visibility rule.

This change adds the visibility back along with a message explaining
why it is needed and cannot be removed.

Bug: 239121291
Test: m art-module-sdk
      # Check that it has the missing visibility.
Change-Id: I5bdf3b78d60a1fbcbb4883a726c6d1ae940cd9c5
(cherry picked from commit 8a1867f892d44abad698b52982f60b7fd382882e)
Merged-In: I5bdf3b78d60a1fbcbb4883a726c6d1ae940cd9c5
1 file changed