History log of /packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86b8a2cfb7558ec500b4de46bac3d873eaf6028f 11-Jun-2015 Ye Wen <ywen@google.com> Dump default SMS app package name

b/21736547

Change-Id: I8e636b720f78ccb187b08a739b18810db84a40b5
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
72f135589e5d705bcac4a3db3019e4d9d2d04d36 10-Mar-2015 Ye Wen <ywen@google.com> Restricted view of SMS/MMS providers (2/2)

Only expose sent/received SMS/MMS and non-wap push MMS messages for
non-default SMS apps, preventing non-default SMS apps to interfere
internal states of default SMS app, like stealing wap push to download
or sending outbox message.

b/19348537

Change-Id: Icec639a01ab8f5cd2d1346b76418ec487979295a
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
72b147363200ff3f0bc467f23579042bd800ff13 20-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
e07acb9f6a77d9753900224a4caefd5a8aec97ee 19-Nov-2014 Ye Wen <ywen@google.com> Make CREATOR columns read-only and auto set them in provider

- If an app (not SYSTEM or PHONE) tries to set CREATOR column when
inserting a message, it will be silently overridden by the true pacakge
name of the caller. Or if it tries to update the column, it will be
sliently dropped.
- Also fixed some PII issues

b/18393308

Change-Id: I4ac739b9a6cb78797f006f17c0eed3eeb64cc65e
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
43f9fb234aabe569b342af78bdaf85effbd85f10 11-Sep-2014 Amith Yamasani <yamasani@google.com> Singleton providers should post change notifs to all users

Potential fix for secondary users not getting content observer
callbacks for sms updates.

Bug: 16681533
Change-Id: I80353680f5da52ca5a23cde7804e9eaab9516f9a
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
82fc72b94a54eb3c70bcfbb1effd9b3a9b775af9 29-Jul-2014 Ye Wen <ywen@google.com> Move archived column from pdu/sms to threads (3/4)

Add new update logic to change threads' archived column value

Change-Id: I24cb9b163471c1daebb767aff342fe588b8cf249
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
b2ce2d37bc6efc0c37d8cee925d3ad65a01ea4bf 28-Jul-2014 Ye Wen <ywen@google.com> MmsService always has WRITE_SMS AppOps permission (2/2)

So we don't need to hard code the check anymore. Revert back to use
AppOps for write permission check as we did in KitKat.

Change-Id: If3a2a7a3a3b53864f73e6023fdd0649d3c2e61c3
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
2f90d9ff29f8821048fde298793dd9b7c9dc8abf 15-Jul-2014 Ye Wen <ywen@google.com> Messaging auto persist switch (3/4)

b/14095333

Change-Id: I77d33a177fadba482c1571b59a10d6ebf1863a43
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
49776410646ba3eb7aef3ec34871a38aa69441c4 10-Jul-2014 Ye Wen <ywen@google.com> New SMS and MMS APIs and semantics (3/4)

New SMS and MMS database columns: archived and creator

b/14095333

Change-Id: I4d79014c12ac622b098c1b7892134ce842f70f83
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
88e83585a8ca800ed1bb1522c44f9e7d5fcdb436 01-Jul-2014 Ye Wen <ywen@google.com> MMS auto persisting (4/4)

Changed permission control for new SMS APIs. Only phone and system UID
are allowed.

b/14095333

Change-Id: I140c0a895b07f72a7840927a1008ea8f7dce8d46
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
cfb8bbdc3932473966d043fbd72b6c067933f2c1 17-Jun-2014 Ye Wen <ywen@google.com> Add SUB_ID columns for SmsProvider and MmsProvider

b/15673719

Change-Id: I0f3d6c3bfaead109edef283ac45d7e5f8c3220b4
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
027ef60275c764a123af94ade00b675dfaf46809 03-Aug-2013 Tom Taylor <tomtaylor@google.com> Merge "addr.msg_id is the foreign key of the pdu._id"
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/MmsSmsProvider.java
15156cd6afcc7ed57ac7be40ef2d32a615e83599 15-Nov-2012 Tom Taylor <tomtaylor@google.com> App crashed as it was moving to foreground and message was received

Bug 7540115

In the MmsSmsProvider, wrap the code that creates a new thread in a transaction.
Creating a new thread requires multiple database operations. It's possible
for the newly created thread to be deleted part of the way through the
operation.

