Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3a26164 authored by Sandy Pan's avatar Sandy Pan
Browse files

[On device supervision] Also consider Profile Owner in on-device supervision condition.

It is possible for the supervision app to hold PO instead of the supervision role, so we should check if there is a Profile owner and if it is the supervision component before determining whether the device is under pin-based supervision or not.

Bug: 428743285
Flag: android.app.supervision.flags.enable_supervision_app_service
Test: SupervisionRepositoryImplTest.kt
Change-Id: Idc068bffc35de16c1c051343321c4a29dd3106fc
parent b182d2ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment