summaryrefslogtreecommitdiff
path: root/telephony/java/android/telephony/SmsManager.java
AgeCommit message (Collapse)Author
2018-07-31Pass correct parameters to API sendMultipartTextMessageMengjun Leng
1. Pass parameter priority, expectMore and validityPeriod to API sendMultipartTextMessage. 2. Modify validity check algrithm for parameter priority and validityPeriod, so that avoids the exception for invalid inputs. Bug: 112013111 Change-Id: I7a90db6e427b3daf6589e6a2b6dad2c4b3458832
2018-04-17Merge "SEEMP: framework instrumentation and AppProtect features" into ↵Treehugger Robot
p-keystone-qcom
2018-04-11Telephony: Invoke vendor SimDialogActivity in SmsManagerSridhar Kasukurthi
- Launch SimDialogActivity of vendor package instead of open source package when the default SIM for SMS needs to be chosen by the user. Change-Id: Ic71102e351e66709256802d711b99a1a604d3dad CRs-Fixed: 2178432
2018-04-09SEEMP: framework instrumentation and AppProtect featuresPreeti Nagar
- Changes for Android-P porting - Instrument framework files to log events of interest for QSSP. - Fix the String out of boundary. - Add optional package verifier to PackageManagerService - In additional to the required and sufficient package verifiers, add support for an optional verifier in PackageManager. The optional verifier will act as a required verifier if a required verifier is not found in the system. It will act as a secondary verifier if a required verifier is present. - Add auth framework for outgoing SMS messages. - Add the APIs required to register an authorization agent in order to allow/reject outgoing SMS messages and the core service that implements the sms security model. - Do not connect to seempdw socket in zygote - Do not connect to seempdw socket in zygote. The socket initialization is skipped if the parent process id is 1, which is always the case for zygote. - Moved instrumentation point to PackageInstaller and some minor fixes. - Add action for optional package verifier along other legacy actions to handle tightened StrictMode policy in Android P. Conflicts: Android.mk core/java/android/accounts/AccountManager.java core/java/android/app/Instrumentation.java core/java/android/bluetooth/BluetoothAdapter.java core/jni/Android.mk core/res/res/values/config.xml core/res/res/values/symbols.xml services/core/java/com/android/server/pm/PackageManagerService.java telephony/java/android/telephony/Telephony.java tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/WindowManagerImpl.java core/java/android/app/Instrumentation.java core/res/res/values/config.xml core/res/res/values/symbols.xml Change-Id: I38a8ace9943fae0ad2ac7bc2932f3deb790359a6 CRs-Fixed: 2219016
2018-03-22Merge remote-tracking branch 'keystone/p-fs-release' into ↵Diego Wilson
platform_update_PPR1.180321.001 Conflicts: packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java packages/SystemUI/res/layout/mobile_signal_group.xml packages/SystemUI/res/values-zh-rCN/strings.xml packages/SystemUI/res/values-zh-rTW/strings.xml packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java telephony/java/com/android/internal/telephony/RILConstants.java Change-Id: I927aa7099157957d2c95175e880c390ad24eea03
2018-03-19Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps.Jeff Davidson
Bug: 70177947 Bug: 70041899 Test: Flash / boot; TreeHugger; Unit/CTS tests in topic Merged-In: I4061becb1d7ceaa58d84e4e3568c1b6e63cfc8d1 Change-Id: I4061becb1d7ceaa58d84e4e3568c1b6e63cfc8d1
2018-03-16Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps.Jeff Davidson
Bug: 70177947 Bug: 70041899 Test: Flash / boot; TreeHugger; Unit/CTS tests in topic Change-Id: I4061becb1d7ceaa58d84e4e3568c1b6e63cfc8d1
2018-03-07Telephony: Get SIM card capacity count of SMSMengjun Leng
Add an API to get the capacity of the stored SMS on ICC card. Change-Id: Ic9445ef58ce215aab55f9949fb0f38c5762ea632 CRs-Fixed: 2177387
2018-02-27Merge "Add support for sending message with priority, link control and ↵Jayachandran Chinnakkannu
validity period options" am: b103f9309b am: bb29858d7f am: 0000a9b623 Change-Id: I5da271b0f113844b7ad393a051078af602fa518d
2018-02-24Add support for sending message with priority, link control and validity ↵Mengjun Leng
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
2018-02-10Add support for sending message with priority, link control and validity ↵Mengjun Leng
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 cases Test: Verfied sending short SMS, long SMS, MMS, SMS with emoji on live network Change-Id: I14ad7685e23b14203a76dfe3cc5a95a337f7d0e3 CRs-Fixed: 2177389
2018-01-31Unhide SMS over IMS APIsMohamed Abdalkader
While here add more constants for send sms result. Test: manual BUG:69846044 Merged-In: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59 Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
2018-01-25Unhide SMS over IMS APIsMohamed Abdalkader
While here add more constants for send sms result. Test: manual BUG:69846044 Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
2017-12-21Merge "Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissions"TreeHugger Robot
2017-12-21Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissionsgoneil
Bug: 70177947 Test: None Merged-In:If26ae0c69d3266c2639b61b3ed32df3f1cb2c36f Change-Id: Ie08e56c9409c1fbbe24133b0981f5ab35f6a2f24
2017-12-21Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissionsgoneil
Bug: 70177947 Test: None Change-Id: If26ae0c69d3266c2639b61b3ed32df3f1cb2c36f
2017-12-21Merge "SMS over IMS APIs revision" am: 2bf7f03e63 am: f9eba1a18fabdalkader
am: ca88d359c0 Change-Id: Iea7624e10230294505982f0373b97a2486d6996f
2017-12-20SMS over IMS APIs revisionBrad Ebinger
- 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
2017-12-12Merge "Revert "Add support for send Message with messaging options"" am: ↵Amit Mahajan
563d93c107 am: b1ba135258 am: 339c512db0 Change-Id: I0539d1f7db3a307f7fb0b27e0b2a3a3e13a71538
2017-12-11Revert "Add support for send Message with messaging options"Amit Mahajan
This reverts commit bbef627077c5126b5b1292a5a396d784218c09cf. Reason for revert: Causing long sms failure Bug: 68762942 Change-Id: I43c36e3286105459c7e08d1a0b2d89b4c42140b2
2017-11-22Massage APIs for upcoming doclava change.Jeff Sharkey
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
2017-11-08Merge "Expose SmsManager#sendTextMessageWithoutPersisting as a public API"TreeHugger Robot
2017-10-29Merge "Add support for send Message with messaging options" am: 1400db6748 ↵Mengjun Leng
am: 340b410675 am: 002a48f361 Change-Id: I03c4dce0682a4c1f8b5fffd9501e006668deff2a
2017-10-27Add support for send Message with messaging optionsMengjun Leng
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
2017-10-25Expose SmsManager#sendTextMessageWithoutPersisting as a public APIgoneil
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
2017-10-24Expose SmsMessage#FORMAT_ constants as public APIs.Jeff Davidson
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)
2017-08-25Merge "Add new error code in SmsManager"Shuo Qian
2017-08-24Add new error code in SmsManagersqian
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
2017-08-22Add new error code in SmsManagersqian
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
2017-06-05Annotate @SystemApi with required permissions.Jeff Sharkey
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
2017-05-05Remove dependency on IccConstants from SmsManagerNathan Harold
-Redefine the length of the SmsRecord in SmsManager Bug: 33414487 Test: compilation Change-Id: I941085e96f45164152528c123102a59930859546
2017-05-05Move files from frameworks/opt/telephony to frameworks/baseNathan Harold
Bug: 37688438 Test: compilation, boot on aosp_bullhead Merged-In: I44d3d6231943ae0e7c3de4ab302e0cdff987aefe Change-Id: I44d3d6231943ae0e7c3de4ab302e0cdff987aefe
2017-03-29Update injectSmsPdu documentation.Abhijith Shastry
BUG: 35325136 Test: Comment only update. Change-Id: I4ff38665a06de5e989e15e17aaac5f512da4303e
2017-03-03Permit privileged system apps to send SMS without persisting.Abhijith Shastry
The system app needs to have MODIFY_PHONE_STATE permission. Original Change-Id: Ic9242972a211c90378c183c3abf95672c2816ac7 BUG: 35325136 Test: API visibility change, Manual Change-Id: I37b185feaa72e330a0845eff137ea310ad0dca08
2017-03-03Remove dependency on IccConstants from SmsManagerNathan Harold
-Redefine the length of the SmsRecord in SmsManager Bug: 33414487 Test: compilation Change-Id: I941085e96f45164152528c123102a59930859546
2017-03-03Merge branch 'stage-telephony-refactor' into masterDan Willemsen
Bug: 33644781 Change-Id: If571e3ad9432035811714e3a92d9dfff39311c61
2012-07-11Create telephony-common and mms-commonWink Saville
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
2011-10-04Enable support for multiple SMSDispatchers in CDMALTEPhone.Jake Hamby
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
2011-06-07resolved conflicts for merge of 0cb17a52 to honeycomb-plus-aospJake Hamby
Change-Id: I784e6d1946fa708f63becece070c7090cec6f1e2
2011-06-01Enable full support for SMS Cell Broadcast.Jake Hamby
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
2010-11-22resolved conflicts for merge of 8484e57f to masterJean-Baptiste Queru
Change-Id: I6a8cc70250fd2be9a1e9a728940a1e9f5721a653
2010-11-19Enabling cell broadcast (SMS-CB) support in the platform.Henrik Hall
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
2010-05-12am fc97669a: am 72a6af1a: am 7d952644: merge from open-source masterThe Android Open Source Project
2010-05-11Support to display message when operation is blocked due to FDN being enabledNaveen Kalla
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
2010-04-15Spelling corrections and other minor cosmetic cleanups.Jake Hamby
- 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
2009-10-22Handle bad SIM messageTom Taylor
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
2009-09-01Move SMS pdu creation fully into the central Phone process.Tammo Spalink
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
2009-08-28MO SMS fail after sending 100 messagesYong Liu
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.
2009-08-06Bubble up SMS send fail error code to the app.jsh
Framework portion of the fix for http://b/1978375: We'll pass up the error code returned by the RIL on send failure.
2009-07-30Fix public API caused due to CDMA changes.Jaikumar Ganesh