Cherish:Add application downgrade feature and window ignore secure feature

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
LibXZR
2022-04-23 15:51:35 +07:00
committed by Hưng Phan
parent 57867f8e99
commit ca2b51a603
3 changed files with 26 additions and 0 deletions

View File

@@ -671,4 +671,10 @@
<string name="notification_material_dismiss_button_summary">Thay thế xóa tất cả văn bản thông báo bằng nút nổi</string> <string name="notification_material_dismiss_button_summary">Thay thế xóa tất cả văn bản thông báo bằng nút nổi</string>
<string name="clearall_style_title">Các kiểu xóa tất cả nút thông báo</string> <string name="clearall_style_title">Các kiểu xóa tất cả nút thông báo</string>
<string name="clearall_bgstyle_title">Các kiểu nền xóa tất cả nút thông báo</string> <string name="clearall_bgstyle_title">Các kiểu nền xóa tất cả nút thông báo</string>
<!-- Laboratory - Application downgrade -->
<string name="laboratory_app_downgrade_title">Cho phép hạ cấp ứng dụng</string>
<string name="laboratory_app_downgrade_summary">Điều này cho phép bạn hạ cấp các ứng dụng. Lưu ý rằng điều này có thể dẫn đến sự cố và hỏng dữ liệu.</string>
<!-- Laboratory - Ignore window secure -->
<string name="laboratory_ignore_window_secure_title">Bỏ qua cờ bảo mật cửa sổ</string>
<string name="laboratory_ignore_window_secure_summary">Điều này loại bỏ các ảnh chụp màn hình và giới hạn ghi lại màn hình cho tất cả các ứng dụng. Thông thường, các ứng dụng đặc biệt được thay thế bằng các vùng đen trong hồ sơ. Điều này có thể thuận tiện trong một số trường hợp nhưng có thể dẫn đến rò rỉ quyền riêng tư. Sau khi thay đổi công tắc này, bạn có thể phải khởi động lại ứng dụng để thay đổi có hiệu lực.</string>
</resources> </resources>

View File

@@ -780,4 +780,12 @@
<string name="notification_material_dismiss_button_summary">Replace clear all notification text with floating button</string> <string name="notification_material_dismiss_button_summary">Replace clear all notification text with floating button</string>
<string name="clearall_style_title">Clear all notification button style</string> <string name="clearall_style_title">Clear all notification button style</string>
<string name="clearall_bgstyle_title">Clear all notification button background</string> <string name="clearall_bgstyle_title">Clear all notification button background</string>
<!-- Laboratory - Application downgrade -->
<string name="laboratory_app_downgrade_title">Allow application downgrade</string>
<string name="laboratory_app_downgrade_summary">This allows you to downgrade applications. Note that this may lead to crashes and data corruption.</string>
<!-- Laboratory - Ignore window secure -->
<string name="laboratory_ignore_window_secure_title">Ignore window secure flags</string>
<string name="laboratory_ignore_window_secure_summary">This removes the screenshots and screenrecords limits for all applications. Normally, special applications are replaced with black areas in records. This can be convenient in some cases but may lead to privacy leaks. After changing this toggle, you may need to restart applications for the change to take effect.</string>
</resources> </resources>

View File

@@ -24,6 +24,18 @@
android:summary="@string/charging_animation_summary" android:summary="@string/charging_animation_summary"
android:defaultValue="false" /> android:defaultValue="false" />
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="window_ignore_secure"
android:title="@string/laboratory_ignore_window_secure_title"
android:summary="@string/laboratory_ignore_window_secure_summary"
android:defaultValue="false"/>
<com.cherish.settings.preferences.SecureSettingSwitchPreference
android:key="pm_downgrade_allowed"
android:title="@string/laboratory_app_downgrade_title"
android:summary="@string/laboratory_app_downgrade_summary"
android:defaultValue="false"/>
<!-- Gaming mode --> <!-- Gaming mode -->
<Preference <Preference
android:key="gaming_mode" android:key="gaming_mode"