Fix redacted URI APIs for cross-user URIs
Currently cross user URIs i.e. URIs with authority [userId]@media
(example: 0@media) breaks the redaction URI APIs because MP doesn't
support certain operations on (such as DB access) using cross user
URIs. Hence strip the user id before passing on the URI(s) to MP
(if present) and add them back later (if stripped earlier).
Test: Manually via steps mentioned on b/195532912.
The API was throwing exception prior to this change, now they don't.
Also the phone rings successfully which wasn't the case earlier.
Bug: 195532912
Bug: 194875207
Bug: 195471117
Change-Id: I2d56e29c6a77c801f649408a460339643f4b2cdf
(cherry picked from commit 61a747ea908bae5471bcbb538e09b523fde5ee34)
1 file changed