Replace PackageManager @hide APIs

ConnectivityService is using
PackageManager#getApplicationInfoAsUser() to get application
info but this API is not able to call after CS becomes a
mainline module. Thus, replace it with formal API.

Bug: 170593746
Test: atest FrameworksNetTests
Test: atest CtsNetTestCasesLegacyApi22
Change-Id: Idd1269aa50e234801583097bb6f40b099bab8fba
1 file changed
tree: 58de855a1f72738d991e27c71f52d47523e8918d
  1. core/
  2. services/
  3. tests/