Stop using PackageManagerInternal in PermissionMonitor

- Replace the PackageManagerInternal#getPackageList() with
receiving PACKAGE_{ADDED|REMOVED} intent.
- Also remove the onPackageChanged method because the traffaic
permissions(INTERNET, UPDATE_DEVICE_STATS) are not changed after
package changed(Disable or enable package).

Bug: 176788468
Test: atest FrameworksNetTests
Change-Id: I5505d1c77db66a7e65fc336ea0e99846e78c6b36
2 files changed
tree: fe4f5b83b0ff2fd741a4f7c24e650d1b21aabd86
  1. core/
  2. framework/
  3. service/
  4. services/
  5. tests/
  6. OWNERS