OSDN Git Service

Fix black wallpaper after repeated crashes
authorAdrian Roos <roosa@google.com>
Tue, 6 Sep 2016 18:40:53 +0000 (11:40 -0700)
committerAdrian Roos <roosa@google.com>
Tue, 13 Sep 2016 00:47:27 +0000 (00:47 +0000)
commitc3f915e4824d24b653098ac4410e488e2f646ed9
treec12e91eb216cf1f86ca0a6d470c19de15b9954e5
parenta2153e6246138d303fe824d99aadf28886767743
Fix black wallpaper after repeated crashes

Adds logic to recover from a repeatedly crashing wallpaper. Before,
a wallpaper that crashed twice but not within 10s would not trigger
the recovery logic in WallpaperManagerService, but would also not be
restarted by ActivityManager (because two crashes will effectively
disable a service connection), thus resulting in a black wallpaper.

Change-Id: Ie4f7862dc07a89d13f5e2b56c825a3371ea21114
Fixes: 30250003
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java