commit | 663f1448c32f6e586813730d00cd0174998b8052 | [log] [tgz] |
---|---|---|
author | Sahana Rao <sahanas@google.com> | Mon Apr 27 20:13:09 2020 +0100 |
committer | Sahana Rao <sahanas@google.com> | Tue Apr 28 13:49:40 2020 +0100 |
tree | 8c92402db36cfe9da2a2543de4ce67ce0b59ab59 | |
parent | 76bdc0727a13c253e73d6f159cda92e4b571a769 [diff] |
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