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

Commit 7998fd93 authored by Richard MacGregor's avatar Richard MacGregor
Browse files

Add global setting for disabling screenshare protections

Add global setting that allows disabling screenshare protections to
allow for better bug reports and debugging.

Bug: 320757744
Bug: 316955558
Bug: 316954829
Test: atest SettingsBackupTest
Change-Id: Ibfece2f0335bef22807156aec761d95e5503d347
parent d2556777
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -18160,6 +18160,16 @@ public final class Settings {
        public static final String SHOW_NOTIFICATION_CHANNEL_WARNINGS =
                "show_notification_channel_warnings";
        /**
         * Whether to disable app and notification screen share protections.
         *
         * The value 1 - enable, 0 - disable
         * @hide
         */
        @Readable
        public static final String DISABLE_SCREEN_SHARE_PROTECTIONS_FOR_APPS_AND_NOTIFICATIONS =
                "disable_screen_share_protections_for_apps_and_notifications";
        /**
         * Whether cell is enabled/disabled
         * @hide
+1 −0
Original line number Diff line number Diff line
@@ -723,6 +723,7 @@ message GlobalSettingsProto {
        // encoded as a key=value list separated by commas.
        optional SettingProto smart_suggestions_in_notifications_flags = 5 [ (android.privacy).dest = DEST_AUTOMATIC ];
        optional SettingProto bubbles = 6 [ (android.privacy).dest = DEST_AUTOMATIC ];
        optional SettingProto disable_screen_share_protections_for_apps_and_notifications = 7 [ (android.privacy).dest = DEST_AUTOMATIC ];
    }
    optional Notification notification = 82;

+4 −0
Original line number Diff line number Diff line
@@ -1113,6 +1113,10 @@ class SettingsProtoDumpUtil {
        dumpSetting(s, p,
                Settings.Global.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS,
                GlobalSettingsProto.Notification.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS);
        dumpSetting(s, p,
                Settings.Global.DISABLE_SCREEN_SHARE_PROTECTIONS_FOR_APPS_AND_NOTIFICATIONS,
                GlobalSettingsProto.Notification
                        .DISABLE_SCREEN_SHARE_PROTECTIONS_FOR_APPS_AND_NOTIFICATIONS);
        p.end(notificationToken);

        dumpSetting(s, p,
+1 −0
Original line number Diff line number Diff line
@@ -185,6 +185,7 @@ public class SettingsBackupTest {
                    Settings.Global.DEVELOPMENT_WM_DISPLAY_SETTINGS_PATH,
                    Settings.Global.DEVICE_DEMO_MODE,
                    Settings.Global.DEVICE_IDLE_CONSTANTS,
                    Settings.Global.DISABLE_SCREEN_SHARE_PROTECTIONS_FOR_APPS_AND_NOTIFICATIONS,
                    Settings.Global.DISABLE_WINDOW_BLURS,
                    Settings.Global.BATTERY_SAVER_CONSTANTS,
                    Settings.Global.BATTERY_TIP_CONSTANTS,