diff options
author | Steve Kondik <shade@chemlab.org> | 2013-06-11 22:46:00 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-06-24 11:50:46 -0700 |
commit | 855a3fcab6da25b84e82af767a1d1afb7106a827 (patch) | |
tree | 6e57ad1ffb8b6078d3992a606367f48f7e46fba6 /res | |
parent | 4c564f53ad3c31267703457b771b5da12f6c88fe (diff) | |
download | packages_apps_settings-855a3fcab6da25b84e82af767a1d1afb7106a827.zip packages_apps_settings-855a3fcab6da25b84e82af767a1d1afb7106a827.tar.gz packages_apps_settings-855a3fcab6da25b84e82af767a1d1afb7106a827.tar.bz2 |
settings: Privacy Guard support
* Add toggle to InstalledAppDetails to enable/disable privacy guard flag on
a per-application basis.
* Add toggle to enable privacy guard by default for applications.
Change-Id: If03aa5319c520b6c4a78887f0f46ef1443ddaa83
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/installed_app_details.xml | 8 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 7 | ||||
-rw-r--r-- | res/values/strings.xml | 4 | ||||
-rw-r--r-- | res/xml/security_settings_app_cyanogenmod.xml | 6 |
4 files changed, 23 insertions, 2 deletions
diff --git a/res/layout/installed_app_details.xml b/res/layout/installed_app_details.xml index b7f8f15..577cfd4 100644 --- a/res/layout/installed_app_details.xml +++ b/res/layout/installed_app_details.xml @@ -62,6 +62,14 @@ android:layout_marginTop="4dip" android:text="@string/app_notifications_switch_label" /> + <!-- Enable Privacy Guard for an application --> + <CheckBox android:id="@+id/privacy_guard_switch" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="start" + android:layout_marginTop="4dip" + android:text="@string/privacy_guard_switch_label" /> + </LinearLayout> <TextView diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 80eb7a4..9396d75 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -959,4 +959,11 @@ two in order to insert additional control points. \'Remove\' deletes the selecte <!-- Delete apn confirmation dialog message --> <string name="confirm_delete_apn">The APN will be deleted.</string> + <!-- Privacy Guard --> + <string name="privacy_guard_switch_label">Enable Privacy Guard</string> + <string name="privacy_guard_dlg_title">Enable Privacy Guard?</string> + <string name="privacy_guard_dlg_text">When Privacy Guard is enabled, the app will not be able to access personal data such as contacts, messages, or call logs.</string> + <string name="privacy_guard_default_title">Privacy Guard</string> + <string name="privacy_guard_default_summary">Enable Privacy Guard by default for newly-installed apps</string> + </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index edde20f..912782d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2550,7 +2550,8 @@ <li>Disabled apps</li>\n <li>Disabled app notifications</li>\n <li>Default applications for actions</li>\n - <li>Background data restrictions for apps</li>\n\n + <li>Background data restrictions for apps</li>\n + <li>Privacy guard</li>\n\n You will not lose any app data.</string> <!-- [CHAR LIMIT=25] Manage applications screen, menu item. Confirmation button of dialog to confirm resetting user's app preferences. --> <string name="reset_app_preferences_button">Reset apps</string> @@ -2695,7 +2696,6 @@ <string name="app_disable_notifications_dlg_text"> If you turn off notifications for this app, you may miss important alerts and updates. </string> - <!-- [CHAR LIMIT=25] Services settings screen, setting option name for the user to go to the screen to view app storage use --> <string name="storageuse_settings_title">Storage use</string> <!-- Services settings screen, setting option summary for the user to go to the screen to app storage use --> diff --git a/res/xml/security_settings_app_cyanogenmod.xml b/res/xml/security_settings_app_cyanogenmod.xml index 8aaddcd..fbaf10b 100644 --- a/res/xml/security_settings_app_cyanogenmod.xml +++ b/res/xml/security_settings_app_cyanogenmod.xml @@ -21,6 +21,12 @@ android:key="app_security" android:title="@string/app_security_title"> + <CheckBoxPreference + android:key="privacy_guard_default" + android:title="@string/privacy_guard_default_title" + android:summary="@string/privacy_guard_default_summary" + android:persistent="false" /> + <ListPreference android:key="sms_security_check_limit" android:dialogTitle="@string/sms_security_check_limit_title" |