summaryrefslogtreecommitdiffstats
path: root/rcs/rcsservice
Commit message (Collapse)AuthorAgeFilesLines
* Add additional sub ID checks for race casesBrad Ebinger2020-04-131-0/+9
| | | | | | | | | | In some race cases, publish requests will be triggered when the sub ID has changed to INVALID. Check for this condition and return IMS services as not capable. Fixes: 153369874 Test: manual Change-Id: I2092656c210f0ddc8421960c548c27cad1096434
* Turn off polling until user opt-in occursBrad Ebinger2020-03-032-0/+29
| | | | | | | | | Deny contact capability requests until opt-in occurs. Bug: 111305845 Test: atest CtsTelephonyTestCases;manual Change-Id: I3acf2c5b16239e97cd445d5f9cd04002c0d94707
* Fix typo in log statementBrad Ebinger2020-02-071-1/+1
| | | | | | Bug: 149100088 Test: verify logcat Change-Id: I72ae99fe60e7868b6c8d805f528880724198f6a6
* Refactor of Telephony dependenciesBrad Ebinger2020-01-302-12/+8
| | | | | Test: verify RCS registration to network Change-Id: I58dd070e7ede11b42bba7e72933e63d3d9602e5a
* Better support requesting capabilites in PresenceSubscriberandroid-r-preview-1Brad Ebinger2020-01-273-4/+4
| | | | | | | | | Need to add request ID to response for tracking in telephony. Bug: 111305845 Test: atest CtsTelephonyTestCases:RcsUceAdapterTest Merged-In: I3c68e852af1f0df98778619efd9c219aef374b4c Change-Id: I3c68e852af1f0df98778619efd9c219aef374b4c
* [RCS] Add APIs to update and remove PresencePublisher and SubscribePublisherJames.cf Lin2020-01-172-25/+108
| | | | | | | | | | The PresencePublisher and SubscribePublisher could be null if RCS is unregistered. Add update and removed apis to update the publishers. Bug: 139262111 Test: manual Change-Id: Ibbe665591f51e81dd18a39ec378fd36224561913
* Remove remaining TaskManager dependencies from RcsStackAdaptorBrad Ebinger2020-01-153-56/+74
| | | | | | | | | PresencePublication should be using TaskManager to manage existing presence tasks, not RcsStackAdaptor so other usages of the lib do not need to also perform this management. Test: manual; verify presence publication still works Change-Id: Iaf7d4b07b49da97d96739d4c33eec6850a9bce18
* Finish removing remaining telephony dependenciesBrad Ebinger2020-01-155-326/+431
| | | | | | | | | | | Removes final @hide telephony dependencies and tracks the current subscription being used by using the default subscription (default voice, followed by default data, followed by any), since we do not support full MSIM Fixes: 147319232 Test: verified switching default sub switches stacks properly. Change-Id: I92f7583742fde5f323158985e5a80c271f16257c
* Use @SystemApi methods to interact with telephonyBrad Ebinger2020-01-136-203/+205
| | | | | | | | | | | | | | | As part of the Telephony mainline effort, remove @hide dependencies on telephony in RCS: 1) Use ImsMmTelManager/ProvisioningManager for querying configs. 2) Expose UCE APIs that are needed so far. 3) Use @SystemApi versions of SubscriptionManager/TelephonyManager APIs 4) In PresencePolling app, track default subscription as active SIM for capability polling (since it doesnt support MSIM yet). Bug: 147319232 Test: atest CtsTelephonyTestCases; manuallay add contacts, check publish Merged-In: Ia9f1e8a94896a11201dbd66344fc1caf0589ffc7 Change-Id: Ia9f1e8a94896a11201dbd66344fc1caf0589ffc7
* Remove dependencies on library (2/2)Brad Ebinger2020-01-0823-741/+1175
| | | | | | | | | | | | | Moves all RcsService dependencies into app code and only leaves impl agnostic code in lib. One dependency left: RcsStackAdaptor should not be modifying tasks for resquestPublication, that should be done inside of PresencePublication because we need to move this code to Telephony. Test: Manual testing contact add/rm and verify vt status Change-Id: I4bef16c1e2aba257054b8d1208e82c5385bd4713
* Clean up hidden dependenciesBrad Ebinger2019-12-1719-424/+262
| | | | | | | | | | 1) Remove imports that are not used 2) Remove hidden dependencies from RcsService. ucepresencelib is next. Bug: 111305845 Test: build; manual test of capability query. Change-Id: I8377325709ca64ee0e0b9e881c54e69b4855200e
* Revert "[RCS] Implement ImsService API in RcsService"Brad Ebinger2019-12-1413-893/+88
| | | | | | | | | | This reverts commit ddb443700e0dd57d99d658ee19fe807554a9ec19. Reason for revert: This caused a regression in UCE functionality on R devices. Bug: 146237308 Test: manual, verified RCS is working correctly. Change-Id: Id759cc981c44b0017a6f508bc0bae6639548276c
* [RCS] Implement ImsService API in RcsServiceallenwtsu2019-11-1913-88/+893
| | | | | | Test: live test Bug: 139261235 Change-Id: If497367f0f1accce58f502d608f9507654a92fe3
* Merge "Add missing LICENSE files for UCE code"Brad Ebinger2019-10-141-0/+25
|\
| * Add missing LICENSE files for UCE codeBrad Ebinger2019-10-101-0/+25
| | | | | | | | | | Test: check Third-Party Licenses in settings Change-Id: I4be92db15f4a26dd9585d7d83769a41a5c67eff3
* | Refactor presence code to be in a java lib for usage in TelephonyBrad Ebinger2019-10-028-26/+65
|/ | | | | | | | | We need access to the UCE presence code in Telephony, next step will be to refactor out non public/system dependencies. Bug: 111305845 Test: sanity; compiles Change-Id: Ic570c862386fd20666f44db6adcb8c3e60b99784
* Convert Android.mk file to Android.bpandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-q-preview-1Sasha Smundak2019-02-202-50/+43
| | | | | | | | | See build/soong/README.md for more information. Fixes: 122331932 Test: treehugger Change-Id: Iab00f22da9e813d14ced471878d8e3a35024eb38 Merged-In: Iabca84a02451ac57774e4e7263f9de5ff0e38c4e
* Do not start init until ACTION_UCE_SERVICE_UPBrad Ebinger2018-11-272-28/+7
| | | | | | | | | | | | | | We were trying to get the UCE service before it was sending the correct intent, which would sometimes cause it to lock up (in certain race conditions). Remove init when starting RCS service as well as when IMS is connected. The UCE_SERVICE_UP intent is sticky, so there is no problem restarting the RcsService if it crashes. Bug: 119309891 Test: Manual Change-Id: I39eeb5ca497408893b8a3e4e5b5644cfcecadf35
* Build com.android.ims.rcsmanager with static library am: 2236205ce0Sundong Ahn2018-07-182-4/+3
|\ | | | | | | | | | | am: b14564f3b3 Change-Id: I166451fc55dbe9390b338dc95cef22c50bcd5f7d
| * Build com.android.ims.rcsmanager with static librarySundong Ahn2018-07-122-4/+3
| | | | | | | | | | | | | | | | | | | | | | The com.android.ims.rcsmanager doesn't need to be a shared library. So it is built with static library. Bug:77577799 Test: make -j Test: adb shell ps -A | grep com.android.ims.rcsservice Change-Id: Iac2c05ebd3c3ca4bd5f5987ea47f4d4a04d6c865
| * Move VT ContentObserver to TelephonyProvider.android-p-preview-5android-p-preview-4Brad Ebinger2018-06-111-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | The user VT setting was moved from settings into the TelephonyProvider in P. RCS presence service is still relying on ContentObserver changes in settings. Move over to listening for changes in the siminfo database and query VT user setting for that instead. Bug: 78076949 Test: manual, enable/disable user VT setting and watch Presence changes. Merged-In: Ib1acb9ec23482a32ebded0e6730547920358b98f Change-Id: I5d793b043ef10640c9d355371b703a697798804f
| * Move protected broadcasts to TelephonyBrad Ebinger2018-06-062-25/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Protected broadcasts defined in rcsservice manifest were still being flagged with WTFs. Moved to Telephony Manifest. Also cleaned up an old intent that is not used and only use explicit intents for Alarm Receiver. Bug: 76179999 Test: Manual, make sure WTF doesn't occur Merged-In: Ie3667c8359c4050ab9558c990352ee0d1049480b Change-Id: Id1c8b2bd7b89fcce64bfa214690447b3ca644928
* | Perform a retry if creating the presence service failsandroid-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-devpie-b4s4-releasepie-b4s4-devBrad Ebinger2018-06-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | If the service handle's value is < 0, perform a retry instead of blocking indefinitely. Bug: 109782868 Test: Add contacts and make sure device publishes status and retrieves capabilities. Change-Id: I54f52b54a30f49c0834963df76a42d89a6e589bf
* | Move VT ContentObserver to TelephonyProvider.pie-devBrad Ebinger2018-04-261-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | The user VT setting was moved from settings into the TelephonyProvider in P. RCS presence service is still relying on ContentObserver changes in settings. Move over to listening for changes in the siminfo database and query VT user setting for that instead. Bug: 78076949 Test: manual, enable/disable user VT setting and watch Presence changes. Change-Id: I5d793b043ef10640c9d355371b703a697798804f
* | Move protected broadcasts to TelephonyBrad Ebinger2018-03-282-25/+5
|/ | | | | | | | | | | | | Protected broadcasts defined in rcsservice manifest were still being flagged with WTFs. Moved to Telephony Manifest. Also cleaned up an old intent that is not used and only use explicit intents for Alarm Receiver. Bug: 76179999 Test: Manual, make sure WTF doesn't occur Change-Id: Id1c8b2bd7b89fcce64bfa214690447b3ca644928
* Merge "Destroys the Presence Service when service is down."android-wear-p-preview-2android-p-preview-3android-p-preview-2android-p-preview-1Brad Ebinger2018-02-231-0/+12
|\
| * Destroys the Presence Service when service is down.Brad Ebinger2018-02-221-0/+12
| | | | | | | | | | | | | | | | | | Also calls destroyPresenceService when UCE_SERVICE_DOWN is received to make sure everything is cleaned up properly. Bug: 73558136 Test: Manual Change-Id: I3f02616c226b35e4979075c4073d1353b13e6455
* | external/ims: Set LOCAL_SDK_VERSION where possible.Anton Hansson2018-02-231-0/+1
|/ | | | | | | | | | | | | | | | This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I682b936f71e10800e5d9163e1cb823cfc362a030
* Update Import statementsBrad Ebinger2018-01-311-1/+1
| | | | | | | | | | Updates import statements to support ImsService API changes Bug: 63987047 Test: Build Merged-In: I75fa06c37ff4161a203f78b2c32ec041a5e0815c Change-Id: I75fa06c37ff4161a203f78b2c32ec041a5e0815c
* Replace ImsManager static methods with non-static.android-wear-8.0.0_r1Malcolm Chen2018-01-121-11/+16
| | | | | | | | | | ImsManager static methods are deprecated since it doesn't support MSIM devices. Bug: 67602046 Test: build and regression tests Change-Id: I568687c9f3761441d254de2453a6c7df15fff151 Merged-In: I568687c9f3761441d254de2453a6c7df15fff151
* Wait until the SIM is loaded for IMS Registrationoreo-dr1-devBrad Ebinger2017-08-091-4/+17
| | | | | | | | | | | | We need to wait until a sim is detected an loaded to register for IMS Registration updates, or there is a possibility that we will try to register for an IMS Registration listener with an invalid Phone Id. Bug: 64375490 Test: Manual Change-Id: I2f2f9c33908a1ce049f8025c1fa3f06ba4b27032
* Stop RcsService crash when CarrierConfig misbehavesBrad Ebinger2017-05-041-3/+8
| | | | | | | | | When the CarrierConfig config returns null, we do not crash anymore. Bug: 37868318 Test: Manual Testing Change-Id: Icb6d2d99bc108d5c238f1a90ef382457f6c43f35
* Turn implicit RCS broadcast to startService instead am: d4d3d762a7 am: ↵Brad Ebinger2017-02-151-3/+15
|\ | | | | | | | | | | | | | | ee8176647d am: eafc81d8b1 am: 01e835687e Change-Id: Ieb7dc17ebe2cce3276c3e6480291cff64ec88e10
| * Turn implicit RCS broadcast to startService instead am: d4d3d762a7 am: ↵android-wear-o-preview-4android-wear-o-preview-3android-o-preview-2Brad Ebinger2017-02-151-3/+15
| |\ | | | | | | | | | | | | | | | | | | | | | ee8176647d am: eafc81d8b1 Change-Id: I8a50953adbb0fcb035a0d344f339110d9be6fdf8
| | * Turn implicit RCS broadcast to startService insteadandroid-o-preview-1o-previewBrad Ebinger2017-02-141-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With background check enabled, RcsPresence.ACTION_PUBLISH_STATE_CHANGED is no longer starting the PersistService in the RcsStackAdapter. This change removes the receiver and instead launches the service directly when the PersistService is needed. Test: Manual Bug: 35319937 Change-Id: I4395ce9b1baa2e23bb10208e0de4aedf11de5051
* | | Sync mobile data status to modem on device bootup am: 2605a94fb3Meng Wang2017-01-031-0/+6
|\| | | | | | | | | | | | | | | | | am: b81da0ec47 Change-Id: Ice1bf49834d46e0c32c710ef7d905c67c60ddcf5
| * | Sync mobile data status to modem on device bootupandroid-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1nougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-releasenougat-mr2-pixel-releasenougat-mr2-devMeng Wang2016-12-191-0/+6
| |/ | | | | | | | | Bug: 32580033 Change-Id: Idaf55df062f30df7853bbaa0a4ae192ed20e9f4b
* | Update ImsConnectionStateListenerMeng Wang2016-12-121-2/+2
| | | | | | | | | | | | | | | | | | 1. Replace onImsConnected() with onImsConnected(int) 2. Replace onImsProgressing() with onImsProgressing(int) Bug: 33430556 Test: m Change-Id: If077b960c44ca2aa71c26bdec3505208fc6d9333
* | Modify the PresenceListener AIDL implementationBrad Ebinger2016-11-091-0/+4
| | | | | | | | | | | | | | | | Modifies the IPresenceListener AIDL implementation to include a new method unpublishMessageSent(). Test: Manual Testing Change-Id: Ic6cc0c72be12b614baa486d988b7a6fb8efa3c55
* | Update reference to carrier_volte_provisionedJordan Liu2016-10-051-2/+5
|/ | | | | | | | | Update the reference to config_carrier_volte_provisioned. With the move to carrier config this value should be retrieved using CarrierConfigManager. Bug: 29873049 Change-Id: I687518178ac64003d2ca7cfc782bdc29582511f1
* Monitor provision status change and handle it accordinglyBrad Ebinger2016-08-041-1/+6
| | | | | | | | Upstreaming a Motorola bug that updates the provision status for a device if it is changed. Bug: 30679688 Change-Id: Ibd7e2ad03feacd9adc088e6d55f86eeeb66b50ad
* Fix synchronization issues in RcsStackAdapterBrad Ebinger2016-07-281-144/+167
| | | | | | | | Fixes a NPE in the RcsStackAdapter due to multiple threads accessing unprotected private state variables. Bug: 30359573 Change-Id: I7344520658c6f1e57a7ffd1a7124bd218f92eba5
* Make RCS broadcasts protectedBrad Ebinger2016-07-271-0/+2
| | | | | | | | Mark overlooked RCS broadcast intents as protected. Change-Id: I1adb82ae6d3ff4818263030d95419fa8f3dbe0ac Fix: 30430669 Fix: 30402079
* Protect Presence and EAB broadcastsPavel Zhamaitsiak2016-06-241-0/+1
| | | | | Bug: 29581795 Change-Id: Ide70a3490ceb353f415794e2c5bdb40c28db8f96
* Do not log phone number and name even for debug.Vineeta Srivastava2016-06-235-14/+0
| | | | | Bug: 29596374 Change-Id: Ibd9f810627955c7f5cadb1ff0b0eebddaff9f270
* Protect com.android.service.ims.presence.retry broadcastPavel Zhamaitsiak2016-06-151-0/+1
| | | | | Bug: 29228175 Change-Id: Ifc8b3196f17caddf38d23b4a60ac6dee34695a62
* Move rcs from frameworks/opt/net/ims to external/imsPavel Zhamaitsiak2016-05-0223-0/+5743
Bug: 27811089 Change-Id: I4ac4948096373f1dfe119d21c7d0870ccdb061db