Move LocationPermissionChecker to libs/net

LocationPermissionChecker was written to be used by multiple
connectivity modules, so it belongs in the frameworks/libs/net library.

The file is moved as-is with minor modifications in the test to avoid
usage of the privileged ActivityManager.getCurrentUser API.

Bug: 181837977
Test: atest NetworkStaticLibTests
Change-Id: I63bce35ba87c45138b3aaf6244367e982dfec455
1 file changed
tree: f870baf30a85218d65198fc447a2833678cec6e8
  1. core/
  2. framework/
  3. service/
  4. services/
  5. tests/
  6. OWNERS