summaryrefslogtreecommitdiff
path: root/libs/androidfw/PosixUtils.cpp
diff options
context:
space:
mode:
author Sarp Misoglu <sarpm@google.com> 2024-12-19 22:06:38 +0000
committer Sarp Misoglu <sarpm@google.com> 2024-12-23 16:54:10 +0000
commitbb80de0b84e607a07be352f0820fdd179432b808 (patch)
treeeb50389ed193e4b9db897a509a5bc5aec45cea55 /libs/androidfw/PosixUtils.cpp
parent75929fcf5b46c310035a080709a612fb80273516 (diff)
Acquire the backup wakelock with a timeout
There have been a few reports of the backup service failing to call release() on the wakelock and draining battery for hours. These are rare failures and hard to debug individually but with the timeout we will limit the worst case significantly. I am setting the default timeout to 30 minutes. This should be more than enough time for a backup or restore operation. If in the future these operation get longer, the timeout is configurable by a setting. Test: atest CtsBackupTestCases Fixes: 364931501 Fixes: 357769443 Fixes: 289789401 Flag: EXEMPT bugfix Change-Id: Iaac0218d5258031b6f67c3c56c776ce098e8a8c4
Diffstat (limited to 'libs/androidfw/PosixUtils.cpp')
0 files changed, 0 insertions, 0 deletions