DO NOT MERGE Avoid path traversal in MediaProvider delete call

Added changes to ensure invalid paths are not inserted into MP database
and cannonical path is used during file deletion.

Test: atest MediaProviderTest
Bug: 221855295
Change-Id: Ibeadf4425ae4ecc39613b8c1fb190319dc98b2f6
(cherry picked from commit 18939f61c18602131116ac12eabaf5016f7b5180)
Merged-In: Ibeadf4425ae4ecc39613b8c1fb190319dc98b2f6
4 files changed