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
1 file changed