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: I2867f8f33861a802058c84149246dbd7f2b1441e
(cherry picked from commit 38598d8d32d5fa9af2178e71916887c2d37678f5)
1 file changed