Loading
Change saveAttributes implementation
Context: http://shortn/_b43rjiwjmE TLDR: saveAttributes renames and removes original file, which results in MediaProvider removing it from its DB and thus unintentionally removing other associated data. This CL changes saveAttributes implementation to copy the original file to a temp file and write over the original file instead to prevent it from being removed in the MediaProvider DB. See aosp/1428429 for reference. Bug: 168706052 Test: atest CtsMediaTestCases:android.media.cts.ExifInterfaceTest Change-Id: Ib01471e5fb8f1610a9a8eba741bea9a084021151