Allow ModernMediaScanner to set MEDIA_TYPE

ModernMediaScanner resolves the right MEDIA_TYPE based on mime type,
exif metadata and path of the file. This value should not be overwritten
by ContentProvider#insert which only resolves MEDIA_TYPE based on mime
type.

Changed insertFile to allow system/ModernMediaScanner to set MEDIA_TYPE

Test: atest packages/providers/MediaProvider
Bug: 148585977
Change-Id: I5bca66d4df37e08469f91b1d1ca1dd841e16e859
1 file changed