OSDN Git Service

Only cancel syncs for non-existent accounts
authorRubin Xu <rubinxu@google.com>
Fri, 1 Apr 2016 16:47:28 +0000 (17:47 +0100)
committerRubin Xu <rubinxu@google.com>
Thu, 7 Apr 2016 12:42:33 +0000 (13:42 +0100)
commit2c548e0e11436b2dca2e45d9a80ac545d647a3ca
tree0b09d31c418085c70f3ae2b85e268a28bda5bafc
parent8da25ef74afaa63e1ba2814f219c0d0bac2abf7e
Only cancel syncs for non-existent accounts

updateRunningAccountsH() should check syncs against all accounts
on the device, not only running accounts.

Also add code to restore wrongly-canceled periodic syncs, saving
users from a bad state where the only alternative is to remove and
readd affected accounts.

Bug: 27733283
Change-Id: I96bce87571c3b7c6cd1934cc967f11257f891f55
services/core/java/com/android/server/content/SyncManager.java
services/core/java/com/android/server/content/SyncStorageEngine.java