Skip to content
Commit b5129c71 authored by Alex Johnston's avatar Alex Johnston
Browse files

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
parent 5b24daa4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment