History log of /frameworks/base/telephony/java/android/telephony/SmsManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a4a4c8aea7f7a16717eb758d17e3899911813008 16-Mar-2018 Jeff Davidson <jpd@google.com> Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps.

Bug: 70177947
Bug: 70041899
Test: Flash / boot; TreeHugger; Unit/CTS tests in topic
Change-Id: I4061becb1d7ceaa58d84e4e3568c1b6e63cfc8d1
/frameworks/base/telephony/java/android/telephony/SmsManager.java
85ef115e72b6cd1c6c1d16b710eb80aa21ec4ce8 27-Feb-2018 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Add support for sending message with priority, link control and validity period options" am: b103f9309b am: bb29858d7f
am: 0000a9b623

Change-Id: I5da271b0f113844b7ad393a051078af602fa518d
b379ce981baf7f9d48b91fbeef0502bfa70c5add 13-Mar-2017 Mengjun Leng <mengju@codeaurora.org> Add support for sending message with priority, link control and validity period options

1. Added support for message priority(indicates the priority of a
SMS to the network in the PDU) in 3gpp2
2. Added support for link control(indicates whether network can
expect more messages or not so it can decide whether to retain
the radio link or not) while sending multiple messages
3. Added support for validity period(indicates how much time the
SMS is valid at the SMSC) support in 3gpp
4. Amended UT test cases for API changes and add UT validity period
test case

Test: Verfied sending short SMS, long SMS, MMS, SMS with emoji on
live network

Bug: 34962629
/frameworks/base/telephony/java/android/telephony/SmsManager.java
904c1eca5fe0dcf2c61e40d634b75bff3ea9157f 23-Jan-2018 Mohamed Abdalkader <abdalkader@google.com> Unhide SMS over IMS APIs

While here add more constants for send sms result.

Test: manual
BUG:69846044
Merged-In: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
/frameworks/base/telephony/java/android/telephony/SmsManager.java
9cb476bb1040b0d40e2b133917f5e2310a22d194 23-Jan-2018 Mohamed Abdalkader <abdalkader@google.com> Unhide SMS over IMS APIs

While here add more constants for send sms result.

Test: manual
BUG:69846044
Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
/frameworks/base/telephony/java/android/telephony/SmsManager.java
9d51240f037916d9fb309b43595f04152068649d 22-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissions"
d75e242fb82ffdcdd0ee001671619faf743e8705 14-Dec-2017 goneil <goneil@google.com> Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissions

Bug: 70177947
Test: None
Merged-In:If26ae0c69d3266c2639b61b3ed32df3f1cb2c36f
Change-Id: Ie08e56c9409c1fbbe24133b0981f5ab35f6a2f24
/frameworks/base/telephony/java/android/telephony/SmsManager.java
52f3d19c3be9b0a1bdf68d4b037451445ad55ef5 14-Dec-2017 goneil <goneil@google.com> Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissions

Bug: 70177947
Test: None
Change-Id: If26ae0c69d3266c2639b61b3ed32df3f1cb2c36f
/frameworks/base/telephony/java/android/telephony/SmsManager.java
e1a5469101607d7af9855c12a687891f050cdd43 21-Dec-2017 abdalkader <abdalkader@google.com> Merge "SMS over IMS APIs revision" am: 2bf7f03e63 am: f9eba1a18f
am: ca88d359c0

Change-Id: Iea7624e10230294505982f0373b97a2486d6996f
b2a83cfcfc8cebf9310af571206dd102fec25702 29-Nov-2017 Brad Ebinger <breadley@google.com> SMS over IMS APIs revision

- Move from being a feature to being a capability
- Move format to the constructor and make final
- Initial hooking up of APIs provided by platform for ims providers.
- Add constants for send status result
- Rename SmsListener callbacks.
- Split acknowledgeSms for sms and sms reports.
- Add reason for onSendSmsResult
Bug: 69846044