Change-Id: I3cbf8ba4ad3f3f30b513280ac3defc276b4a70a0
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
670c495b6e0489569f60a38a79770dd4ac44500a 06-Nov-2012 whliang <shanji2078@gmail.com> addr.msg_id is the foreign key of the pdu._id

I got a wrong cursor when select by MmsSms.CONTENT_FILTER_BYPHONE_URIļ¼Œthen I found
the source code use the addr._id as the foreign key of the pdu._id, so I fix it

Change-Id: Id6218854b4977ee7ce60c4b199b230679562e0f5
Signed-off-by: whliang <shanji2078@gmail.com>
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
f88d1d6733158144e9e0c87f29b446068edf0507 07-Sep-2012 Tom Taylor <tomtaylor@google.com> Group MMS flickers between white square and received message when initially checking

Bug 7113015

Add a new column in the pdu that keeps track of whether a message is
text-only. The UI can use that flag to decide whether to show the attachment
box or not.

Change-Id: I158dd07d415f24f0200c81f39de6feac03f37f8b
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
4b14c35e9e44d5df2b5340141f2b24bab351c603 02-Jun-2012 Tom Taylor <tomtaylor@google.com> Thread can't be deleted

Bug 6593778

Delete all the messages in a thread and the thread comes back. If you
get a row in the pdu or sms table with an empty thread_id, the query to
delete threads that aren't referenced by any message fails. The query
has to weed out messages with no thread_ids.

Change-Id: I2a2121a27a4d4ce9ed02b8415dc50b0a59623d94
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
3e1cba826743423642635cc7b03abe292470f4c4 11-May-2012 Tom Taylor <tomtaylor@google.com> Android.database.sqlite.SQLiteException when searching words through voice search

Bug 6476357

Mms provider search query would choke on quoted words. Use selection arguments
instead of string building to pass in search string.

Change-Id: Ida45cc0a16366779012c264ffbda021985f01fa6
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.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/MmsSmsProvider.java
b91bcae9fa009787f165591fd7fc4c8f2f2dfd99 03-Feb-2012 Tom Taylor <tomtaylor@google.com> MMS appears after delay in the thread

Bug 5032682

We need to manually insert an item in the pending messages table in order
to speed up sending. Previously, this insert was done by a trigger when
a pdu was moved to the OUTBOX.

Change-Id: I4f848199862729f005073194d5e618ad4908d523
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
9e1fd44679b2de6df6af2c1e8b6bf191e799f4a9 01-Oct-2011 Mark Wagner <mxw@google.com> bugfix 5342861 The search result highlighted result is not seen on the screen for MMS

part 2 of a 2 part fix.

Change-Id: I419ecfbe6441e31cd89e305b89b4bdd0dd5d6651
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
76e665b3042222aa6d65eccb0f84618f387837aa 20-Sep-2011 Mark Wagner <mxw@google.com> bugfix 5264282 Search results are not accurate when the search criteria is a number.

Correct the search queries to not query all columns in the table but only
the indexed words column.

Change-Id: I323ea9dbbdbce9bca259a3f359f32cc94174a88b
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
f008a619299d15bab78b989aef301d97a3930ca3 13-May-2011 Tom Taylor <tomtaylor@google.com> Fix selectionargs

Change use of deprecated functions to valid ones by removing
selectionargs.

Change-Id: Icbf08ac83ffd2535db52aafb263543e2978dadb2
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
ea5c40c18a83bd984da79ecda301bd5a7cd9daa1 18-Nov-2010 Fredrik Roubert <roubert@google.com> Add the field date_sent to keep track of the date a message was sent.

Change-Id: If3dcfe7d3c86454f67dbdd432e54e94ad56c1c67
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
5fbfec929b8db5bf19081b710f073587b566fdf6 12-Jan-2011 Tom Taylor <tomtaylor@google.com> am ba323c85: am 8d960cfe: Merge "Alpha addresses get put in the same thread" into gingerbread

* commit 'ba323c85ca80f032ba178e9c63d448d3b90d971f':
Alpha addresses get put in the same thread
ba323c85ca80f032ba178e9c63d448d3b90d971f 08-Jan-2011 Tom Taylor <tomtaylor@google.com> am 8d960cfe: Merge "Alpha addresses get put in the same thread" into gingerbread

