Delete call logs when calls are made without PBAP
PbapClientConnectionHandler has code to remove calllogs when PBAP
disconnects. However, if PBAP was never connected/enabled in the first
place, and calls are made over HFP, these calllogs will not be removed
when the device disconnects. This CL ensures calllogs are still removed
in this case.
Bug: 143723278
Test: (1) Verifying call logs are removed: Connect phone to carkit
without enabling PBAP (e.g., don't allow permissions during pairing).
Place a phone call over Bluetooth. Examine the calllog database
directly: "sqlite3 calllog.db .dump” to verify call entry is present.
Disconnect Bluetooth from the phone. Examine database again to verify
entry is deleted. Repeat by disconnecting from the carkit, as well as
disconnecting only HFP. (2) Verifying only HFP call logs are removed:
Connect phone to carkit, with PBAP enabled this time. Place a phone call
over HFP. Disable HFP profile, leaving PBAP enabled. Verify the
HFP-entry is removed from calllog.db, while the PBAP-entries are still
present.
Change-Id: I305b323194f7732967db9a086d2c8a689798e64d
1 file changed