Test: None
Change-Id: I861664264a117d5483e392d4aabff59bfaf4373e
/frameworks/base/telephony/java/android/telephony/SmsManager.java
036ffe55d5c451029c80404c7780f1f80efbfad9 12-Dec-2017 Amit Mahajan <amitmahajan@google.com> Merge "Revert "Add support for send Message with messaging options"" am: 563d93c107 am: b1ba135258
am: 339c512db0

Change-Id: I0539d1f7db3a307f7fb0b27e0b2a3a3e13a71538
b348a347dfc80d45f1b9404f4eea95a5cdc64eba 12-Dec-2017 Amit Mahajan <amitmahajan@google.com> Revert "Add support for send Message with messaging options"

This reverts commit bbef627077c5126b5b1292a5a396d784218c09cf.

Reason for revert: Causing long sms failure

Bug: 68762942
Change-Id: I43c36e3286105459c7e08d1a0b2d89b4c42140b2
/frameworks/base/telephony/java/android/telephony/SmsManager.java
9650a435ed909ed4062d64fd2d9b085628d4a455 19-Nov-2017 Jeff Sharkey <jsharkey@android.com> Massage APIs for upcoming doclava change.

These changes are needed to ensure that "checkapi" doesn't claim
that we're changing the API after an upcoming doclava change.

Test: manual inspection of API text files
Bug: 69505783
Change-Id: I8292ba80cc65b7dd78f0e9dba4fcc7ffcedfab9c
/frameworks/base/telephony/java/android/telephony/SmsManager.java
0fcb56c9916a8edec6e5d8ff444f7cdb675d4a9f 08-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose SmsManager#sendTextMessageWithoutPersisting as a public API"
2449285ef3624c3c55194ea46a8e62d00e270c41 29-Oct-2017 Mengjun Leng <mengju@codeaurora.org> Merge "Add support for send Message with messaging options" am: 1400db6748 am: 340b410675
am: 002a48f361

Change-Id: I03c4dce0682a4c1f8b5fffd9501e006668deff2a
bbef627077c5126b5b1292a5a396d784218c09cf 13-Mar-2017 Mengjun Leng <mengju@codeaurora.org> Add support for send Message with messaging options

Add support for following messaging options.

1.Add support for message priority in 3gpp2.

2.Add link control support while sending multiple messages.

3.Add validity period support in 3gpp.

Change-Id: I19f4fbc5a3b6922884196b301d30280acd9e501e

MSIM(Telephony): Add changes to SMS APIs as per new SmsManager design

Change SMS Msim APIs as per new SmsManager design

Change-Id: I14ad7685e23b14203a76dfe3cc5a95a337f7d0e3
/frameworks/base/telephony/java/android/telephony/SmsManager.java
dcf5c04e94db60b1f5413000f33eaedcff39572b 25-Oct-2017 goneil <goneil@google.com> Expose SmsManager#sendTextMessageWithoutPersisting as a public API

This API is useful for carrier-privileged apps that wish to use SMS to
transmit carrier system messages without affecting the user-visible
message database.

Change-Id: Ie4f765f3f42a942f5d6d9c85513dc9abaaf32962
Fixes: 25563895
Test: No functional changes. CTS test
SmsManagerTest#testSmsNotPersisted_failsWithoutCarrierPermissions added
that asserts a failure because CTS does not have carrier permissions
/frameworks/base/telephony/java/android/telephony/SmsManager.java
beb90fda29d1b6d8cf3a09468b410aad3527f280 13-Oct-2017 Jeff Davidson <jpd@google.com> Expose SmsMessage#FORMAT_ constants as public APIs.

These constants are intended to be arguments for
SmsManager#injectSmsPdu which is already public, and they are
referenced from CTS as well. Therefore, they should also be public.

Also add a @StringDef for these values and clean up the Javadoc while
we're here to use properly-linked references to other APIs.

