Settings: Allow to hide screen capture status from apps [2/2]

* Allow to hide screen capture detection from privacy invasive apps
* This feature will be extended to screenrecord
  in the future release of Android (A15)

Change-Id: I82989e03b5e181a8a3fcf797a27a70bfa5fd06d1
Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
This commit is contained in:
someone5678
2024-05-21 10:13:17 -04:00
committed by Joey
parent daf89d8b00
commit 84b745ed00
3 changed files with 17 additions and 1 deletions

View File

@@ -189,4 +189,8 @@
<!-- Unlimit screenrecord --> <!-- Unlimit screenrecord -->
<string name="unlimit_screenrecord_title">Unlimit screenrecord</string> <string name="unlimit_screenrecord_title">Unlimit screenrecord</string>
<string name="unlimit_screenrecord_summary">Remove the 15GiB file size limit\nMay result in a larger than needed output file</string> <string name="unlimit_screenrecord_summary">Remove the 15GiB file size limit\nMay result in a larger than needed output file</string>
<!-- Hide screen capture status -->
<string name="hide_screen_capture_status_title">Hide screen capture status</string>
<string name="hide_screen_capture_status_summary">Hide screen capture and screen record status from all applications. Can be convenient in some cases but may lead to privacy leaks. Need to restart applications for the change to take effect.</string>
</resources> </resources>

View File

@@ -238,6 +238,11 @@
android:fragment="com.android.settings.security.MemtagPage" android:fragment="com.android.settings.security.MemtagPage"
settings:controller="com.android.settings.security.MemtagPagePreferenceController" /> settings:controller="com.android.settings.security.MemtagPagePreferenceController" />
<org.evolution.settings.preferences.GlobalSettingSwitchPreference
android:order="95"
android:key="hide_screen_capture_status"
android:title="@string/hide_screen_capture_status_title"
android:summary="@string/hide_screen_capture_status_summary"
android:defaultValue="false"/>
</PreferenceScreen> </PreferenceScreen>

View File

@@ -124,6 +124,13 @@
android:fragment="com.android.settings.security.MemtagPage" android:fragment="com.android.settings.security.MemtagPage"
settings:controller="com.android.settings.security.MemtagPagePreferenceController" /> settings:controller="com.android.settings.security.MemtagPagePreferenceController" />
<org.evolution.settings.preferences.GlobalSettingSwitchPreference
android:order="95"
android:key="hide_screen_capture_status"
android:title="@string/hide_screen_capture_status_title"
android:summary="@string/hide_screen_capture_status_summary"
android:defaultValue="false"/>
<!-- work profile security section --> <!-- work profile security section -->
<PreferenceCategory <PreferenceCategory
android:order="310" android:order="310"