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
This commit is contained in:
Nikhil Kumar
2023-01-03 11:56:27 +00:00
parent 03882bc8bd
commit b96f4d8e40
2 changed files with 5 additions and 0 deletions

View File

@@ -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>

View File

@@ -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"/>