summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Brahim Chikhaoui <bchikhaoui@google.com> 2024-11-02 10:02:51 +0000
committer Brahim Chikhaoui <bchikhaoui@google.com> 2024-11-02 10:04:12 +0000
commit7b474b644d0fb1018d97be8d0b002b684c7906e0 (patch)
treea30bcdb853cdc2a29656d591c25a0fab5f0e609e
parent42a799b2e138993a0a24ac47b2416992ed68680f (diff)
Add a new config_HsumBootStrategy to control the boot strategy in Headless System User Mode (HSUM)
This config will be used to control the boot strategy in HSUM. This CL adds the config. A follow-up CL will actually implement the logic. Context: see DD in the bug Bug: 374926694 Change-Id: I460e5151cf47d565bed30f2aa6eb1ed9df5e2336 Flag: EXEMPT adding new config only Test: manually build and deploy in DUT
-rw-r--r--core/res/res/values/config.xml6
-rw-r--r--core/res/res/values/symbols.xml1
2 files changed, 7 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index ac9bb93a6ffa..7402a2f24f97 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -3087,6 +3087,12 @@
<!-- Whether UI for multi user should be shown -->
<bool name="config_enableMultiUserUI">false</bool>
+ <!-- Indicates the boot strategy in Headless System User Mode (HSUM)
+ This config has no effect if the device is not in HSUM.
+ 0 (Default) : boot to the previous foreground user if there is one, otherwise the first switchable user.
+ 1 : boot to the first switchable full user for initial boot (unprovisioned device), else to the headless system user, i.e. user 0. -->
+ <integer name="config_hsumBootStrategy">0</integer>
+
<!-- Whether to boot system with the headless system user, i.e. user 0. If set to true,
system will be booted with the headless system user, or user 0. It has no effect if device
is not in Headless System User Mode (HSUM). -->
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index 515ebd54b5eb..b7cb1981b2f2 100644
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -312,6 +312,7 @@
<java-symbol type="bool" name="config_disableLockscreenByDefault" />
<java-symbol type="bool" name="config_enableBurnInProtection" />
<java-symbol type="bool" name="config_hotswapCapable" />
+ <java-symbol type="integer" name="config_hsumBootStrategy" />
<java-symbol type="bool" name="config_mms_content_disposition_support" />
<java-symbol type="bool" name="config_networkSamplingWakesDevice" />
<java-symbol type="bool" name="config_showMenuShortcutsWhenKeyboardPresent" />