OSDN Git Service

Wait a bit longer for wifi to shut down before rewriting the config
authorChristopher Tate <ctate@google.com>
Fri, 7 Aug 2015 17:57:01 +0000 (10:57 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 7 Aug 2015 17:57:01 +0000 (10:57 -0700)
commit907e01eb7083c54aa1e840ea4e76a6518a028a72
treecdd7216833f97deb1ecc64b19784251c725a4d5a
parentbb55aa1a93cee91a40b6f5941675682cb6f8a83b
Wait a bit longer for wifi to shut down before rewriting the config

We've seen case of it taking longer than 1500ms for the wifi system to
actually shut down after the triggering settings element is written,
so extend the wait time a bit.  We've seen it take more than 1500ms
but not more than 2500ms, so that's the new heuristic.

This will of course all become happily obsolete once we start
applying restored AP definitions programmatically rather than by
filesystem-level operations.

Bug 22979342

Change-Id: I6acf1baac23d4100124093128b82abf242b11a0e
packages/SettingsProvider/src/com/android/providers/settings/SettingsBackupAgent.java