Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b0add93b authored by Andrew Cheng's avatar Andrew Cheng Committed by Joseph Pirozzo
Browse files

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
Merged-In: I305b323194f7732967db9a086d2c8a689798e64d
(cherry picked from commit f74a94df)
parent 8cc90212
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment