Prevent corrupting image files when disk is full.

When android.media.ExifInterface.saveExifData() is called, the original file will be corrupted if the disk is full.
Originally from: https://partner.source.android.com/g/#change,1008
1 file changed