Use PROFILE_INACCESSIBLE to track locked profile
Pre-U ACTION_MANAGED_PROFILE_UNAVAILABLE broadcast meant the user was shutting down, and could be used to track when the user can be treated as locked. In Android U work profile in quiet mode remains running, so to track when the user gets locked this CL swithces to ACTION_PROFILE_INACCESSIBLE instead, which is sent when the user is shut down. + formatting fix to satisfy lint Bug: 277715473 Test: manual, with TestDPC and work contact shortcut Change-Id: I258df006e2d87f69bbbac82d20ad72ddce625425
Loading
Please register or sign in to comment