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

Commit 4446ca6f authored by yuemingw's avatar yuemingw Committed by Yueming Wang
Browse files

Add a secure settings for cross profile calendar feature.

A toggle will be added in Settings -> Work profile settings for user
to control this setting.

Bug: 118445542
Test: .manual
Change-Id: If8b882dd101688f35fb117d83a801b5c80aab367
parent 2b2a6f4c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7966,6 +7966,14 @@ public final class Settings {
        public static final String MANAGED_PROFILE_CONTACT_REMOTE_SEARCH =
                "managed_profile_contact_remote_search";
        /**
         * Whether parent profile can access remote calendar data in managed profile.
         *
         * @hide
         */
        public static final String CROSS_PROFILE_CALENDAR_ENABLED =
                "cross_profile_calendar_enabled";
        /**
         * Whether or not the automatic storage manager is enabled and should run on the device.
         *
+2 −1
Original line number Diff line number Diff line
@@ -661,7 +661,8 @@ public class SettingsBackupTest {
                 Settings.Secure.SUPPRESS_AUTO_BATTERY_SAVER_SUGGESTION,
                 Settings.Secure.PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE,
                 Settings.Secure.FLASHLIGHT_AVAILABLE,
                 Settings.Secure.FLASHLIGHT_ENABLED);
                 Settings.Secure.FLASHLIGHT_ENABLED,
                 Settings.Secure.CROSS_PROFILE_CALENDAR_ENABLED);

    @Test
    public void systemSettingsBackedUpOrBlacklisted() {