summaryrefslogtreecommitdiff
path: root/rcs
AgeCommit message (Collapse)Author
2018-04-26Move VT ContentObserver to TelephonyProvider.pie-devBrad Ebinger
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
2018-04-06Exempt tests from hidden API checks.Nicolas Geoffray
Bug: 64382372 Bug: 74963051 Test: m Change-Id: I570f74d9051dcd79ab52d55a4c7d3d0292f53ec6
2018-03-29Merge "Move protected broadcasts to Telephony" into pi-devBrad Ebinger
2018-03-28Move protected broadcasts to TelephonyBrad Ebinger
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
2018-03-26Update apct-suite presencePolling to have the base apkjdesprez
Apk + tests apk to ensure it works. Test: atest PresencePollingTests Bug: 74440293 Change-Id: I0a41fd65349510259db586c201a0f15c323320c8
2018-03-19Update AndroidTest.xml to be APCT suite readyjdesprez
Test: atest PresencePollingTests Bug: 74440293 Change-Id: I95b85fdcf9681ae64d563925d23fb8da23da4f75
2018-02-23Merge "Destroys the Presence Service when service is down."android-wear-p-preview-2android-p-preview-3android-p-preview-2android-p-preview-1Brad Ebinger
2018-02-23external/ims: Set LOCAL_SDK_VERSION where possible.Anton Hansson
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
2018-02-22Destroys the Presence Service when service is down.Brad Ebinger
Also calls destroyPresenceService when UCE_SERVICE_DOWN is received to make sure everything is cleaned up properly. Bug: 73558136 Test: Manual Change-Id: I3f02616c226b35e4979075c4073d1353b13e6455
2018-01-31Update Import statementsBrad Ebinger
Updates import statements to support ImsService API changes Bug: 63987047 Test: Build Merged-In: I75fa06c37ff4161a203f78b2c32ec041a5e0815c Change-Id: I75fa06c37ff4161a203f78b2c32ec041a5e0815c
2018-01-12Replace ImsManager static methods with non-static.android-wear-8.0.0_r1Malcolm Chen
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
2017-11-20Unregister the Receiver when the service is destroyedBrad Ebinger
When the PollingService is destroyed, we are not unregistering the associated receiver. This is causing an error when the service is started again. Also adds Test framework so we can test this case. Bug: 67797982 Test: Manual Change-Id: Ic27f3ffe3344a5030e30f1c72514d17fc5c465ae
2017-08-09Wait until the SIM is loaded for IMS Registrationoreo-dr1-devBrad Ebinger
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
2017-05-10Merge "Stop RcsService crash when CarrierConfig misbehaves" into oc-devandroid-vts-8.0_r2android-vts-8.0_r1oreo-devBrad Ebinger
2017-05-04Fixes Contact Modification BugBrad Ebinger
PresenceContact was being constructed incorrectly in some cases leading to contacts not being updated in the EAB database and never getting capability information. This change fixes the bug and removes the existing rows in the database. It then repopulates the DB with correct cached numbers. I have also dialed back the verbosity of the logging in general and hid PII. Bug: 37691655 Test: Manual Change-Id: I74e45eb3bcf47c3e03651421479f59aeb6762571
2017-05-04Stop RcsService crash when CarrierConfig misbehavesBrad Ebinger
When the CarrierConfig config returns null, we do not crash anymore. Bug: 37868318 Test: Manual Testing Change-Id: Icb6d2d99bc108d5c238f1a90ef382457f6c43f35
2017-04-05Listen to ACTION_CARRIER_CONFIG_CHANGED to start PollingBrad Ebinger
A race condition was recently introduced. If BOOT_COMPLETED happened before the SIM CarrierConfig was loaded, RCS thought it was not enabled and would not initialize. This changes the PollingService to start/stop Capability Polling when it detects a new SIM has been loaded. Bug: 36704571 Test: Test case outlined in 36704571 Merged-In: Iaa49a7666adcb8e1e538d33c9843218e34eac165 Change-Id: Iaa49a7666adcb8e1e538d33c9843218e34eac165 (cherry picked from commit 8915b138d8ddc581c6ef6c1e8c24763bd685dd4c)
2017-03-20Do not print debug messages/PII by default in RCSBrad Ebinger
Up the default logging level for RCS presence as to not include debug level logging in normal builds. Bug: 36406429 Test: Check logs Change-Id: I0f7a3577757a560e43554eeebc29b7d523cce7b8
2017-02-15Turn implicit RCS broadcast to startService instead am: d4d3d762a7 am: ↵Brad Ebinger
ee8176647d am: eafc81d8b1 am: 01e835687e Change-Id: Ieb7dc17ebe2cce3276c3e6480291cff64ec88e10
2017-02-15Turn implicit RCS broadcast to startService instead am: d4d3d762a7 am: ↵android-wear-o-preview-4android-wear-o-preview-3android-o-preview-2Brad Ebinger
ee8176647d am: eafc81d8b1 Change-Id: I8a50953adbb0fcb035a0d344f339110d9be6fdf8
2017-02-14Turn implicit RCS broadcast to startService insteadandroid-o-preview-1o-previewBrad Ebinger
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
2017-01-12Remove reference to directory that doesn't exist am: 4896eaa663 am: ↵Colin Cross
90921f9452 am: bb4bc7d3ce am: 73b20d7655 Change-Id: Ib22ffe450cb0267fc55d614d62f18cc1d55b2484
2017-01-12Remove reference to directory that doesn't exist am: 4896eaa663 am: 90921f9452Colin Cross
am: bb4bc7d3ce Change-Id: I041533d72f765adcee23d6a5374ba96fd0967c33
2017-01-11Remove reference to directory that doesn't existColin Cross
external/ims/provider/java doesn't exist, don't try to include sources from it. Test: m -j Change-Id: I591e91ade8d214342ca3050f4000a94906ad1476
2017-01-03Sync mobile data status to modem on device bootup am: 2605a94fb3Meng Wang
am: b81da0ec47 Change-Id: Ice1bf49834d46e0c32c710ef7d905c67c60ddcf5
2016-12-19Sync 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 Wang
Bug: 32580033 Change-Id: Idaf55df062f30df7853bbaa0a4ae192ed20e9f4b
2016-12-12Update ImsConnectionStateListenerMeng Wang
1. Replace onImsConnected() with onImsConnected(int) 2. Replace onImsProgressing() with onImsProgressing(int) Bug: 33430556 Test: m Change-Id: If077b960c44ca2aa71c26bdec3505208fc6d9333
2016-11-09Modify the PresenceListener AIDL implementationBrad Ebinger
Modifies the IPresenceListener AIDL implementation to include a new method unpublishMessageSent(). Test: Manual Testing Change-Id: Ic6cc0c72be12b614baa486d988b7a6fb8efa3c55
2016-10-14EABService and EABProvider improvementGao Bing
Removed some unused resources. Removed some redundant code. Fixed some bugs. Test: Manual Testing Bug: 30273045 Change-Id: Ifb027409805e87442c3f498190ff6da25e5a77c5
2016-10-05Update reference to carrier_volte_provisionedJordan Liu
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
2016-08-16RCS NPE when uppgrading to Nnougat-mr1-devBrad Ebinger
1) Fixes a crash upon upgrade to N where a null cursor was received when the data was damaged. 2) Adds permission to AndroidManifest for consistency. Bug: 30838787 Change-Id: I91196f3753e381d643b242f65469904e5cb4d603
2016-08-05Merge "Monitor provision status change and handle it accordingly" into ↵Brad Ebinger
nyc-mr1-dev
2016-08-04Monitor provision status change and handle it accordinglyBrad Ebinger
Upstreaming a Motorola bug that updates the provision status for a device if it is changed. Bug: 30679688 Change-Id: Ibd7e2ad03feacd9adc088e6d55f86eeeb66b50ad
2016-08-03Remove ACTION_EAB_RESET_CONTENT_OBSERVERS IntentBrad Ebinger
Replaces the ACTION_EAB_RESET_CONTENT_OBSERVERS PendingIntent with a Listener using the new AlarmManager.set() function in order to stop the non-protected broadcast from being sent. Bug: 30603480 Change-Id: I8919166b870bbfd7ebfe88cb54f7c39e2b630bb8
2016-07-28Fix synchronization issues in RcsStackAdapterBrad Ebinger
Fixes a NPE in the RcsStackAdapter due to multiple threads accessing unprotected private state variables. Bug: 30359573 Change-Id: I7344520658c6f1e57a7ffd1a7124bd218f92eba5
2016-07-27Make RCS broadcasts protectedBrad Ebinger
Mark overlooked RCS broadcast intents as protected. Change-Id: I1adb82ae6d3ff4818263030d95419fa8f3dbe0ac Fix: 30430669 Fix: 30402079
2016-07-06Disable PresencePolling w/o carrier supportMeng Wang
If CarrierConfigManager use_rcs_presence_bool is false, PresencePolling doesn't start. Bug: 29061605 Bug: 29636852 Change-Id: I76ccb0879e076a88c57bd38b2b8c83851d22a824
2016-06-24Protect Presence and EAB broadcastsPavel Zhamaitsiak
Bug: 29581795 Change-Id: Ide70a3490ceb353f415794e2c5bdb40c28db8f96
2016-06-23Do not log phone number and name even for debug.Vineeta Srivastava
Bug: 29596374 Change-Id: Ibd9f810627955c7f5cadb1ff0b0eebddaff9f270
2016-06-15Protect com.android.service.ims.presence.retry broadcastPavel Zhamaitsiak
Bug: 29228175 Change-Id: Ifc8b3196f17caddf38d23b4a60ac6dee34695a62
2016-05-02Fix buildPavel Zhamaitsiak
Change-Id: I60acefab3f7efcbb20729f966348c568c05f9f7e
2016-05-02Move rcs from frameworks/opt/net/ims to external/imsPavel Zhamaitsiak
Bug: 27811089 Change-Id: I4ac4948096373f1dfe119d21c7d0870ccdb061db