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

Commit f62d2aab authored by Adam Bookatz's avatar Adam Bookatz
Browse files

MainUser permanent admin by default

On HSUM builds, we generally want the MainUser to be a permanent admin
user in AOSP. OEMs are free to turn that off, but then they are
responsible for handling initial user creation themselves.

This doesn't have any effect on non-HSUM builds (unless they are using
adb to emulate HSUM builds).

Bug: 270961661
Test: atest UserManagerTest
Change-Id: Iecf7129a9faeeede1bc1b8b7083dc98f37569556
parent 3521df06
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2780,8 +2780,10 @@
    <integer name="config_userTypePackageWhitelistMode">13</integer> <!-- 1+4+8 -->

    <!-- Whether the main user is a permanent admin user. If the main user is a permanent admin user
     it can't be deleted or downgraded to non-admin status. -->
    <bool name="config_isMainUserPermanentAdmin">false</bool>
     it can't be deleted or downgraded to non-admin status.
     This is generally only relevant on headless system user mode devices; on other devices, the
     main user is the system user which is always a permanent admin anyway. -->
    <bool name="config_isMainUserPermanentAdmin">true</bool>

    <!-- Whether switch to headless system user is allowed. If allowed,
    headless system user can run in the foreground even though it is not a full user. -->