summaryrefslogtreecommitdiff
path: root/telephony/java/android/telephony/SmsManager.java
AgeCommit message (Collapse)Author
2020-01-14Merge "[Mainline] Add get and set premium sms consent method and make as ↵Betty Chang
@SystemApi"
2020-01-14Merge "TelephonyManager: cache service handles"Collin Fijalkovich
2020-01-13Make MmsManager public and @SystemServiceSarah Chin
Test: manually verify can send/receive MMS Bug: 144004293 Change-Id: I39cde852252e18f71f98e328354df66611c9db60 Merged-In: I39cde852252e18f71f98e328354df66611c9db60
2020-01-13[Mainline] Add get and set premium sms consent method and make as @SystemApichangbetty
Bug: 146808981 Test: make Change-Id: I228c467b609bd15e8ca95819cd70372fb6de2e3a
2020-01-10Make MmsManager public and @SystemServiceSarah Chin
Test: manually verify can send/receive MMS Bug: 144004293 Change-Id: I39cde852252e18f71f98e328354df66611c9db60
2020-01-10Merge "Revert "Make MmsManager public""Sarah Chin
2020-01-10Revert "Make MmsManager public"Sarah Chin
This reverts commit 0339a82c0a2772c200aa29867746391cb5af0e8b. Reason for revert: RP1A.200110.001 cannot send/receive MMS Bug: 147475284 Change-Id: I5952168aba996a10554406a9f1675ac3b04fa41f
2020-01-09TelephonyManager: cache service handlesTim Murray
Instead of looking up service handles before every API call, cache service handles and remove them on endpoint death. Test: boots, works bug 140788621 Change-Id: If9bb6840c43f004bb7d363db870d0a05f2d69d6c
2020-01-09Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23 Merged-In: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-09Merge "Make MmsManager public"Sarah Chin
2020-01-08(Backport) Pipe through featureId from caller to permission checks in telephonyPhilip P. Moltmann
code Test: atest FrameworksTelephonyTests CtsAppOpsTestCases Bug: 136595429 Fixes: 146350559 Change-Id: Ie58007cf2a4e4a39cdfd72822150efce71dfbe84 Merged-In: I7ef41e8961e48d40e5685c4a521e83cb20953e48
2020-01-07[Telephony Mainline] Refactored ServiceManager callsPeter Wang
to use TelephonyServiceManager Bug: 142255256 Bug: 112725883 Test: Build, SimSmsTest, TelephonyRegistryTest, SimPhoneBookTest, OpportunisticNetworkServiceTest Change-Id: I50068a02f1f5a4ff51acdbe4d1ded09ec4c4d6b8
2020-01-07Make MmsManager publicSarah Chin
Test: atest TelephonyFrameworksTests Bug: 144004293 Change-Id: I6cd3587ecba36c9ff9d45a6c174077e8dd7d8fb0
2020-01-07Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-07Merge "SMS service loads MMS config directly instead"Treehugger Robot
2020-01-07SMS service loads MMS config directly insteadTaesu Lee
getCarrierConfigValues() is removed from MmsManager and SMS service loads Carrier configuration values directly since MmsService could return null or cached config instead if an app requests the config by receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED. Bug: 145768042 Test: manual Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e Merged-In: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-06SMS service loads MMS config directly insteadTaesu Lee
getCarrierConfigValues() is removed from MmsManager and SMS service loads Carrier configuration values directly since MmsService could return null or cached config instead if an app requests the config by receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED. Bug: 145768042 Test: manual Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-03[Telephony Mainline] Add new SystemApi method and SystemApi annotation for ↵changbetty
mainline SmsManager - add SystemApi and RequiresPermission - deleteMessageFromIcc - getMessagesFromIcc SmsMessage - make as public API - getRecipientAddress Bug: 144478274 Test: make Change-Id: I6b875142bc8308e582ea874e9c69d8bed11ae554 Merged-In: I6b875142bc8308e582ea874e9c69d8bed11ae554
2019-12-18[Telephony Mainline] Add new SystemApi method and SystemApi annotation for ↵changbetty
mainline SmsManager - add SystemApi and RequiresPermission - deleteMessageFromIcc - getMessagesFromIcc SmsMessage - make as public API - getRecipientAddress Bug: 144478274 Test: make Change-Id: I6b875142bc8308e582ea874e9c69d8bed11ae554
2019-12-18Merge "Telephony: Get SIM card capacity count of SMS" am: 1017905980 am: ↵Automerger Merge Worker
f8772763e3 am: f368715dc8 Change-Id: I14a94428c3b75912afbdc17bb38e3080d6b47b4e
2019-12-17Merge "Telephony: Get SIM card capacity count of SMS"Tyler Gunn
2019-12-17Telephony: Get SIM card capacity count of SMSMengjun Leng
Add an API to get the capacity of the stored SMS on ICC card. Bug:37289947 Change-Id: Ic9383b3605ce450b3dc32ccc0c283789c12fabf7
2019-12-14Merge "remove API RoleManager.getFinancialSms"Chen Xu
2019-12-13remove API RoleManager.getFinancialSmsChen Xu
getFinancialSms is not functional and not used today, thus remove it to avoid future confusion Bug: 138745655 Bug: 140908357 Test: atest android.telephony.cts.SmsManagerTest Change-Id: Ib57d0fc189b6c894227894ee02b592f7ee46f22f (cherry picked from commit d6b2673181e2976dffc6ed9a493968e678aa30c0) Merged-in: Ib57d0fc189b6c894227894ee02b592f7ee46f22f
2019-12-13use SmsCbMessage.MESSAGE_FORMAT_3GPP to replace hidden SmsMgr APIsChen Xu
Bug: 135956699 Test: unit test Change-Id: Id631875ba6639ebf4fa569696a982c49d9c93e8f (cherry picked from commit dd79281f9708ce6b0e96590da8db89d229af4f9b) Merged-in: Id631875ba6639ebf4fa569696a982c49d9c93e8f
2019-11-27Merge RP1A.191120.001Steven Laver
Change-Id: I861114a47121f0c4cfb375680e22b957bd9988fb
2019-11-22Merge RP1A.191114.001Steven Laver
Change-Id: I30dd2dce3b0c2fcd635381413a213fe3e97be97b
2019-11-19Merge "Add sms receiver result codes"Tom Taylor
2019-11-18Merge "Remove unnecessary calling getApplicationContex()" am: 2cc5a85213 am: ↵Taesu Lee
abfa4692f3 am: 592274ed2b Change-Id: I060bddc927fca4c7e7b2e8c590f6c51bc3cf4a1f
2019-11-15Remove unnecessary calling getApplicationContex()Taesu Lee
TODO: remove context argument from sendMultimediaMessage() and downloadMultimediaMessage() Test: build Change-Id: Ief203065eb713cec200dbbc5ee9fd09825980d1b Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-11-14Add sms receiver result codesTom Taylor
During the process of receiving an sms, there are a number of situations that will cause the receive process to fail. Sms receive failures are broadcast via the SMS_REJECTED_ACTION in the "result" action. Bug: b/135755360 Test: manually tested sms/mms send and receive Change-Id: If5c7d465ecaac60c1ce9517c3bc00a9664bc51ec
2019-11-14Pipe through featureId from caller to permission checks in telephonyPhilip P. Moltmann
code A featureId is only used by runtime permissions. Test: atest FrameworksTelephonyTests CtsAppOpsTestCases Bug: 136595429 Change-Id: I7ef41e8961e48d40e5685c4a521e83cb20953e48
2019-11-10Merge RP1A.191031.003Steven Laver
Change-Id: I2751812b51577030b0197ddc22e7208da2ed8516
2019-11-09Merge RP1A.191024.001Steven Laver
Change-Id: I5cda3bba276e99d948b752be87d4599e9f882e0f
2019-11-08Merge "Add new SystemApi methods for mainline"Treehugger Robot
2019-11-07Add new SystemApi methods for mainlineHall Liu
Add new SystemApi methods for Telecom to call in lieu of the old @hide methods. Also moved CallerInfo and CallerInfoAsyncQuery to Telecom because there are no more users in Telephony. Bug: 141576016 Test: CTS Change-Id: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4 Merged-In: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
2019-11-07Add new SystemApi methods for mainlineHall Liu
Add new SystemApi methods for Telecom to call in lieu of the old @hide methods. Also moved CallerInfo and CallerInfoAsyncQuery to Telecom because there are no more users in Telephony. Bug: 141576016 Test: CTS Change-Id: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
2019-11-06Add new result codesTom Taylor
Test: manually tested sending and receiving sms Bug: 135755360 Merged-In: I711e86eb5a31902ba5b2e1b6df444b009aef2727 Change-Id: I711e86eb5a31902ba5b2e1b6df444b009aef2727
2019-11-05use SmsCbMessage.MESSAGE_FORMAT_3GPP to replace hidden SmsMgr APIsChen Xu
Bug: 135956699 Test: unit test Change-Id: Id631875ba6639ebf4fa569696a982c49d9c93e8f
2019-11-01Merge "Remove unused @hide APIs from SmsManager."Amit Mahajan
2019-11-01Move getMmsConfig from SmsManager to MmsService.Amit Mahajan
Test: basic sanity Bug: 140763963 Merged-in: If0a4b319f23d1a01e98f64ed1ae6eb6b90ccb02a Change-Id: If0a4b319f23d1a01e98f64ed1ae6eb6b90ccb02a (cherry picked from commit 214f7ec7fadc6c4f46810d9b4c40df14a7069c06)
2019-11-01Remove unused @hide APIs from SmsManager.Amit Mahajan
Also created a new MmsManager and moved imms APIs there. Will make MmsManager @SystemApi in a later CL. Test: basic sanity Bug: 140763963 Merged-in: If22a85887c1aae0ab80562d58bc08c6965fd470f Change-Id: If22a85887c1aae0ab80562d58bc08c6965fd470f (cherry picked from commit 24c01a2f792032ac48b61de25f6ad4707b35f4d8)
2019-10-31Merge "New APIs for SMSC address" am: 0a7690ce24 am: edae70454fAmit Mahajan
am: fea5b9b556 Change-Id: Ief15a79e0722aa2efada5742a65f4f3c4f6227e6
2019-10-31New APIs for SMSC addressTaesu Lee
Added getSmscAddress() and setSmscAddress() to access SMSC address in (U)SIM through the SmsManager. getSmscAddress() requires that the calling app is the default SMS app, or has READ_PRIVILEGED_PHONE_STATE or the carrier privileges. setSmscAddress() requires that the calling app is the default SMS app, or has MODIFY_PHONE_STATE or the carrier privileges. Test: Manual Change-Id: Icb21aff450f71b30ef6a1181834014bf7b85b8e1 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-10-25Merge "Add new result codes"Tom Taylor
2019-10-24Add new result codesTom Taylor
Test: manually tested sending and receiving sms Bug: 135755360 Change-Id: I711e86eb5a31902ba5b2e1b6df444b009aef2727
2019-10-14Merge RP1A.190923.001Steven Laver
Change-Id: I293059a06fd09d0377ea06c58cf62eeb31d4668e
2019-10-11Merge "Fix annotations in ImsSmsImplBase" am: 90f4c2abe4 am: f9f5ebd9ca am: ↵Brad Ebinger
0b37c14f40 am: 5525fd1924 Change-Id: Ia1f86f758e81e50c0a51d59d74d21fb1f695be67
2019-10-10Fix annotations in ImsSmsImplBaseBrad Ebinger
Bug: 141568452 Test: manual Change-Id: Iad595b75d47dc9fd356e6362e3adbcb5815e375d
2019-10-03remove API RoleManager.getFinancialSmsChen Xu
getFinancialSms is not functional and not used today, thus remove it to avoid future confusion Bug: 138745655 Bug: 140908357 Test: atest android.telephony.cts.SmsManagerTest Change-Id: Ib57d0fc189b6c894227894ee02b592f7ee46f22f