commit | dabd1ade44c561340d37e5e4b3a0827124a4a230 | [log] [tgz] |
---|---|---|
author | shreyacsingh <shreyacsingh@google.com> | Fri Jan 06 00:40:38 2023 +0000 |
committer | shreyacsingh <shreyacsingh@google.com> | Wed Feb 08 12:13:56 2023 +0000 |
tree | 1b633187b55b2096c0f5a2425e238f27b554db04 | |
parent | 6b5bf27065fb8cb1ea256fdd259f78286a893e19 [diff] |
Disallow work profiles on non-initial users in headless Modified 'canHaveProfile' method to ensure we allow work profiles only on initial user and not additional users- in both headless and non-headless environment.For that we can use isMain() as on non-headless, the system user(initial) is main,and on headless the first secondary user(initial) is main. Test: atest Bug: 266053489 Fix: 266053489 Change-Id: Ia959213b03ea7b36d113fd13e23fca187fe3f59d