History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c67761d00a25bd095364e3ff4e4cb8e88b2e974c 13-Oct-2013 David Braun <dabraun@google.com> Make SmsApplication checks more defensive

When SmsApplication::getApplication is called it will check to see if the
configured default SMS app and the phone package have the needed app ops
to work properly. If the call was made from a privilidged caller where
updateIfNeeded == true then the issue will be corrected, if the call was
made from an insecure caller we will return null indicating no default SMS
app which will cause client apps to know that they are not properly set
as the default SMS app. Either way we log an error.

When SmsApplication::setDefaultApplication is called we will ensure that
even if the previous app is no longer enabled or no longer set up as a
valid SMS app, we will still revoke it's OP_WRITE_SMS permission.

Bug: 11071837 Hangouts on KLP lost the WRITE_SMS permission
Change-Id: Ifea39a3d63e4ec3a30a6a1fa5834878dcc9ccfa0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
29569c31ed24dd8f48be3f898047d4d7b5665052 05-Oct-2013 David Braun <dabraun@google.com> Do not allow default SMS application to be set or get on non-phone devices

Bug: 11072894 People app should not launch into default SMS app on tablets
Change-Id: I9cedf3840f46bbc135f535b60659e5527f79a5aa
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
041cfe21bd66c8cb002435e7dc54177db2e927aa 25-Sep-2013 David Braun <dabraun@google.com> Update the requirements for being an SMS app in KLP

SMS applications need to handle repsond-via-message (for rejecting a phone
call with an SMS message) and SENDTO with the smsto Uri scheme so that
contact applications can direct the user to the right app. This change also
adds permission requirements for the existing intents that SMS apps
implement.

Bug: 10870624 System should direct "SENDTO" intent with "sms" and "mms" schemes to the default SMS app
Bug: 10818880 Telephony needs to direct RESPOND_VIA_MESSAGE intent only to the default SMS app
Change-Id: I373268bb694f155fb08e2864ae86af345a85c4ff
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
9c9341ecba5312a4a5be5f9fee3ffe1b582b65ce 20-Sep-2013 David Braun <dabraun@google.com> Add config setting for default sms app.

Different devices can have different default SMS apps.

Bug: 10818725 Allow OEM to specify or override a default SMS app (package)
Change-Id: I11c9832d2246677231e6a54cb03eb76650c85c98
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java
5c3b6658d82f3af57161d5a34385dd95ea0f1abb 16-Sep-2013 David Braun <dabraun@google.com> Implement new method for handling SMS/MMS on the platform

Multi project change:
The changes in this project implement the actual change in the SMS related
intent behavior (defining and using the new events).

Bug: 10449618
Change-Id: Ia707ed561d89428db78203a2ed54504d867a3e43
/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java