commit | 03635b3ad53ccef25d4109a6233e0334aad26a99 | [log] [tgz] |
---|---|---|
author | paulhu <paulhu@google.com> | Thu Jul 01 18:04:45 2021 +0800 |
committer | paulhu <paulhu@google.com> | Thu Jul 01 23:01:41 2021 +0800 |
tree | 457dba0d181fb8cbca9edfd25c34ed280e90581a | |
parent | eefacbcb5cb3e548ea75bfc7a677f38aa34475d5 [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 Ignore-AOSP-First: Need cherry-pick Change-Id: I175a831671d3e52460d28203b09f6c0dda56b61c