Add an api to query the visibility list of target packages

Bug: 261792320
Test: atest AppEnumerationTests
Change-Id: Id70510efa989297735a796fc8c1ccca7d5d34e44
7 files changed