1. 20 Nov, 2014 1 commit
    • Ye Wen's avatar
      Make CREATOR columns read-only and auto set them in provider · e07acb9f
      Ye Wen authored
      - 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
      e07acb9f
  2. 17 Sep, 2014 1 commit
  3. 11 Sep, 2014 1 commit
  4. 28 Jul, 2014 1 commit
  5. 16 Jul, 2014 1 commit
  6. 12 Jul, 2014 1 commit
  7. 01 Jul, 2014 1 commit
    • Ye Wen's avatar
      MMS auto persisting (4/4) · 88e83585
      Ye Wen authored
      Changed permission control for new SMS APIs. Only phone and system UID
      are allowed.
      
      b/14095333
      
      Change-Id: I140c0a895b07f72a7840927a1008ea8f7dce8d46
      88e83585
  8. 17 Jun, 2014 1 commit
  9. 10 Oct, 2013 1 commit
    • Jake Hamby's avatar
      Fix AppOps exception for SMS quick reply feature. · deb745d6
      Jake Hamby authored
      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
      deb745d6
  10. 18 Sep, 2013 1 commit
    • Jake Hamby's avatar
      Fix permission check for reading SMS on UICC. · 1d71463e
      Jake Hamby authored
      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
      1d71463e
  11. 05 Feb, 2013 1 commit
  12. 09 May, 2012 1 commit
    • Tom Taylor's avatar
      Thread with no recipients getting created · 5926996d
      Tom Taylor authored
      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
      5926996d
  13. 14 Nov, 2011 1 commit
  14. 13 Oct, 2011 1 commit
  15. 08 Apr, 2011 1 commit
  16. 14 Jan, 2010 1 commit
    • Mark Wagner's avatar
      search work · 8e5ee782
      Mark Wagner authored
      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?
      8e5ee782
  17. 21 Dec, 2009 1 commit
  18. 13 Nov, 2009 1 commit
  19. 29 Oct, 2009 1 commit
  20. 22 Oct, 2009 1 commit
    • Tom Taylor's avatar
      Add a locked column to SIM messages · 20c4dbd1
      Tom Taylor authored
      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
      20c4dbd1
  21. 08 Sep, 2009 1 commit
  22. 03 Sep, 2009 1 commit
  23. 04 Jun, 2009 1 commit
    • Tom Taylor's avatar
      Add locked column to sms and pdu tables. · a48a9665
      Tom Taylor authored
      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.
      a48a9665
  24. 01 Jun, 2009 1 commit
    • Tom Taylor's avatar
      Checkpoint of SMS/MMS Recycler. · 6c0ef247
      Tom Taylor authored
      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.
      6c0ef247
  25. 14 Apr, 2009 1 commit
  26. 02 Apr, 2009 2 commits
  27. 04 Mar, 2009 2 commits
  28. 03 Mar, 2009 2 commits
  29. 20 Feb, 2009 1 commit
  30. 18 Dec, 2008 1 commit
  31. 21 Oct, 2008 1 commit