WifiConfigManager: Stop hardcoding SysUI package name

SysUI's package name is not a stable API. Instead
of checking for SysUI's UID, check if the UID has
the NETWORK_SETTINGS permission (which SysUI has).

Bug: 141890172
Test: atest WifiConfigManagerTest
Change-Id: I3b4a403fedcdd4b004abd1ff972724f3718c36f2
2 files changed
tree: 447abf02a5dbd7a9d146836a096dc4e058d916d8
  1. apex/
  2. service/
  3. PREUPLOAD.cfg