commit | 92f128c51c7a063595abe1e142617e43a0231797 | [log] [tgz] |
---|---|---|
author | paulhu <paulhu@google.com> | Thu Jul 01 18:04:45 2021 +0800 |
committer | paulhu <paulhu@google.com> | Fri Jul 02 20:04:50 2021 +0800 |
tree | 55e15f57b2b21b0e7ac32b3bf7402283d3e0c37f | |
parent | 05752a5316465677ec35c2b0fe0251068aa99249 [diff] |
Force only system uid can set uids allowed on restricted networks - Check whether calling UID/PID is system_server. - For CTS test, enforce NETWORK_SETTINGS permission otherwise if it's a debug build. Bug: 175199465 Test: atest FrameworksNetTests Test: atest ConnectivityManagerTest#testUidsAllowedOnRestrictedNetworks Merged-In: I175a831671d3e52460d28203b09f6c0dda56b61c Change-Id: I175a831671d3e52460d28203b09f6c0dda56b61c