Comment 4 for bug 1353591

Revision history for this message
Ondrej Kubik (ondrak) wrote :

I have investigated similar issue on krillin.
In case of krillin hw clock is set at the factory to 1st of January 2014, 0:00am.
This causes first boot (out of the box experience) to last 2mins 40 seconds before welcome wizard appears, with over 2minutes of it being white screen with bootloader logo (Google in case of N4, BQ for krillin)
Proposed and tested fix is to have upstart job, which would check time stamps of installed custom and rootfs builds. HW clock is then adjusted to those time stamps.
This will not set time to correct value, however it will set it to something more realistic and at least to time which is ahead of the time when images in the phone were built, and more importantly when apparmour caches were created.
This makes first boot accept precompiled apparmour caches.