History log of /packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b93ad24b601ddd3c027ce6a4ae83aefbab7b9721 22-Sep-2017 Nikola <nikolalukic@google.com> Notify observers when an MMS message is received.

Bug: 66545068

Test: Build Android with change and verify that when an MMS message
is received, observers to the "content://mms/inbox/" are notified.

Change-Id: I2c24bf859bd8966f0d25ddf78bebc672da2ef34a
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
785f9214b0da4bacf4c78ae90f08c535ab04c5a5 27-Mar-2017 Tom Taylor <tomtaylor@google.com> 36367212, 36366196 Restore MMS attachments from backup file

* Update the TelephonyProvider's backup/restore agent to handle
restoring mms attachments. This change also includes restoring the
original SMIL, and backing up and restoring the "read" flag for both
sms and mms messages. Also, added a "call" method to the MmsSmsProvider
to return a boolean when a restore is in progress.

Test: updated the unit tests to test the new fields. Manually tested
a restore file to verify an mms with image was restored and imported
by bugle correctly.

Bug: 36367212
Bug: 36366196
Change-Id: If78bbe60a922aeb4373d45f9c82fa434806b13d9
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
e6165b4c3ae42936a148dba8b8c25dabcc00cc3b 22-Aug-2016 Andre Furtado <afurtado@google.com> 30481342: Security Vulnerability - TOCTOU in MmsProvider allows access to files as phone (radio) uid am: 5bc7f9682d am: d076dc3024 am: a5612a4a46 am: 30316a95f3
am: 7f17d51459

Change-Id: I0530efb44d4e53013a4633db7c6b7ce5be527d69
7f17d514591cc99ff1ee710df507ea31e9ede2b6 22-Aug-2016 Andre Furtado <afurtado@google.com> 30481342: Security Vulnerability - TOCTOU in MmsProvider allows access to files as phone (radio) uid am: 5bc7f9682d am: d076dc3024 am: a5612a4a46
am: 30316a95f3

Change-Id: Ia294fb4a8b8da9607f22eb56173346360df08b66
5bc7f9682d72c89ba252be6471b2db9b7e7815e3 18-Aug-2016 Andre Furtado <afurtado@google.com> 30481342: Security Vulnerability - TOCTOU in MmsProvider allows access to files as phone (radio) uid

Problem: MmsProvider.openFile validated the current _data column
in the DB and then called ContentProvider.openFileHelper which was again
reading from the DB. A race condition could cause the second DB read to
read an updated, malicious value.

Fix: instead of doing the first DB check and calling
ContentProvider.openFileHelper, we're now just calling
MmsProvider.safeOpenFileHelper which does a single check.

Test: used the POC provided for this incident.

b/30481342

Change-Id: I653129359130b9fae59d4c355320b266c158a698
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
9e175ce473fc59026d13be2d80a551fb4f111ae0 14-Apr-2016 Roman Sorokin <rsorokin@google.com> Make SMS restore robust to device reboots.
am: 2d3a779

* commit '2d3a779b41d5a553c8615a906ee97da29907313e':
Make SMS restore robust to device reboots.

Change-Id: Id6e3f2847d18ccec00ce0cc219d207150413f426
2d3a779b41d5a553c8615a906ee97da29907313e 13-Apr-2016 Roman Sorokin <rsorokin@google.com> Make SMS restore robust to device reboots.

Since we put actual message restore into the separate service it's
possible it will be interrupted by e.g. device reboot. We should
check if there are still files to restore on providers start.

Bug: 28165505
Change-Id: I593a30f0c1a955170a158f2540a542e00d049b17
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
a472d6e3af6083a66b2cc901d15bcc988e42bbca 16-Mar-2016 Ian Rogers <irogers@google.com> Merge "Fix shift that is out of range."
am: fe83837

* commit 'fe838373ad058c38627961773b84fa1a06e13175':
Fix shift that is out of range.
ba1cc5d00b5bbefc8163df43396881fe3be5d877 16-Mar-2016 Ian Rogers <irogers@google.com> Fix shift that is out of range.

Bug detected by error prone.

Change-Id: I2d8c44e0cc1fa1437ff40093b8f1dc0c544ed8b0
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
0b59ce424fca21bc1141ba5a1a9d2aaba42b6408 19-Feb-2016 Ji Yang <yangji@google.com> Update MMS parts(attachment files) path after db upgrade.

BUG: 27198048
Change-Id: I35a6f40146ea5b3a2000df2399fe73b178b47e7b
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
5a3194d943854ec3c2ec5df18a95a5b04ab5efa1 28-Jan-2016 Ji Yang <yangji@google.com> Move all sms tables except raw into credential encrypted
storage.

