summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_privacy_guard.pngbin0 -> 1523 bytes
-rw-r--r--res/drawable-hdpi/ic_privacy_guard_off.pngbin0 -> 1810 bytes
-rw-r--r--res/drawable-hdpi/ic_settings_privacy.pngbin0 -> 722 bytes
-rw-r--r--res/drawable-mdpi/ic_privacy_guard.pngbin0 -> 1250 bytes
-rw-r--r--res/drawable-mdpi/ic_privacy_guard_off.pngbin0 -> 1507 bytes
-rw-r--r--res/drawable-mdpi/ic_settings_privacy.pngbin0 -> 515 bytes
-rw-r--r--res/drawable-xhdpi/ic_privacy_guard.pngbin0 -> 1579 bytes
-rw-r--r--res/drawable-xhdpi/ic_privacy_guard_off.pngbin0 -> 1642 bytes
-rw-r--r--res/drawable-xhdpi/ic_settings_privacy.pngbin0 -> 1069 bytes
-rw-r--r--res/drawable-xxhdpi/ic_privacy_guard.pngbin0 -> 1694 bytes
-rw-r--r--res/drawable-xxhdpi/ic_privacy_guard_off.pngbin0 -> 1743 bytes
-rw-r--r--res/drawable-xxhdpi/ic_settings_privacy.pngbin0 -> 1611 bytes
-rw-r--r--res/layout/privacy_guard_manager.xml46
-rw-r--r--res/layout/privacy_guard_manager_list_row.xml49
-rw-r--r--res/menu/privacy_guard_manager.xml29
-rw-r--r--res/values/arrays.xml72
-rw-r--r--res/values/cm_strings.xml21
-rw-r--r--res/xml/dashboard_categories.xml9
-rw-r--r--res/xml/privacy_guard_prefs.xml26
-rw-r--r--res/xml/privacy_settings_cyanogenmod.xml26
20 files changed, 224 insertions, 54 deletions
diff --git a/res/drawable-hdpi/ic_privacy_guard.png b/res/drawable-hdpi/ic_privacy_guard.png
new file mode 100644
index 0000000..0f58fce
--- /dev/null
+++ b/res/drawable-hdpi/ic_privacy_guard.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_privacy_guard_off.png b/res/drawable-hdpi/ic_privacy_guard_off.png
new file mode 100644
index 0000000..f5dce61
--- /dev/null
+++ b/res/drawable-hdpi/ic_privacy_guard_off.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_settings_privacy.png b/res/drawable-hdpi/ic_settings_privacy.png
new file mode 100644
index 0000000..60ceeb8
--- /dev/null
+++ b/res/drawable-hdpi/ic_settings_privacy.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_privacy_guard.png b/res/drawable-mdpi/ic_privacy_guard.png
new file mode 100644
index 0000000..a749b20
--- /dev/null
+++ b/res/drawable-mdpi/ic_privacy_guard.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_privacy_guard_off.png b/res/drawable-mdpi/ic_privacy_guard_off.png
new file mode 100644
index 0000000..8d9db2e
--- /dev/null
+++ b/res/drawable-mdpi/ic_privacy_guard_off.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_settings_privacy.png b/res/drawable-mdpi/ic_settings_privacy.png
new file mode 100644
index 0000000..6fcb431
--- /dev/null
+++ b/res/drawable-mdpi/ic_settings_privacy.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_privacy_guard.png b/res/drawable-xhdpi/ic_privacy_guard.png
new file mode 100644
index 0000000..f7b4a4c
--- /dev/null
+++ b/res/drawable-xhdpi/ic_privacy_guard.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_privacy_guard_off.png b/res/drawable-xhdpi/ic_privacy_guard_off.png
new file mode 100644
index 0000000..6425549
--- /dev/null
+++ b/res/drawable-xhdpi/ic_privacy_guard_off.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_settings_privacy.png b/res/drawable-xhdpi/ic_settings_privacy.png
new file mode 100644
index 0000000..2faa6d5
--- /dev/null
+++ b/res/drawable-xhdpi/ic_settings_privacy.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_privacy_guard.png b/res/drawable-xxhdpi/ic_privacy_guard.png
new file mode 100644
index 0000000..b432ed4
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_privacy_guard.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_privacy_guard_off.png b/res/drawable-xxhdpi/ic_privacy_guard_off.png
new file mode 100644
index 0000000..c1964f4
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_privacy_guard_off.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_settings_privacy.png b/res/drawable-xxhdpi/ic_settings_privacy.png
new file mode 100644
index 0000000..52206b1
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_settings_privacy.png
Binary files differ
diff --git a/res/layout/privacy_guard_manager.xml b/res/layout/privacy_guard_manager.xml
new file mode 100644
index 0000000..98d9ae4
--- /dev/null
+++ b/res/layout/privacy_guard_manager.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 Slimroms Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ <fragment
+ android:id="@+id/privacy_guard_prefs"
+ android:name="com.android.settings.privacyguard.PrivacyGuardPrefs"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="1dp"
+ android:background="@android:color/darker_gray"/>
+ <TextView
+ android:id="@+id/error"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="20dip"
+ android:layout_gravity="center"
+ android:gravity="center_horizontal"
+ android:textColor="@android:color/white"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:visibility="gone" />
+ <ListView android:id="@+id/apps_list"
+ android:drawSelectorOnTop="false"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:clipToPadding="false"
+ android:scrollbarStyle="@*android:integer/preference_fragment_scrollbarStyle" />
+</LinearLayout>
diff --git a/res/layout/privacy_guard_manager_list_row.xml b/res/layout/privacy_guard_manager_list_row.xml
new file mode 100644
index 0000000..eb6a327
--- /dev/null
+++ b/res/layout/privacy_guard_manager_list_row.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 Slimroms Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingTop="8dip"
+ android:paddingBottom="8dip" >
+ <ImageView
+ android:id="@+id/app_icon"
+ android:layout_width="36dip"
+ android:layout_height="36dip"
+ android:layout_marginEnd="8dip"
+ android:layout_gravity="center_vertical"
+ android:scaleType="centerInside"
+ android:contentDescription="@null" />
+ <TextView
+ android:id="@+id/app_title"
+ android:layout_width="0dip"
+ android:layout_gravity="fill_horizontal|center_vertical"
+ android:layout_marginTop="2dip"
+ android:singleLine="true"
+ android:ellipsize="marquee"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textAlignment="viewStart" />
+ <ImageView
+ android:id="@+id/app_privacy_guard_icon"
+ android:layout_width="@android:dimen/app_icon_size"
+ android:layout_height="@android:dimen/app_icon_size"
+ android:layout_gravity="center_vertical"
+ android:scaleType="centerInside"
+ android:contentDescription="@null" />
+</GridLayout>
diff --git a/res/menu/privacy_guard_manager.xml b/res/menu/privacy_guard_manager.xml
new file mode 100644
index 0000000..5e41e46
--- /dev/null
+++ b/res/menu/privacy_guard_manager.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 Slimroms Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/reset"
+ android:showAsAction="always"
+ android:icon="@drawable/ic_settings_backup"
+ android:title="@string/privacy_guard_reset_title" />
+ <item android:id="@+id/show_system_apps"
+ android:title="@string/privacy_guard_manager_show_system_apps"
+ android:checkable="true" />
+ <item android:id="@+id/advanced"
+ android:title="@string/privacy_guard_advanced_settings_title" />
+ <item android:id="@+id/help"
+ android:title="@string/privacy_guard_help_title" />
+</menu>
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index e5f1988..581427e 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -688,60 +688,24 @@
<item>write wallpaper</item>
<item>assist structure</item>
<item>assist screenshot</item>
- </string-array>
-
- <!-- User display names for app ops codes -->
- <string-array name="app_ops_labels">
- <item>Location</item>
- <item>Location</item>
- <item>Location</item>
- <item>Vibrate</item>
- <item>Read contacts</item>
- <item>Modify contacts</item>
- <item>Read call log</item>
- <item>Modify call log</item>
- <item>Read calendar</item>
- <item>Modify calendar</item>
- <item>Location</item>
- <item>Post notification</item>
- <item>Location</item>
- <item>Call phone</item>
- <item>Read SMS/MMS</item>
- <item>Write SMS/MMS</item>
- <item>Receive SMS/MMS</item>
- <item>Receive SMS/MMS</item>
- <item>Receive SMS/MMS</item>
- <item>Receive SMS/MMS</item>
- <item>Send SMS/MMS</item>
- <item>Read SMS/MMS</item>
- <item>Write SMS/MMS</item>
- <item>Modify settings</item>
- <item>Draw on top</item>
- <item>Access notifications</item>
- <item>Camera</item>
- <item>Record audio</item>
- <item>Play audio</item>
- <item>Read clipboard</item>
- <item>Modify clipboard</item>
- <item>Media buttons</item>
- <item>Audio focus</item>
- <item>Master volume</item>
- <item>Voice volume</item>
- <item>Ring volume</item>
- <item>Media volume</item>
- <item>Alarm volume</item>
- <item>Notification volume</item>
- <item>Bluetooth volume</item>
- <item>Keep awake</item>
- <item>Location</item>
- <item>Location</item>
- <item>Get usage stats</item>
- <item>Mute/unmute microphone</item>
- <item>Project media</item>
- <item>Activate VPN</item>
- <item>Write wallpaper</item>
- <item>Assist structure</item>
- <item>Assist screenshot</item>
+ <item>read phone state</item>
+ <item>add voicemail</item>
+ <item>use sip</item>
+ <item>make call</item>
+ <item>use fingerprint</item>
+ <item>use body sensors</item>
+ <item>read cell broadcast</item>
+ <item>mock location</item>
+ <item>read external storage</item>
+ <item>write external storage</item>
+ <item>turn screen on</item>
+ <item>get accounts</item>
+ <item>change wifi</item>
+ <item>toggle bluetooth</item>
+ <item>start at boot</item>
+ <item>toggle nfc</item>
+ <item>change mobile data</item>
+ <item>superuser</item>
</string-array>
<!-- Titles for the list of long press timeout options. -->
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index a65dbd5..281f8e9 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -620,4 +620,25 @@
<string name="keep_screen_on_never">Never</string>
<string name="keep_screen_on_debugging">While USB debugging</string>
<string name="keep_screen_on_charging">While charging</string>
+
+ <!-- Privacy Settings Header item -->
+ <string name="privacy_settings_cyanogenmod_title">Privacy</string>
+ <string name="privacy_settings_cyanogenmod_category" translatable="false">CyanogenMod</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_dlg_system_app_text">When enabling Privacy Guard for a built-in app, the app will not be able to access or provide personal data. This may cause other apps to misbehave.</string>
+ <string name="privacy_guard_default_title">Enabled by default</string>
+ <string name="privacy_guard_default_summary">Enable by default for newly-installed apps</string>
+ <string name="privacy_guard_manager_title">Privacy Guard</string>
+ <string name="privacy_guard_manager_summary">Manage which apps have access to your personal data</string>
+ <string name="privacy_guard_no_user_apps">No apps are installed</string>
+ <string name="privacy_guard_help_title">Help</string>
+ <string name="privacy_guard_reset_title">Reset</string>
+ <string name="privacy_guard_reset_text">Reset permissions?</string>
+ <string name="privacy_guard_help_text">In this screen you can choose which apps Privacy Guard should be active for by simply tapping on them. Selected apps will not be able to access your personal data such as contacts, messages or call logs. Long pressing an app\'s entry opens its app details screen.\n\nBuilt-in apps are not shown by default but can be revealed by selecting the respective menu option.</string>
+ <string name="privacy_guard_manager_show_system_apps">Show built-in apps</string>
+ <string name="privacy_guard_advanced_settings_title">Advanced</string>
</resources>
diff --git a/res/xml/dashboard_categories.xml b/res/xml/dashboard_categories.xml
index b730c16..db62950 100644
--- a/res/xml/dashboard_categories.xml
+++ b/res/xml/dashboard_categories.xml
@@ -227,6 +227,15 @@
android:icon="@drawable/ic_settings_security"
/>
+ <!-- CyanogenMod Privacy Settings -->
+ <!-- This is the 'real' Privacy items and includes Privacy Guard, Blacklist & WhisperPush -->
+ <dashboard-tile
+ android:id="@+id/privacy_settings_cyanogenmod"
+ android:title="@string/privacy_settings_cyanogenmod_title"
+ android:fragment="com.android.settings.cyanogenmod.PrivacySettings"
+ android:icon="@drawable/ic_settings_privacy"
+ />
+
<!-- Account -->
<dashboard-tile
android:id="@+id/account_settings"
diff --git a/res/xml/privacy_guard_prefs.xml b/res/xml/privacy_guard_prefs.xml
new file mode 100644
index 0000000..2cc82c1
--- /dev/null
+++ b/res/xml/privacy_guard_prefs.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 Slimroms Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen
+ xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <CheckBoxPreference
+ android:key="privacy_guard_default"
+ android:title="@string/privacy_guard_default_title"
+ android:summary="@string/privacy_guard_default_summary"
+ android:persistent="false" />
+
+</PreferenceScreen>
diff --git a/res/xml/privacy_settings_cyanogenmod.xml b/res/xml/privacy_settings_cyanogenmod.xml
new file mode 100644
index 0000000..b9a361d
--- /dev/null
+++ b/res/xml/privacy_settings_cyanogenmod.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2009-2011 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ android:title="@string/privacy_settings_title">
+
+ <Preference
+ android:fragment="com.android.settings.privacyguard.PrivacyGuardManager"
+ android:key="privacy_guard_manager"
+ android:summary="@string/privacy_guard_manager_summary"
+ android:title="@string/privacy_guard_manager_title" />
+
+</PreferenceScreen>