History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/AppSmsManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
226f2f36139db0d9e29d1855e96993fc9f4653da 21-Jul-2017 fionaxu <fionaxu@google.com> handle NPE for findAppRequestInfoSmsIntentLocked

Bug: 63797078
Test: Manual
Change-Id: I06181f7ce30585d091f5ecedce8107cfc75d9dd2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/AppSmsManager.java
b4a28109bedc71afa5465247a86473a86d4b31fa 19-Nov-2016 Chad Brubaker <cbrubaker@google.com> Add single use App specific incoming SMSes

This allows applications to request that an upcoming incoming SMS be
routed directly to the calling application and to do so without
needing the RECEIVE_SMS permission.

This is especially important for ephemeral applications which we do not
want to have the ability to get the RECEIVE_SMS permission but do want
to support SMS based phone number verification. Ephemeral apps can use
this API to receive and SMS from their backend but will not be able to
access other SMSes on the device.

This is done by providing the app a token which when included in a
subsequent SMS message causes the application provided PendingIntent to
be sent with the SMS message data attached.

Test: Verified that an SMS containing the code is routed to the app.
Test: runtest --path GsmInboundHandlerTest.java
Test: cts-tradefed run cts -m CtsPermission2TestCases

Bug: 33047670
Change-Id: I7d2d259f09370bc8fac90dc5654231df4edd7e85
/frameworks/opt/telephony/src/java/com/android/internal/telephony/AppSmsManager.java