From bcb30c3c2b3010848d7caab9c0396ad7404d57d8 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Thu, 9 Sep 2021 20:09:38 +0000 Subject: [PATCH] Add new Secure setting for communal mode. This new setting will store the list of packages (apps) which the user has enabled for communal mode. This list is expected to change rarely, therefore we opted to store it in Settings.Secure for simplicity as opposed to a custom file. Test: Locally on device Bug: 198325535 Change-Id: I9b652b5920737308da7441d324f9ef8c4d60f996 --- 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 7002a380f1d89..533924fe585c3 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -10229,6 +10229,13 @@ public final class Settings { */ public static final String COMMUNAL_MODE_ENABLED = "communal_mode_enabled"; + /** + * An array of all the packages which have been enabled for hub mode by the user. + * + * @hide + */ + public static final String COMMUNAL_MODE_PACKAGES = "communal_mode_packages"; + /** * These entries are considered common between the personal and the managed profile, * since the managed profile doesn't get to change them.