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

Commit b96f4d8e authored by Nikhil Kumar's avatar Nikhil Kumar
Browse files

Added new overlay property config_enableMainUserPermanentAdmin

config_enableMainUserPermanentAdmin overlay property is added to
decide the main user removal behaviour on different form factors.

If config_enableMainUserPermanentAdmin is true the main user can't be
deleted or downgraded to non-admin status.

Bug: 262368967
Test: NA
Change-Id: If2102fc6333f170c73160aad068f8cd7df003749
parent 03882bc8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2698,6 +2698,10 @@
        frameworks/base/services/core/java/com/android/server/pm/UserSystemPackageInstaller.java -->
    <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>

    <!-- Whether UI for multi user should be shown -->
    <bool name="config_enableMultiUserUI">false</bool>

+1 −0
Original line number Diff line number Diff line
@@ -352,6 +352,7 @@
  <java-symbol type="bool" name="config_restartRadioAfterProvisioning" />
  <java-symbol type="bool" name="config_speed_up_audio_on_mt_calls" />
  <java-symbol type="bool" name="config_useFixedVolume" />
  <java-symbol type="bool" name="config_isMainUserPermanentAdmin"/>
  <java-symbol type="bool" name="config_enableMultiUserUI"/>
  <java-symbol type="bool" name="config_enableMultipleAdmins"/>
  <java-symbol type="bool" name="config_enableNewAutoSelectNetworkUI"/>