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: I80cff14c06c3cab3e8f3bd1978c2951c4a3317c6
3 files changed
tree: 03c499872e45c3e71398b0cb16c5b2d70d50cbf3
  1. staticlibs/