History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bfda9080cab9a819fc48bdb97ef70911016a0f21 08-May-2015 Wojciech Staszkiewicz <staszkiewicz@google.com> Pass charset to XmlPullParser.setInput instead of null

Passing null to XmlPullParser.setInput forces it to do additional
work, which can be easily avoided if we know the charset beforehand.

bug: b/20849543

Change-Id: I4f8833aa1583e6e5b0b1c698dedcb5474d3b95d2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
f323afdb70b83e0c851ced2af7594b20412542c3 10-Feb-2015 Shishir Agrawal <shishir@google.com> SmsSenderCallback: Run the callback with the phone UID.

The SmsSenderCallback needs to run as the phone UID because of checks that
ensure only the messaging app or phone process can run that code.

Also modifies SmsUsageMonitor to allow phone process to make calls.

Bug: 19302541
Change-Id: Ic6b8141fbf15f42696e9b86d3c599ef2ec4ebd1c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
cbaa45bbf2cab852b6c9c3a887e9f803d4e857ea 23-Feb-2013 Wink Saville <wink@google.com> Clean up

- Add @Overrides where needed.
- Update javadoc comments
- Remove extra semi-colons
- Rename DataConnection.java to DataConnectionBase.java
- Rename GsmDataConnection.java to DataConnection.java
- Add defaults to switch statements
- Remove/fix most "if (false)" statements. Fixed by using a CONSTANT
- Fix hidden variables by hoisting to base class or renaming
- Tweak some debug output

Change-Id: If38de2fdeaacafbf40cdfd7f84dc5c52030ba2a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
5109e89a509a890573849dfacf33d955f12a2021 30-Nov-2012 Jake Hamby <jhamby@google.com> am 7a48d5f4: am fd70b976: am e7fd4f72: Raise threshold for detecting excessive SMS usage.

* commit '7a48d5f494bd1ac8047adda1e3a691ec4ef7e89b':
Raise threshold for detecting excessive SMS usage.
e7fd4f7253d22528de63bb3f0fa1f9f9ca879a86 29-Nov-2012 Jake Hamby <jhamby@google.com> 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
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
99c2e1d6749cfad2a8ca94a47857d8c3bfc09454 27-Nov-2012 Wink Saville <wink@google.com> Use Rlog instead of Log.

Change-Id: I2f44193b294513e743526e5c163e7d9a45308b28
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
58c8356d4b119d4e9c0b6fe73526f4daca1112ec 04-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Change the dir used for the sms policy.

The dir being used didn't exist (at least on mako) so changed to /data/misc/sms
which is used for other sms-y purposes (sms short code data) and exists.

bug:7287473
Change-Id: Idd952fabc2ee40c5d25db2da79c03ad302defa72
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
10270d2586e2d940dea23b19f6ad733f702609be 03-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> Fix bug in subsequent premium-sms detections.

bug:fix_7273572
Change-Id: Ia51989fb417f5394b9a86d0dd8109671b2ee73ab
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
81ddb888952763b5eb7a4a38fb293fc86b897968 01-Oct-2012 Robert Greenwalt <rgreenwalt@google.com> fallback to res-based premium-sms detection info

If a device doesn't yet have or will never have the gservices-based
updatable premium-sms data, we should have a reasonable fallback.
Prepopulate with an xml resource.

bug:7254595
Change-Id: I065832bfffb46faba35054a7cdf05000ed14eb4a
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
a7700794b7fbe667e87d72d3117ae3a4d2501313 25-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Use a gservices provided file for premium-sms data

Allows simple full-file replacement of the data rather than trying to send
country specific data to different devices.
bug:7221402

Change-Id: Ibdac97b39b66e01e62c845fb9c6732fafd99f1c9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
ee7b6094d4f3d4c641e54246aec8f61349d6e9d0 22-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Add gservices-controllable rules policy.

Allows using SIM country, network country or the most restrictive of both.
bug:7205426

Change-Id: I4f7ec6ef884d8cc3665fe60290c167740f17d9e7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
4658a1a8c23111d5cc89feb040ce547a7b65dfb0 06-Sep-2012 Jake Hamby <jhamby@google.com> Add support for per-package policy for sending premium SMS.

The default behavior for sending a message to a premium SMS
short code (or suspected premium SMS number) is to ask the user for
confirmation. Enable the user to set a default policy ("remember this
choice" checkbox) to always/never allow the app to send SMS to
premium short codes in the future. The policy can be changed by
the Settings app in the app info screen.

Bug: 5513975
Change-Id: I82731bbc6631ac79b1b5d1d9b1f96c7100ab20cf
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java
0825495a331bb44df395a0cdb79fab85e68db5d5 12-Jul-2012 Wink Saville <wink@google.com> Create telephony-common

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: I32cbb5eec1fa239c1587e055c8f7ef4fc48fb62c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsUsageMonitor.java