WifiPermissionsUtil: Use getApplicationInfoAsUser for target SDK checks

To handle multi-user scenarios, pass in the corresponding app's user id
to fetch app info.

Bug: 140895783
Bug: 145297974
Test: atest com.android.server.wifi
Merged-In: I0ff22e39513778b13648b226e91d8a27effc7596

Change-Id: I0ff22e39513778b13648b226e91d8a27effc7596
6 files changed
tree: 48ffa4eba55f621de0338f66d88d8880f1451f49
  1. service/
  2. PREUPLOAD.cfg