Add a persistent marker that indicates, on boot, whether the device firmware was flashed or updated. In other words: did this boot just occur because of a firmware flash?
Reason: The application needs to distinguish a normal reboot from a boot that occurred after new firmware was installed.