Change-Id: I4e513f49f18350b93cccdc0d8a5847d31eefe7e2
Fixes: 67751433
Test: TreeHugger (no functional changes)
/frameworks/base/telephony/java/android/telephony/SmsManager.java
387ed22fef3ab5c80311f312b15faf6b623821e7 25-Aug-2017 Shuo Qian <shuoq@google.com> Merge "Add new error code in SmsManager"
85bb4b35f147a4c4a7c047e820d3a4aa5844aa29 10-Aug-2017 sqian <shuoq@google.com> Add new error code in SmsManager

Design doc: https://docs.google.com/a/google.com/document/d
/1YPTNoM2Atjz8oISGAsRYlFVSA1NcYP8MbqYQIzLcJ9E/edit?usp=sharing

Test: compile/flash code; test locally
Bug: 34773406
Change-Id: I0b227e76048dd46d9c8023d37647db763e1e38e1
Merged-In: I0b227e76048dd46d9c8023d37647db763e1e38e1
/frameworks/base/telephony/java/android/telephony/SmsManager.java
724f621daa9ef38fea39558036b2f08ed4a9e885 10-Aug-2017 sqian <shuoq@google.com> Add new error code in SmsManager

Design doc: https://docs.google.com/a/google.com/document/d
/1YPTNoM2Atjz8oISGAsRYlFVSA1NcYP8MbqYQIzLcJ9E/edit?usp=sharing

Test: compile/flash code; test locally
Bug: 34773406
Change-Id: I0b227e76048dd46d9c8023d37647db763e1e38e1
/frameworks/base/telephony/java/android/telephony/SmsManager.java
d86b8fea43ebb6e5c31691b44d8ceb0d8d3c9072 03-Jun-2017 Jeff Sharkey <jsharkey@android.com> Annotate @SystemApi with required permissions.

Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.

Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
/frameworks/base/telephony/java/android/telephony/SmsManager.java
1bc2c54ff6b70eec01ad156f789deb8dbce02fb8 14-Dec-2016 Nathan Harold <nharold@google.com> Remove dependency on IccConstants from SmsManager

-Redefine the length of the SmsRecord in SmsManager

Bug: 33414487
Test: compilation
Change-Id: I941085e96f45164152528c123102a59930859546
/frameworks/base/telephony/java/android/telephony/SmsManager.java
f3e659e2865fe52af5a87efb52299b81005aeb17 26-Apr-2017 Nathan Harold <nharold@google.com> Move files from frameworks/opt/telephony to frameworks/base

Bug: 37688438
Test: compilation, boot on aosp_bullhead
Merged-In: I44d3d6231943ae0e7c3de4ab302e0cdff987aefe
Change-Id: I44d3d6231943ae0e7c3de4ab302e0cdff987aefe
/frameworks/base/telephony/java/android/telephony/SmsManager.java
bc1a6e60c8c0555d47bcf8424af63665c8db062e 29-Mar-2017 Abhijith Shastry <ashastry@google.com> Update injectSmsPdu documentation.

BUG: 35325136
Test: Comment only update.
Change-Id: I4ff38665a06de5e989e15e17aaac5f512da4303e
/frameworks/base/telephony/java/android/telephony/SmsManager.java
448c12c2f3c0055ac37bbea273b7610d4d6fb557 14-Feb-2017 Abhijith Shastry <ashastry@google.com> Permit privileged system apps to send SMS without persisting.

The system app needs to have MODIFY_PHONE_STATE permission.

Original Change-Id: Ic9242972a211c90378c183c3abf95672c2816ac7
BUG: 35325136
Test: API visibility change, Manual

Change-Id: I37b185feaa72e330a0845eff137ea310ad0dca08
/frameworks/base/telephony/java/android/telephony/SmsManager.java
e97d1c6a8f95c240b0e990ce73d43e07c3cf413d 14-Dec-2016 Nathan Harold <nharold@google.com> Remove dependency on IccConstants from SmsManager

-Redefine the length of the SmsRecord in SmsManager

