summaryrefslogtreecommitdiff
path: root/telephony/java/android/telephony/SmsManager.java
AgeCommit message (Collapse)Author
2021-05-13Merge SP1A.210510.001Brian Orr
Change-Id: Ia86f3e18206beabe334e3081cedbaf5b3274f78e
2021-04-30Remove obsolete comments.Amit Mahajan
Test: none Bug: 140239857 Change-Id: Ia867484683a6651e5dadfab5877b1e8dfbdff659
2021-04-02Merge SP1A.210329.001Scott Lobdell
Change-Id: I1e21c5890b5b2e2f2855f09960bc8eec8aa922bf
2021-03-24Merge SP1A.210311.001Scott Lobdell
Change-Id: Id1a205bf3f0609c0b13e4bea377056c3b06299fa
2021-03-22Merge "Return 0 instead of throwing RuntimeException from ↵Treehugger Robot
getSmsCapacityOnIcc" am: 258ecb55a5 am: e8ed5b17cf am: 3873fd0c6a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1643623 Change-Id: I53cc9c17607de633dd6bb6a7380a53d1193e8c39
2021-03-17Return 0 instead of throwing RuntimeException from getSmsCapacityOnIccAmit Mahajan
Test: none Bug: 170704921 Change-Id: I7d6985ab1aaf830c4560195189d01a661d478dbe
2021-03-16Updates to API based on API council feedback.Amit Mahajan
Test: build (documentation only change) Bug: 170255123 Change-Id: Ie9129fa69e81b306074090c7eef4d857100deae4
2021-02-18Add messageId to both of the MMS methodsTom Taylor
There are two MMS-related methods in SmsManager, one to send a multimedia message and one to download a multimedia message. In R, a messageId parameter was added to the various SMS sending methods. The messageId allows for eventual increased reliablility. The messageId parameter was added to MmsManager for R, but MmsManager was ultimately hidden in R. This change applies the same treatment to the two MMS methods in S, that was applied to the SMS methods in R. Test: manual testing and atest MmsTest Bug: 163413552 Merged-in: Ic8e59b652967ab1296a92a1d5727dc226cb190fb Change-Id: Ic8e59b652967ab1296a92a1d5727dc226cb190fb
2021-01-26Merge SP1A.210122.003Scott Lobdell
Bug: 178561525 Change-Id: Ifb7c4a1c94e1f4cab710826d57282b981a46e990
2021-01-22Merge SP1A.210105.001Scott Lobdell
Change-Id: Iebfaf27bb339a99d9303a53e6c2c397b0001c814
2021-01-21Merge "Remove dup result code descriptions" am: 19ffdb0894 am: 649dcf3e0b ↵Amit Mahajan
am: 4ed77d37f9 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1163685 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic06ed2a0e6d594e4231885635ab19e85953d06ac
2021-01-14Remove dup result code descriptionsTaesu Lee
Test: Not required. Change-Id: I14e574f9a29105985b4e467162002c9e590130de Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-12-29Use a consistent logging string for the xms message idTom Taylor
Test: Manually tested sending/receiving SMSs and MMSs Change-Id: I1da954eaeb482bca3d1b5168118fe57c592927e6
2020-12-14Expose resetAllCellBroadcastRanges and permissionJordan Liu
Bug: 173335320 Test: manually verify API works from app Change-Id: I1f8b24765d22d3e78f0cf43d04fabcd5e9fd24a3
2020-12-02Merge SP1A.201130.001Daniel Norman
Change-Id: Idcf943792aaa73080b26e2294f0569061502c85d
2020-11-19Merge "Declare new SMS error code in SmsManager" am: ea337540f0 am: ↵Allen Su
b670c62130 am: 9973c5bbf0 am: ce022bad36 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1495901 Change-Id: Iffe8f936bf8217782b645e95c51200ec50d13391
2020-11-18Declare new SMS error code in SmsManagerallenwtsu
Bug: 162364146 Test: build pass Change-Id: I04bd6c26bf7a484df856c55c1166f9e5567df12d
2020-11-13Merge SP1A.201105.002Scott Lobdell
Change-Id: Iec83a0c1f6f286a1e51abfc4356633ca9d8aea5f
2020-11-04Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-02Mark deleteMessageFromIcc() as @UnsupportedAppUsage.Amit Mahajan
The API was exposed in ag/9766884 but reverted in ag/10665971. However with the revert the annotation was not added back. Test: TH Bug: 159022482 Merged-in: Ia7d200bfd4d4565971701048b1c469a6633edeb4 Change-Id: Ia7d200bfd4d4565971701048b1c469a6633edeb4 (cherry picked from commit 1530a593ea4a17eb4a94877369e94a434db552b4)
2020-10-29Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
2020-10-28Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang
This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
2020-10-27Merge SP1A.201015.001Scott Lobdell
Change-Id: Ie33f12a2f4c73443640c28ad128be96b3533fd8c
2020-10-27Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
2020-10-23Merge "Mark deleteMessageFromIcc() as @UnsupportedAppUsage." into ↵Amit Mahajan
rvc-qpr-dev am: ce7806da32 am: 60015d8728 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12895790 Change-Id: I4d18b682e8daf96cae5ef8db7bd4bcc806cf600b
2020-10-23Merge "Mark deleteMessageFromIcc() as @UnsupportedAppUsage." into ↵Amit Mahajan
rvc-qpr-dev am: ce7806da32 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12895790 Change-Id: I55b4a9834a7c5f0b3bd7f4c6e21c5f254e0f88c9
2020-10-21Mark deleteMessageFromIcc() as @UnsupportedAppUsage.Amit Mahajan
The API was exposed in ag/9766884 but reverted in ag/10665971. However with the revert the annotation was not added back. Test: TH Bug: 159022482 Change-Id: Ia7d200bfd4d4565971701048b1c469a6633edeb4
2020-10-14Merge "MMS APIs rely on resolveSubscriptionForOperation()" am: e0ae42884d ↵Brad Ebinger
am: 12d3218ef3 am: b7fd7db377 am: 9866c9051a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456127 Change-Id: I7e4e0f1835516e00d180c42807b1cc887710cda3
2020-10-13MMS APIs rely on resolveSubscriptionForOperation()Taesu Lee
A disambiguation dialog will be shown if default SmsManager is used for MMS as well. Bug: 170591590 Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I86bb70261eb7fecf3e8b72f0df8d2338bab4bb57
2020-10-09Merge SP1A.200921.001Scott Lobdell
Change-Id: I6a8d7215f874fed05e9fec71b17c8a3d1e2c94e0
2020-10-06Expose getSmsCapacityOnIcc()Taesu Lee
Unhide getSmsCapacityOnIcc() and it requires READ_PHONE_STATE instead. Bug: 154878196 Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Merged-in: I86ba39d5073227ff55251fabc614fd3b9347285e Change-Id: I86ba39d5073227ff55251fabc614fd3b9347285e
2020-10-05Expose getSmsCapacityOnIcc()Taesu Lee
Unhide getSmsCapacityOnIcc() and it requires READ_PHONE_STATE instead. Bug: 154878196 Test: Manual Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I86ba39d5073227ff55251fabc614fd3b9347285e (cherry picked from commit f5da96c49e9a28f24387c3e79355702f66736c38)
2020-09-09Merge SP1A.200727.001Daniel Norman
Change-Id: Ibb86a528ed692cde325705779c7fa57e4b4de682
2020-08-31Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li
Bug: 166295507 Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27 Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-11add logs to investigate flakey testNazanin
Test: atest Bug: b/162266130 Change-Id: I55fe46821489747088d821a0e2b2f78fd28e01c0
2020-07-31Merge "Fix description of indices for messages in the ICC." am: 1a1dcba955 ↵Treehugger Robot
am: 803802e7c1 am: 4867cfabff am: 0d38403c78 am: 4f2548f552 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1365796 Change-Id: I328150decd02c795de3024f5c2be89266e52bd8c
2020-07-30Merge "Fix description of indices for messages in the ICC." am: 1a1dcba955 ↵Treehugger Robot
am: 803802e7c1 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1365796 Change-Id: Icf4bfe7e86bc94329ebaeb713831e858b6a48c68
2020-07-29Merge "Create SmsManager from a context"TreeHugger Robot
2020-07-20Create SmsManager from a contextPhilip P. Moltmann
Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsLoggingTest#sendSms Bug: 161451649, 132365432 Change-Id: I072e13f44f1f7f433ecba8716a6f9b1236275de1
2020-07-17Fix description of indices for messages in the ICC.Taesu Lee
Bug: 161478651 Test: build Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I66adaf4e4cd392c837c3719bd1f36a426938933e
2020-07-14Merge "Suppress showing "Invalid Validity Period-1" for sending messages" ↵Treehugger Robot
am: 8daa4a1389 am: ee59d3306a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1313804 Change-Id: Ic7c6ffe1943ccbe7d79633fc6d2f29ef6f4e75a1
2020-07-14Suppress showing "Invalid Validity Period-1" for sending messagesTaesu Lee
Show the error log when only wrong value is set actually for sending instead. And it includes some cleanup. Bug: 161156510 Test: MO SMS and check log Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: I2b58b431c59c52dd05cfa54ac34551550cd614d2
2020-06-22Merge RP1A.200621.001Daniel Norman
Change-Id: Ibd868f53f230edec4c46523024c38708b5a01522
2020-06-19Reset cell broadcast config before enabling all channelsJack Yu
Before cell broadcast config service enabling all channels, it reset all channels that were previously enabled. This will make sure the full channel config can be pushed down to modem. This also solved the issue that channel config not sending to modem when SIM is swapped. Note that a hidden API is added and will be unhide in the next Android release. Fix: 155027085 Test: Manual Merged-In: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56 Change-Id: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
2020-06-17Reset cell broadcast config before enabling all channelsJack Yu
Before cell broadcast config service enabling all channels, it reset all channels that were previously enabled. This will make sure the full channel config can be pushed down to modem. This also solved the issue that channel config not sending to modem when SIM is swapped. Note that a hidden API is added and will be unhide in the next Android release. Fix: 155027085 Test: Manual Merged-In: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56 Change-Id: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
2020-06-17Reset cell broadcast config before enabling all channelsJack Yu
Before cell broadcast config service enabling all channels, it reset all channels that were previously enabled. This will make sure the full channel config can be pushed down to modem. This also solved the issue that channel config not sending to modem when SIM is swapped. Note that a hidden API is added and will be unhide in the next Android release. Fix: 155027085 Test: Manual Change-Id: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
2020-04-07Merge RP1A.200401.001Steven Laver
Change-Id: I4050f39c7971bf1750afb1c8bc139f5fc41020e3
2020-03-31Un-deprecate SmsManager APIsSarah Chin
MmsManager methods were removed for mainline, so unexposing these Test: build Bug: 144004293 Change-Id: I9714719f2d922cb027fa42a1aa535006dce7342c Merged-In: I9714719f2d922cb027fa42a1aa535006dce7342c
2020-03-30Merge RP1A.200326.001Steven Laver
Change-Id: Ida56d101b2c8fed3c07c8a3bad8d04f02f6b91e5
2020-03-27Update API documentation per api-council feedback.Amit Mahajan
Test: SMS/MMS sending/receiving sanity (manual) Bug: 149236716 Merged--in: I59b9d468fa6e1a5843871abf1a330962aef64505 Change-Id: I59b9d468fa6e1a5843871abf1a330962aef64505 (cherry picked from commit d42340b66cab46f59902bc9f2c57131361612c50)