Turn off background data restriction before test

Some of the tests will fail when background data usage is restricted
[0], such as when device is in data saver mode.
For those tests, we turn off the restrictions before running the test,
and then restore them after the test.

[0] you can check for restrictions via iptables/ip6tables

Bug: 70983919
Bug: 70702251
Test: cts-tradefed run cts-dev
-m CtsDevicePolicyManagerTestCases
-t com.android.cts.devicepolicy.MixedDeviceOwnerTest

Change-Id: I0320cda023122a64d1737049c3c2cf7fd235c823
1 file changed