summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author William Loh <wloh@google.com> 2024-08-19 17:34:21 -0700
committer William Loh <wloh@google.com> 2024-08-21 14:54:01 -0700
commitca0bcfee7f46e717914df88192a47b962f9b2ee0 (patch)
treee88236ceef77056c929926d9b88c87a04feed7f4 /libs/input/PointerController.cpp
parent3beaa244af57fde2d6ce5d6183df44062a4eca0f (diff)
Set correct install times for system user
The firstInstallTime and lastUpdateTime for the system user was being set to the currentTime if the firstInstallTime is 0 when scaning non-system package during device boot. This resulted in the firstInstallTime and lastUpdateTime incorrectly to be set to the currentTime even when the package was already installed earlier for another user. Fixed this to only set the firstInstallTime and lastUpdateTime if the earliestFirstInstallTime is 0. Additionally set the firstInstallTime in commitPackagesLocked when setting the lastUpdateTime when replacing a packge. This should result in correctly setting the firstUpdateTime when installing a existing package for a different user. Bug: 360751150 Test: atest AppMetadataTest Flag: EXEMPT bug fix Change-Id: Ibb809611c8cd63709d1844a94137d628174aaf29
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions