QS: Do not display specific disclosure when the work profile is off
* Work-profile related disclosures (e.g. network logging on
the work profile) should disappear when the work profile is off.
* BYOD device with a work profile
* A disclosure isn't shown if there aren't any policies set.
* A specific disclosure is shown if a policy is set. If the work
profile is off, no disclosure is shown.
* COPE device
* The disclosure 'This device belongs to your organization'
is shown if there aren't any policies set.
* A specific disclosure is shown if a policy is set. If the work
profile is off, the disclosure 'This device belongs to your
organization'is shown.
Manual testing scenarios (using TestDPC)
- PO no policy -> verify no disclosure
- PO with policy -> verify specific disclosure
- PO with policy but WP is off -> verify no disclosure
- COPE PO no policy -> verify org-owned device disclosure
- COPE PO with policy -> verify specific disclosure
- COPE PO with policy but WP is off -> verify org-owned device disclosure
Bug: 191741537
Test: atest QSSecurityFooterTest
atest SecurityControllerTest
Manual testing
Change-Id: I8036bbf8eba40329ae9fbf502aff1f33cd8d1c4a
5 files changed