History log of /packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
deb745d6ce5e2315acbd0b1028041ca08cc6fc5d 10-Oct-2013 Jake Hamby <jhamby@google.com> Fix AppOps exception for SMS quick reply feature.

Sending a quick SMS reply to an incoming phone call was failing
with a SecurityException due to new AppOps code. The root cause
was the insert() call in SmsProvider was calling back into itself
using the UID of the caller (com.android.mms) but the package name
for the callee (com.android.phone).

Wrapped the insert() method of SmsProvider with a helper function
to save the Binder identity and restore it on completion. This
allows the quick response to make its own provider queries using
its own UID as well as package name. Read/write security checks
will be performed by the content provider framework based on the
manifest file, before insert() is called.

Bug: 11006277
Change-Id: I4c0c8041a2505c5aad8db9b2dbab5402728f9221
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
1d71463e1c2a4e915a9f4828db6088486f2407c1 18-Sep-2013 Jake Hamby <jhamby@google.com> Fix permission check for reading SMS on UICC.

When accessing SMS stored on UICC via TelephonyProvider, we need to
use the com.android.phone UID for the call to IccSmsInterfaceManager
to avoid a UID mismatch failure in the app ops check. Add code to
SmsProvider to save and restore the original caller identity.
Also set android:multiprocess attribute to false in the manifest so
that the providers don't run inside the caller's process, which
also leads to a security exception.

Bug: 10131077
Change-Id: Ie6d3477b14973632f3706201de91353950359ee0
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
f27792fb80c6f533a250ec75867c9f2351ff9f04 05-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: new ops for reading/writing SMS/MMS.

Change-Id: I17b5154c2eb53cbde9d562fb23a9ce047fe41327
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
5926996da70fff9275e948d1cf8a0f17b52a5e14 09-May-2012 Tom Taylor <tomtaylor@google.com> Thread with no recipients getting created

Bug 6453254

Don't allow a thread to be created with no recipients. Return null so
the situation can be dealt with by the caller.

Change-Id: Idd82ac5967524287e894ecd72b2bc01a1d3f639f
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
167566461cdaa669634e360e6e969fbd58ed16a0 14-Nov-2011 Tom Taylor <tomtaylor@google.com> Manage SIM card messages shows multiple copies of the same message

Bug 5614340
The provider needs to assign each SIM message a unique id.

Change-Id: I9329a0770423fcbb04c5906ec60453ee695fbfff
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
b6bf84c5cd995ae936259265d0aa5fa1f9c6996b 13-Oct-2011 Jeff Brown <jeffbrown@google.com> Remove references to ArrayListCursor which is deprecated.

Change-Id: I2d46932c79883d2601be8531a00ba8dbfd165076
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
dc94679e1de943695cf40297c341bc929ea1b67e 08-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These havent been working since before 1.0.

Change-Id: I2d6874943008b819c987bd5cef0f530eb2283ca3
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
8e5ee782690175e9cfb9a37f600f207b952ba8a6 05-Jan-2010 Mark Wagner <mxw@google.com> search work

1. introduce an FTS3 indexed table called "words"
2. put all sms messages into the words table (done in the SmsProvider's insert).
3. put all part messages which are plain text into the words table (done in the MmsProvider's insert).
4. put triggers on the delete and update for sms and part and update words appropriately.
5. remove the search recents code (mainly commented out) within the mms app.
6. implement a suggest provider which queries the words table for matches.
7. modify the search activity to use the words table rather than a LIKE clause.
8. modify the search activity to use a regular expression (rather than String.indexOf) for
generating the snippet and highlighting the appropriate words within the snippet. NOTE
that originally I wanted to compute the matching words positions using the sql offsets
function but it doesn't work within the slightly complicated query which is used for
doing the search (two joins and a union, etc.)
9. modify the highlighting code within compose message activity to use regular expressions
rather than indexof to do the highlighting.
10. what else did I forget?
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
cef101b274766db4495dd4d657942bfc3c73f912 21-Dec-2009 Tom Taylor <tomtaylor@google.com> Update imports to android-common

Several files were moved to android-common. Update all the references
to import those files from the new location.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
ddf267c20a697f66b8238538fb6ad31507724692 29-Oct-2009 Tom Taylor <tomtaylor@google.com> Add new error code column to SMS
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
20c4dbd1f5a1e8a4a55d57cc4b976fef3541b2a3 22-Oct-2009 Tom Taylor <tomtaylor@google.com> Add a locked column to SIM messages

We need a locked column for the SMS messages we read from the SIM,
otherwise the UI gets a result telling us the message is locked
when querying the cursor for the locked value.
This is part two of three fixes for BC-triaged bug 2205782.

Change-Id: I6682503fc6ec4e65fc75ca57ae4d2c34ff04f6b0
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
52dfa834afbabbb9390d823721c5316d8691027c 09-Sep-2009 Wei Huang <weih@google.com> Temporary fix for bug 2102395: guard against bad contact url.

- this needs to be fixed for real by the Contacts team.

Change-Id: Ibb10ebc51c9f4b6bc63dec609ab14de0e53eea86
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
70ec48c96a2f0820c69f88e395ccdf7c18497aa8 03-Sep-2009 Wei Huang <weih@google.com> tweak logging in SmsProvider.

Change-Id: Ia898c8a09146b4635c31b5adbf8d3baa77567727
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
a48a9665519f98d1e89b24d17726d7a478e575f2 04-Jun-2009 Tom Taylor <tomtaylor@google.com> Add locked column to sms and pdu tables.

Add support for the ability to lock individual messages from getting automatically
deleted by the recycler. A new column was added to both the sms and mms side of the
messaging world.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
6c0ef2476db38e51932975db870a9e6670200f20 01-Jun-2009 Tom Taylor <tomtaylor@google.com> Checkpoint of SMS/MMS Recycler.

The recycler allows a user to turn on setting that'll limit the number
of messages saved per thread. An eventual UI will allow users to lock
messages and prevent them from being deleted. This change adds a couple
of tweaks to be able to query the number of messages per thread id, etc.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
5ff7b6a558cf6d6d6abbd052edcbf461ab4af874 14-Apr-2009 Ficus Kirkpatrick <ficus@android.com> Guarantee that only one SMS draft per thread can ever exist.

This will allow the app to stop checking if a draft exists
before deciding to either update or insert, which will save a
database roundtrip.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
05117fe29888faf8a84d8de02b4986d90b8810b2 02-Apr-2009 Wink Saville <> AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.

Automated import of CL 144245
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
7236c3ad7ff01dd5ece14a2cabbf5ce3a570d793 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
9812a61b6cc6a630b836d3c4d3a1a95ae25e3abb 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
692628d08125876df80f3ad06d7d7e3e7bc94c2a 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
b7e851834b865657944db81476856b2bbc9b7a06 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
fdf470d79a0ad961692c50eac9c956c6ce4c944a 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
62f78e4e0ae991f0df285488a1af382bd5105483 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java
15fe736a6429ed6e4cc0138ce88b241807af207e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/SmsProvider.java