commit | 8e1b1be29aa99acf1b3e650a1fd87ecf85002329 | [log] [tgz] |
---|---|---|
author | Varun Shah <varunshah@google.com> | Mon May 06 07:03:41 2024 +0000 |
committer | Varun Shah <varunshah@google.com> | Mon May 06 07:09:35 2024 +0000 |
tree | e19027ece5149da3eb8c071ae49611529e438706 | |
parent | c595dc654cd2f6a4426c1993f3792044972c7798 [diff] |
Update reset logic for time limited foreground services. - When the app is force-stopped, reset its limits to handle cases where the user force stops an app when it continously crashes. - When the app is currently in the TOP state (or better), also reset its limits even if the time limit has been exhausted since this could be a user requested FGS start. Bug: 330399444 Test: atest CtsFgsTimeoutTestCases Change-Id: I80687713591cf146b70f196a4ffaeb0f3c26a1e5