* commit '8d960cfe99129476d87ca0886e56b0717b4a6590':
Alpha addresses get put in the same thread
e8a24ddaa58295f173fbf37fe3c0acb0d8569118 07-Jan-2011 Tom Taylor <tomtaylor@google.com> Alpha addresses get put in the same thread

For alpha addresses that weren't email addresses, the DB query would
use a native phone number comparison function. It would match any alpha
to any alpha. The first incoming alpha address would get added to the
canonical_addresses table and any and all subsequent alpha addresses
would match that first address. With this change, alpha addresses are
compared the same way email addresses are compared. Bug 3332079

Change-Id: Ib48ed1869e83c28f6e0723611b6d251ab7dd86b7
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
9081ab6bd08fa66bac28d65f0ce4fca14b6954a6 28-Dec-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of fc85d2bc to master

Change-Id: I35100d75bceb4ad7513d126e75e14fef521d0623
01c75ba95b875674a83128defc6b267e522db346 24-Nov-2010 Chen Mike <mike.chen@sonyericsson.com> Dont use the default locale when formatting SQL statements

It is not safe to use the default locale when using String.format
to produce SQL statements. Some locales will break the SQL
and as a consequence crash the app.

Change-Id: I2d4eac71a2a33a8fc669b532eef3d9e87f2800c5
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
4023c711aac938a6b6287e93a8245ce09a315e0c 14-Oct-2010 Wink Saville <wink@google.com> am ea59f866: Remove some PII.

Merge commit 'ea59f86662471e682f880b4916ce7588803f5605'

* commit 'ea59f86662471e682f880b4916ce7588803f5605':
Remove some PII.
ea59f86662471e682f880b4916ce7588803f5605 12-Oct-2010 Wink Saville <wink@google.com> Remove some PII.

Change-Id: Ic9c6b3d008808060cbc88922840917d6e5d98c6c
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
6a917909c55d1535f8d5a213a4dadf19bc79b1b8 03-May-2010 Mark Wagner <mxw@google.com> search work

Add a way to go from a message id to a thread id.

Change-Id: I3362155bdb07d7ccf50d3fd3f567a4a7b5c6faf2
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
14595cbe9045755a5aa2bd28989c147c4709268c 08-Apr-2010 Wei Huang <weih@google.com> bug #2438230: add more logging for catching the bug.

- added some optimization for the single recipient case.
- more logging for creating new recipient id and thread id.

Change-Id: Idb46c550179afab5e00b62c53bd04ac77763797b
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
65d532a1d97683fbb391857eceb5b5b86e66a62c 17-Mar-2010 Mark Wagner <mxw@google.com> do not exlucde null address rows in search

Change-Id: Ic97690aa3816b6004c87551064d8260e887bf45f
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
b1bae65bf18dc22762cf7b8210fdad836b3e4ee5 09-Mar-2010 Tom Taylor <tomtaylor@google.com> Remove mms-common lib

Refer to mms in its old location in the framework.

Change-Id: Id2e7fd636be814495c92c7aaf09a11c35ad92218
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
c71e770495e0b4597b4b3d947cbc68a0d35051be 28-Jan-2010 Tom Taylor <tomtaylor@google.com> Remove MMS from the framework

Reference the new mms-common library for MMS stuff that used
to live in the framework.

Change-Id: I79f35fa0ba0f51adbdf386688469318e40688ef6
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.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/MmsSmsProvider.java
9a7ef33bd932bf8a1bbe4423b1746fcb9c540e35 09-Nov-2009 Wei Huang <weih@google.com> am 1ecf192c: bug 2236535: find a way to update the stale canonical_addresses entries with new SMS/MMS number.

Merge commit '1ecf192c60625c5227336430ee36705c13ae06e2' into eclair-mr2

* commit '1ecf192c60625c5227336430ee36705c13ae06e2':
bug 2236535: find a way to update the stale canonical_addresses entries with new SMS/MMS number.
1ecf192c60625c5227336430ee36705c13ae06e2 08-Nov-2009 Wei Huang <weih@google.com> bug 2236535: find a way to update the stale canonical_addresses entries with new SMS/MMS number.

- allow updating the canonical_address with a new number.

