Grant package visibility to dependent library

Packages should be granted visibility to packages that they list in
their <uses-library> tags.

Bug: 174856119
Test: atest AppsFilterTest
Test: manual test by using an application without permission nor tag
      <queries> and try to get the package info of the package which
      declares the library.
Change-Id: Idce9c457e238c4a34a8bdca089ce5f86b7f62177
2 files changed