BUG: 26232405
Change-Id: I478528ed8eea5013c79263d469b50ada44f647bd
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
e583f8598f3013087566542c2286e5bd187934cb 20-Nov-2015 Tom Taylor <tomtaylor@google.com> Support the new ACTION_EXTERNAL_PROVIDER_CHANGE intent

When a change is made to the SmsProvider or MmsProvider by a process
other than the default Sms app, notify the default Sms app of the change
so it can resync.

Change-Id: Ia3885ead436bfaf46c4a61a40e7435172060c785
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
da40d6a30ce5937dea02ad5ca95197568fccc93e 14-Apr-2015 Amith Yamasani <yamasani@google.com> Canonicalize file paths before comparing

Fix for MMS attachment sending errors.

Bug: 20205459
Change-Id: I30ed77ba33fc0a11f9d78c589f7d60d1019830ce
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.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/MmsProvider.java
eaa93e6f42094a2df53de3de002ed859ee04f146 06-Jan-2015 Ye Wen <ywen@google.com> Unify "app_parts" path obtaining in MmsProvider

MmsProvider uses different ways to get "app_parts" directory path in
generating part "_data" path and in checking "_data" path prefix. System
may have a bug of not returning consistent path using different calls
with Context. This fix makes sure we use exactly the same API to get
"app_parts" directory path.

b/18838864

Change-Id: I5da55763c337ca310fe3eaf2f940ed6be1bea125
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.java
3ad9da40b96f27bd441dae1e78a3b7061d4999e3 16-Jan-2014 Tom Taylor <tomtaylor@google.com> MmsProvider throws an exception on unknown column

If the vcard importer is handed a uri to an MMS part, it will crash.
The MmsProvider will throw an exception when it queries for a column
name not in the schema. With this change, the MmsProvider will simply
return a null cursor when queried for an unkonwn column.

Change-Id: I967f4a631d24eb5a43a70d563c2008f555d0aa3c
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
438403eab51611bd92050e64eba56efe00c613da 22-Feb-2013 Tom Taylor <tomtaylor@google.com> Don't allow clients to update or insert _data column data

Bug 8214355

Change-Id: I45c93047ced465277a46c6a33d6ef590ab0bf8bb
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
8168ff8cebcd1b51ef9d97f2a50f9c91ee8aa562 19-Feb-2013 Tom Taylor <tomtaylor@google.com> Android MMS api allows arbitrary file access as the radio user

Bug 8214355

Only allow files in mms's app_parts directory to be opened.
Tested with the code found in the bug, before and after this
change.

Change-Id: Ifce883caf1631d352ae264266614d58d125964bf
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.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/MmsProvider.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/MmsProvider.java
c2db47d0d13883d9817c2e2b9c425d1552c4494f 28-Mar-2012 Tom Taylor <tomtaylor@google.com> Use real filename + ".fl" on drm'd content. Set file permissions.

Bug 5158047

Needed changes for new drm scheme.

Change-Id: I48ec9e435c02a2d2b225aabfc11ae59fad97a902
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java
c40bd51dc08df1c6ee637dd89a5ba70c3a2d7603 30-Sep-2011 Mark Wagner <mxw@google.com> bugfix 5381702 MMS app puts temporary files on sdcard in wrong location

part 3 of this fix; remove this logic from the provider

Change-Id: I2ec21587b37523ddb20e8b3ec645136dc178942b
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.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/MmsProvider.java
e861b4fb73f2bcad381c9d5a5666a05d59db68b5 08-Apr-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ie2616d4bbc9f1f545accbf043176b698e2e7dc3f
21c25bcedfc36ff1ebe6082eef2fb4076fe636ac 16-Jun-2009 Yusuf T. Mobile <yusuf.saib@T-Mobile.com> Fix for Android.com issue 1421:
"The insert method doesn't get a theradID if the thread ID is missing."
http://code.google.com/p/android/issues/detail?id=1421

Change-Id: Iea19f22afd436b17a838314a51af67ec90e327fc
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.java
2914a7ab544c795f9e47cd7bcd44e0c28bd3cdb9 23-Sep-2009 Wei Huang <weih@google.com> add content uri support for opening a file descriptor for storing a temp picture.

Change-Id: I6b765e16540b9a6c5c091d74336852ffee3968af
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.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/MmsProvider.java
15fe736a6429ed6e4cc0138ce88b241807af207e 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/MmsProvider.java