Don't allow creating or renaming files with invalid characters
If invalid characters are used in a file name, MediaProvider rewrites
the path while inserting the file to database. We should never rewrite
file name for files created through file path.
When creating or renaming files through file path, throw error if
invalid FAT characters are used in file name.
Since file name in the lower file system will always be same as file
name in the database, changed Fuse operations to not use sanitized path.
Test: atest FuseDaemonHostTest#testCantCreateiOrRenameFileWithInvalidName
Test: atest packages/providers/MediaProvider
Bug: 148585977
Change-Id: Ib74ff9da5ecaf1a4bffc69ddf04fac7be7d9d890
4 files changed