Bug: 33414487
Test: compilation
Change-Id: I941085e96f45164152528c123102a59930859546
/frameworks/base/telephony/java/android/telephony/SmsManager.java
4980bf4aff8d49ac4e05444a6ef40ea1536f1afb 14-Feb-2017 Dan Willemsen <dwillemsen@google.com> Merge branch 'stage-telephony-refactor' into master

Bug: 33644781
Change-Id: If571e3ad9432035811714e3a92d9dfff39311c61
/frameworks/base/telephony/java/android/telephony/SmsManager.java
a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
/frameworks/base/telephony/java/android/telephony/SmsManager.java
b7945cae5ad0feaad09378d0db77f2b3105e5235 22-Sep-2011 Jake Hamby <jhamby@google.com> Enable support for multiple SMSDispatchers in CDMALTEPhone.

Refactor framework to support multiple SMSDispatcher objects on
dual-mode devices that require support for both 3GPP and 3GPP2
format SMS messages. Each dispatcher registers to receive events for
the appropriate message format.

Note: All applications which handle incoming SMS messages by processing the
SMS_RECEIVED_ACTION broadcast intent MUST pass the "format" extra from the intent
into the new createPdu() method in android.telephony.SmsMessage that takes an
extra format parameter. This is required in order to correctly decode the PDU on
devices which require support for both 3GPP and 3GPP2 formats at the same time,
such as CDMA/LTE devices and GSM/CDMA world phones.

- moved code to manage device storage events from SMSDispatcher to a
new class, SmsStorageMonitor, which is shared among all dispatchers.

- moved code to monitor per-application outgoing SMS usage from
SMSDispatcher.SmsCounter to a new class, SmsUsageMonitor, which
is shared among all dispatchers.

- fixed a bug that prevented CDMALTEPhone from setting the MCC/MNC
operator numeric value in the telephony provider from the UICC,
as GSMPhone does, when the SIM records have loaded.

Change-Id: I2789ac07b6ca2948138bca7f75481f9b31514f20
/frameworks/base/telephony/java/android/telephony/SmsManager.java
7d259626d009a45195ec341646ce06658b842e40 08-Jun-2011 Jake Hamby <jhamby@google.com> resolved conflicts for merge of 0cb17a52 to honeycomb-plus-aosp

Change-Id: I784e6d1946fa708f63becece070c7090cec6f1e2
ab79ee4adcbc6eb9fb9c509766753f65d3857739 27-Apr-2011 Jake Hamby <jhamby@google.com> Enable full support for SMS Cell Broadcast.

Implement full support for SMS Cell Broadcast (3GPP TS 23.041).
Includes support for ETWS and CMAS emergency message types.
Includes GSM and UMTS support (CDMA will be added later).

Note: the change to GsmAlphabet.java is only necessary if the
SMS national languages support patch has been applied. If that
change has not been applied, then the changes to GsmAlphabet.java
in this patch set can safely be ignored.

Change-Id: Ia0362c53695b8ef9a0982f558f1cffa912def34b
/frameworks/base/telephony/java/android/telephony/SmsManager.java
8503144665894f1b5008f540e0cf36c948c763ef 23-Nov-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 8484e57f to master

Change-Id: I6a8cc70250fd2be9a1e9a728940a1e9f5721a653
95bc625e294e14a651321b5172f31406cdebbefb 19-Nov-2010 Henrik Hall <henrik.hall@sonyericsson.com> Enabling cell broadcast (SMS-CB) support in the platform.

Adding a simple API enabling applications to control SMS-CB reception.
Implementing parsing, assembly and dispatching of SMS-CB messages over GSM.

Change-Id: Iee841605a45a3af60c7602af175056afb03a38da
/frameworks/base/telephony/java/android/telephony/SmsManager.java
24d9c149c831f9793002af67f9e5436e415dfbea 12-May-2010 The Android Open Source Project <initial-contribution@android.com> am fc97669a: am 72a6af1a: am 7d952644: merge from open-source master
18573e9281d6e5621fa1663dac29b558291913d7 29-Mar-2010 Naveen Kalla <nkalla@codeaurora.org> Support to display message when operation is blocked due to FDN being enabled