Change-Id: Ia91fad4a76d6ea49a23379dae755ec54f61823ab
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.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/MmsSmsProvider.java
c818d636af8c4f3d8a0d332634d1e73a5215d06b 28-Sep-2009 Wei Huang <weih@google.com> bug 2150183: fix SMS address comparison so "foo"=="foo".

- when comparing two identical SMS addresses that are not a phone number (or email address), the loose phone number comparison
in PhoneNumberUtils will return false because it's not meant to compare non phone numbers. Therefore we also need to
add string equal comparison to the sqlite selection statement. The resulting selection is

address='<phoneNumber>' OR PHONE_NUMBERS_EQUAL(address, '<phoneNumber>', ...)

Change-Id: I8fb63d4d270102cb59e901a59eb3e95b2ce9ed72
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
845a9163dffcbd1073930b8b334df27728418201 20-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Use strict phone number comparation algorithm if the config tells the package to do so.

This change must come after the change 25941.

Internal issue id: 1892808
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
a678c85b9456ec4a5aa8034739dee8bc9cb84d57 16-Sep-2009 Mark Wagner <mxw@google.com> check if the address column is null when selecting for search
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
816e934a43bf705835bdb24503a85a14c4861991 04-Sep-2009 Tom Taylor <tomtaylor@google.com> Greatly simplify query

The previous complicated query for finding the first locked message was flaky.
This new query is simple. All the cruft of merging two dissimilar lists has
been removed.

Change-Id: Ieee6f840bbd1c7d75e90aebec5feebed640cc731
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
f0a7f15a4e5ef5a1d9cb5bb509cbbaac80b1297d 01-Sep-2009 Tom Taylor <tomtaylor@google.com> Search for locked messages

Add a uris to search for messages in all threads or in just a single thread.

Change-Id: Ib196677c07e3425946aa7f9a8a875114dc1ad9ae

Conflicts:

src/com/android/providers/telephony/MmsSmsProvider.java
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
87bfe142b5c163e19fb9e60d558bbeb513ca150c 19-Aug-2009 Tom Taylor <tomtaylor@google.com> Update thread count

When deleting all threads, the threads
weren't getting updated because we were excluding threads that had locked messages.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
4f9634e73509c8e974d89ce76f94286bc22e1282 15-Jul-2009 Tom Taylor <tomtaylor@google.com> am b4ac04f7: Add more logging to track down a monkey bug

Merge commit 'b4ac04f7bd9d4f16ec181f368c42f89c96f83f55'

* commit 'b4ac04f7bd9d4f16ec181f368c42f89c96f83f55':
Add more logging to track down a monkey bug
b4ac04f7bd9d4f16ec181f368c42f89c96f83f55 14-Jul-2009 Tom Taylor <tomtaylor@google.com> Add more logging to track down a monkey bug

The monkey is finding a situation where getting or creating a thread id is
failing. Add more logging code to help track down the problem.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
4fd1a80414c5b3e44a45f7fe367a6a0e7e7a8cf7 09-Jul-2009 Tom Taylor <tomtaylor@google.com> am 69e6ffad: Add logging code to getThreadId

Merge commit '69e6ffada415d44c72d908ad9e152da51b190642'

* commit '69e6ffada415d44c72d908ad9e152da51b190642':
Add logging code to getThreadId
69e6ffada415d44c72d908ad9e152da51b190642 09-Jul-2009 Tom Taylor <tomtaylor@google.com> Add logging code to getThreadId

The monkey has found a couple of instances where retrieving or creating a thread id has failed.
Add a logging message to the bottleneck to help us track down what might be going wrong.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
f0a9e90721310bed023a9ff1f176f1b5e05a14f7 20-Jun-2009 Mark Wagner <mxw@google.com> mods to support searching of mms messages
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java
66d373c4797c53207e8f1ea97f3dc5541f390152 08-Jun-2009 Mark Wagner <mxw@google.com> add a "search" uri
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.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/MmsSmsProvider.java
37e4424493bb364eac8ae07c3d5fce52bebf735d 12-May-2009 Ficus Kirkpatrick <ficus@android.com> Add a URI on MmsSmsProvider for getting all canonical addresses at once.
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.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/MmsSmsProvider.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/MmsSmsProvider.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/MmsSmsProvider.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/MmsSmsProvider.java
15fe736a6429ed6e4cc0138ce88b241807af207e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsSmsProvider.java