diff options
author | lithid <long.jeremie@gmail.com> | 2012-09-15 21:33:14 -0400 |
---|---|---|
committer | DvTonder <david.vantonder@gmail.com> | 2012-12-23 08:53:31 -0500 |
commit | 30839125fd18d80787a8b59204065c087927e96a (patch) | |
tree | 24fb138e0d3c30967c77d02496926a96bb6a1696 /res/values | |
parent | b56c1e077931717e81c25d02f84665ae163cb8d0 (diff) | |
download | packages_apps_settings-30839125fd18d80787a8b59204065c087927e96a.zip packages_apps_settings-30839125fd18d80787a8b59204065c087927e96a.tar.gz packages_apps_settings-30839125fd18d80787a8b59204065c087927e96a.tar.bz2 |
Settings: Add setting in security for sms message rate alerts from CM10
If we add a preference to control "sms_outgoing_check_max_count" we can
control the message rate by writing to Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT.
Currently this is null so it defaults to 30 sms messages in a 15 min period.
Creating and writing this preference allows us to control the sms rate interface.
We can also modify timeframe as well.
This was added to security instead of Mms since this isn't just rate limiting the
sms application. This rate limits any application that sends texts.
This also creates a new category called Application Security.
Change-Id: I47a2f8d136a4399ebf5477dbd5bb23d83b5693cf
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/arrays.xml | 34 | ||||
-rw-r--r-- | res/values/strings.xml | 35 |
2 files changed, 46 insertions, 23 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml index a3e6601..3862ae2 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- /* -** ** Copyright 2007 The Android Open Source Project ** ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -76,7 +75,7 @@ <!-- Do not translate. --> <item>1800000</item> </string-array> - + <!-- Display settings. The delay in inactivity before the dream is shown. These are shown in a list dialog. --> <string-array name="dream_timeout_entries"> <item>Never</item> @@ -108,8 +107,8 @@ <!-- Do not translate. --> <item>1800000</item> </string-array> - - <!-- Security settings. The delay after screen is turned off until device locks. + + <!-- Security settings. The delay after screen is turned off until device locks. These are shown in a list dialog. --> <string-array name="lock_after_timeout_entries"> <item>Immediately</item> @@ -144,7 +143,7 @@ <!-- Do not translate. --> <item>1800000</item> </string-array> - + <string-array name="entries_font_size"> <item msgid="6490061470416867723">Small</item> <item msgid="3579015730662088893">Normal</item> @@ -158,7 +157,7 @@ <item>1.15</item> <item>1.30</item> </string-array> - + <!-- TTS settings --> <!-- Default speech rate choices --> @@ -186,6 +185,7 @@ <item>High</item> <item>Very high</item> </string-array> + <!-- Do not translate. --> <string-array name="tts_pitch_values"> <item>50</item> @@ -211,7 +211,6 @@ <item>spa</item> </string-array> - <!-- Wi-Fi settings --> <!-- Match this with the order of NetworkInfo.DetailedState. --> <skip /> @@ -580,7 +579,7 @@ <string-array name="long_press_timeout_selector_titles"> <!-- A title for the option for short long-press timeout [CHAR LIMIT=25] --> <item>Short</item> - <!-- A title for the option for medium long-press timeout [CHAR LIMIT=25] --> + <!-- A title for the option for medium long-press timeout [CHAR LIMIT=25] --> <item>Medium</item> <!-- A title for the option for long long-press timeout [CHAR LIMIT=25] --> <item>Long</item> @@ -1053,8 +1052,8 @@ </string-array> <string-array name="entries_network_widget"> - <item>2G/3G+2G</item> - <item>2G/3G Only</item> + <item>2G/3G+2G</item> + <item>2G/3G Only</item> <item>2G/3G Only/3G+2G</item> </string-array> @@ -1240,5 +1239,20 @@ <item>2</item> </string-array> + <!--- Sms security limit --> + <string-array name="sms_security_check_limit_entries" translatable="false"> + <item>@string/sms_security_check_limit_default</item> + <item>50</item> + <item>100</item> + <item>200</item> + </string-array> + + <string-array name="sms_security_check_limit_values" translatable="false"> + <item>30</item> + <item>50</item> + <item>100</item> + <item>200</item> + </string-array> + <!-- **** CYANOGENMOD EDITS END **** --> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 9726304..f52fd11 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,17 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2007 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. +<!-- +/* +** Copyright 2007 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. +*/ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Strings for Dialog yes button --> @@ -5068,5 +5071,11 @@ <string name="pref_wifi_disable_hdcp_title">Skip HDCP negotiation</string> <string name="pref_wifi_disable_hdcp_summary">Try this option if you can connect but don\'t get any output</string> + <!--- Sms security limit --> + <string name="app_security_title">App security</string> + <string name="sms_security_check_limit_title">SMS message limit</string> + <string name="sms_security_check_limit_summary">Display an alert dialog to prevent applications from sending SMS messages too frequently. Current limit: %d messages in 15 minutes</string> + <string name="sms_security_check_limit_default">30 (Default)</string> + <!-- **** CYANOGENMOD ADDITIONS END **** --> </resources> |