From d3be312a60851dfe8c970996952defc005572736 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Wed, 11 Aug 2021 19:45:05 +0000 Subject: [PATCH] Add new setting to Settings.Secure which controls hub mode enablement. Follow-up change will add the control in Settings to actually flip this setting on/off. Test: Locally on device Change-Id: Ib3215c79efd9fc4e5c30ea7f261b5a12c80ebacd --- core/java/android/provider/Settings.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 7a031e33e542c..635aa4e2e72a0 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -10220,6 +10220,13 @@ public final class Settings { public static final String DEVICE_STATE_ROTATION_LOCK = "device_state_rotation_lock"; + /** + * Control whether communal mode is allowed on this device. + * + * @hide + */ + public static final String COMMUNAL_MODE_ENABLED = "communal_mode_enabled"; + /** * These entries are considered common between the personal and the managed profile, * since the managed profile doesn't get to change them.