diff options
author | Tetsutoki Shiozawa <tetsutoki.shiozawa@sony.com> | 2018-02-02 14:18:43 +0900 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2018-02-21 16:47:34 -0800 |
commit | e3f4269bcc484c5a179c6d3d81517983e909ee3f (patch) | |
tree | 6ef1310df8fd9a73ff6ce60181f527f832602b17 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3190439f2a9d990cc7428fd82cd9b52802e6aa22 (diff) |
Explicitly restart the killed wallpaper service
Symptom:
Live wallpaper setting was reset when a wallpaper service was killed
by Lmk. The wallpaper fell back to the default image wallpaper. It's
a black bitmap.
Root cause:
When restarting wallpaper service takes more than 10 seconds, it's
treated as a bad wallpaper. The wallpaper setting is reset to remove
the bad wallpaper.
This is not a suitable solution under the low memory situation.
Multiple processes are killed by Lmk at one time. Killed services are
automatically restarted by AMS with a few seconds interval.
The restart interval is increased by a factor of the number of killed
services. Sometimes, it takes more than 1 minute.
Solution:
When a wallpaper service is killed, WallpaperManagerService requests
restarting the service immediately. It can ignore the restart interval.
Bug: 73071020
Test: atest CtsAppTestCases:WallpaperManagerTest
Change-Id: Id5bb1cf121029a513f8773597f296b47667d1e21
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions