Check network slicing declaration for network request
When the application wants to request network with NET_CAPABILITY_PRIORITIZE_BANDWIDTH or NET_CAPABILITY_PRIORITIZE_LATENCY, it has to declare PackageManager.PROPERTY_NETWORK_SLICE_DECLARATIONS property and also adds the declaration in a separate XML files. Otherwise, the request will fail with a SecurityException being thrown. Test: atest FrameworksNetTests CtsNetTestCases Bug: 266524688 Change-Id: I6affc857b803211517368da288e1b2fdc06a955b
This commit is contained in:
parent
66b1b67b24
commit
96e8bfee5f
1 changed files with 1078 additions and 0 deletions
|
|
@ -47,6 +47,9 @@ java_test_host {
|
|||
data: [
|
||||
":CtsHostsideNetworkTestsApp",
|
||||
":CtsHostsideNetworkTestsApp2",
|
||||
":CtsHostsideNetworkCapTestsAppWithoutProperty",
|
||||
":CtsHostsideNetworkCapTestsAppWithProperty",
|
||||
":CtsHostsideNetworkCapTestsAppSdk33",
|
||||
] + next_app_data,
|
||||
per_testcase_directory: true,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue