RESTRICT AUTOMERGE: WifiServiceImpl: fix and add tethering checks

Fix checks for tethering restrictions in setWifiApEnabled
and setWifiApConfiguration.  Additionally add check for primary user for
all three checks (setWifiApEnabled, get/setWifiApConfiguration).

Bug: 35765136

Test: manual test as below:
      1. Download a popular free app, ES File Explorer (tested with version 4.1.7 and earlier)
      2. Menu (top-left) > Network > Net Manager > Create a hotspot network
      3. The operation should hang or fail
      4. "adb logcat | grep WifiService" to verify change

Change-Id: I62b5cea9a4f4cfb3397d2afa2cc38376b8f78699
1 file changed
tree: 2558f22003292aac0278aeb8076a56ab4a29dda7
  1. service/