mozilla-services/android-sync — pull request #157 by ncalexan (2012-04-11 22:21:11+00:00)
Title: Bug 739629 - Expose safe account creation API for profile migration.

* expressly allows to create two accounts -- see tests.
* will fail on creating exact duplicate account -- see tests.
* introduces possibility of failing in J-PAKE `complete` after successful J-PAKE stage -- not clear that I've handled that scenario well (but it is *exceedingly* rare, since we don't even start J-PAKE if a sync account is present).
* would appreciate signoff on docs in `SyncAccounts.java` and usage examples in `TestSyncAccounts.java`.