summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-11-29 14:43:07 -0800
committerJake Hamby <jhamby@google.com>2012-11-29 14:47:00 -0800
commite7fd4f7253d22528de63bb3f0fa1f9f9ca879a86 (patch)
tree832cbe59256ce602e5f80b96e4eee492df649dcc
parentd48f14fc02114e90c8212cf6302aae4793491c42 (diff)
downloadframeworks_opt_telephony-e7fd4f7253d22528de63bb3f0fa1f9f9ca879a86.zip
frameworks_opt_telephony-e7fd4f7253d22528de63bb3f0fa1f9f9ca879a86.tar.gz
frameworks_opt_telephony-e7fd4f7253d22528de63bb3f0fa1f9f9ca879a86.tar.bz2
Raise threshold for detecting excessive SMS usage.
Raise threshold for detecting excessive SMS usage so that the user is warned when an app tries to send 30 or more messages in 1 minute, rather than 30 messages in 30 minutes. This will be much less likely to trigger for legitimate SMS usage, while still protecting against buggy or malicious SMS apps that try to send SMS's continuously. Bug: 7212322 Change-Id: I97078f96fdb8584cdb3ccc830000de9a534044c0
-rw-r--r--src/java/com/android/internal/telephony/SmsUsageMonitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/android/internal/telephony/SmsUsageMonitor.java b/src/java/com/android/internal/telephony/SmsUsageMonitor.java
index 0032881..c76987e 100644
--- a/src/java/com/android/internal/telephony/SmsUsageMonitor.java
+++ b/src/java/com/android/internal/telephony/SmsUsageMonitor.java
@@ -72,7 +72,7 @@ public class SmsUsageMonitor {
private static final String SHORT_CODE_PATH = "/data/misc/sms/codes";
/** Default checking period for SMS sent without user permission. */
- private static final int DEFAULT_SMS_CHECK_PERIOD = 1800000; // 30 minutes
+ private static final int DEFAULT_SMS_CHECK_PERIOD = 60000; // 1 minute
/** Default number of SMS sent in checking period without user permission. */
private static final int DEFAULT_SMS_MAX_COUNT = 30;