commit | b3af4ec8ca25a0719b2cccf089e314496ed8a3b4 | [log] [tgz] |
---|---|---|
author | derek.li <derek.li@realtek.com> | Sat May 06 18:29:35 2023 +0800 |
committer | derek li <derek.li@realtek.com> | Sat May 06 10:33:45 2023 +0000 |
tree | b0aa91ab4f4c110d26f0ffd29ebb4a117c07b8d8 | |
parent | 51590682473d92609f63a681bff019c8c37e84d0 [diff] |
Add 2 seconds sleep to allow the device config change to be applied. On low-end devices, the device config(KEY_DEFAULT_FGS_STARTS_RESTRICTION_ENABLED) change may not apply in time. It will block starting the forground service from backgroud. Bug: 281215895 Test: run cts -m CtsAppTestCases -t android.app.cts.ActivityManagerFgsBgStartTest#testFgsLocationStartFromBG Change-Id: I9eaded77e132395fa032a0066ed10d5ad40c0e7e