Skip to content
Commit 1588ae80 authored by Jin Seok Park's avatar Jin Seok Park
Browse files

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
parent 697b8ced
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment