summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJin Seok Park <jinpark@google.com>2020-02-06 23:26:07 +0900
committerJin Seok Park <jinpark@google.com>2020-02-10 13:57:21 +0900
commitf2af1112fa72329e4ffc616f6184a084868b037e (patch)
treefd8c9b81048159a020f031a1188ab34b67305f4b /tools/aapt2/java/JavaClassGenerator.cpp
parenta7db3c8e79156b903e941bcbaeb5458bdfa7c351 (diff)
Fix bug where JPEG file with XMP is incorrectly saved
Currently, even if a JPEG file has an XMP data stored separately from the EXIF data, it saves it as an EXIF tag, and when ExifInterface#saveAttributes is called, the XMP data is stored inside the EXIF data. This can cause a problem since the maximum bytes that an EXIF data can hold inside a JPEG file is 65536 bytes, and having the XMP data inside the EXIF data can make the EXIF data exceed this limit. This CL solves this issue by separately saving the EXIF data if it existed separately in the original file. Bug: 147778520, Bug: 149010485 Test: manually with file attached in bug Change-Id: I320942858beb14cc3b2e80330857089a0ad26533
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions