diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2016-09-27 17:15:11 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2016-09-28 11:10:00 -0700 |
commit | ec727411d2d97ba79d3e32edb304279af078377e (patch) | |
tree | 810a930440da1463ac4feba8a65dc5116687e334 /tools/aapt2/diff/Diff.cpp | |
parent | 29678c0357b5803ae41ad10639da5656d3c285d5 (diff) |
DngCreator: Do not cache timezone in static initializer
The static initializer for a pre-loaded framework class is run
no later than at zygote startup, which happens at device boot.
Which means that if the timezone later changes, DngCreator will use
an incorrect cached timezone until the next reboot. This is especially
evident in freshly wiped devices, where initial setup will typically
change the timezone.
Instead, read the timezone each time DngCreator is created, which is
also when we query the current time for constructing the timestamps.
Test: android.hardware.camera2.cts.DngCreatorTest#testSingleImageThumbnail
Bug: 31743060
Change-Id: I83a4eac762650e5f904f3b8fa779c094cef30562
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions