Added AccountManager to getSystemService.

Closes #1342.