The terminal disallows USSD, SMS, Voice Call and Supplementary services
operations for numbers not in the Fixed Dialing Number (FDN) list when the
FDN service is enabled. FDN_CHECK_FAILURE error is sent from the RIL and the
message needs to be displayed to indicate the failure.

Change-Id: I49bd63f69a3f0201125b17cd16db2e8fcf93ddc3
/frameworks/base/telephony/java/android/telephony/SmsManager.java
145ff609de3206b585819ef974fab20cdc2d9f5e 16-Apr-2010 Jake Hamby <jhamby@google.com> Spelling corrections and other minor cosmetic cleanups.

- Fixed a bunch of typos in comments (plus a few variable names)
- Removed unused import lines from telephony classes
- Added @Override attribute to overriding methods
- Made SmsMessage.PduParser inner class private & deleted unused constructor
- Added type specifiers to declarations of ArrayList and HashMap
- SimulatedCommands.getRegistrationState() had an ArrayIndexOutOfBoundsException
trying to write to index 14 of a 14-element array. I removed the
out-of-bounds assignment.

Change-Id: I054b5156aa64ab6639028d5b45a7e688b2deee08
/frameworks/base/telephony/java/android/telephony/SmsManager.java
72fac6778119e42f39e00f5b7e36b7500893f45c 22-Oct-2009 Tom Taylor <tomtaylor@google.com> Handle bad SIM message

When trying to view the saved sms messages on my SIM, I ran into a null ref.
With this fix, we don't try and wrap a null message, but just skip it.
This is part one of three fixes for BC-triaged bug 2205782.

Change-Id: Ie7105dae7e3134b98681deabcc14f5db555902f3
/frameworks/base/telephony/java/android/telephony/SmsManager.java
1f952a178db86559ff4bab79c4a9b5fae18096bf 25-Aug-2009 Tammo Spalink <tammo@google.com> Move SMS pdu creation fully into the central Phone process.

Previously pdu creation was haphazardly done sometimes by the app and
sometimes centrally by the phone process -- specifically the phone
process did creation for multipart texts. This change gets rid of the
previous IPC interface for sending raw pdus to SMSDispatch in the
phone process, and instead makes everything work like multipart
messages worked before, namely the structured data is passed and pdu
encoding done centrally.

The motivation for this was the need to ensure that CDMA message id
numbers were strictly monotonic, including across reboots, which
necessitated central state in the form of a system property, which
could in turn only be modified by the phone process.

Hence, this (in part) addresses issue: http://buganizer/issue?id=2075760

Change-Id: I94ca207b6e657c465e8472534704db8646ee277c
/frameworks/base/telephony/java/android/telephony/SmsManager.java
51b2b33219a0e97ed1e5ea75dabe4113a38871b9 21-Aug-2009 Yong Liu <yong.liu@motorola.com> MO SMS fail after sending 100 messages

After sending 100 messages, SMSDispatcher always displays dialog to user to
confirm the sending. If the user sends messages too fast then there will be more
than one dialogs waiting for the response, but SMSDisptcher can only handle one.
/frameworks/base/telephony/java/android/telephony/SmsManager.java
d1cb1d22af0775a7c030822e04db1c9ecad9beab 06-Aug-2009 jsh <jsh@google.com> Bubble up SMS send fail error code to the app.

Framework portion of the fix for http://b/1978375:
We'll pass up the error code returned by the RIL on send failure.
/frameworks/base/telephony/java/android/telephony/SmsManager.java
0da3bdb476086db02a1076780676b21e239c79d6 28-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Fix public API caused due to CDMA changes.
/frameworks/base/telephony/java/android/telephony/SmsManager.java
fc78f358cb1d1cee99758bcd6ef998a122ef27c9 11-Jun-2009 Tammo Spalink <tammo@google.com> for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding
/frameworks/base/telephony/java/android/telephony/SmsManager.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/frameworks/base/telephony/java/android/telephony/SmsManager.java