Remove network bypass flags for non-connectivity jobs.
If a job doesn't say that it needs network, then there's no reason to ensure that the app has access to network while the job is running. Currently, the network restriction bypass flags are only given to expedited or user-initiated jobs. Don't include the flags when the job doesn't require connectivity to avoid accidental network usage/leakage. Bug: 297106511 Bug: 299329948 Bug: 299346198 Test: atest CtsJobSchedulerTestCases:ConnectivityConstraintTest Test: atest CtsJobSchedulerTestCases:ExpeditedJobTest Change-Id: I9c632595f27655a977d6b084760839ce02c8c07b
Loading
Please register or sign in to comment