Fix various issues of getConnectionInfo
1. We should pass through the "op package name" instead of
resolving the UID to package name.
2. ActivityManager.getCurrentUser() requires INTERACT_ACROSS_USER
permission, clearing calling identity before calling it..
Bug: 64245163
Test: Verify QR provisioning is now possible
Test: runtest -x frameworks/opt/net/wifi/tests/
Test: runtest -x runtest -x cts/tests/tests/net/src/android/net/wifi/cts/WifiInfoTest.java
Change-Id: Id4dd9e7b38120e7b5867b71472a5aa24c288a47e
4 files changed