Skip to content

Instantly share code, notes, and snippets.

@ncalexan
Created September 17, 2012 17:34
Show Gist options
  • Select an option

  • Save ncalexan/3738668 to your computer and use it in GitHub Desktop.

Select an option

Save ncalexan/3738668 to your computer and use it in GitHub Desktop.
Notes on Bug 790931
* Notes on Bug 790931 - Unable to remove the Sync account when there are multiple Firefox versions synced
- Have to consider deleting remote client records as well.
- Android is supposed to tell installed Apps when an Account is
deleted.
- This is the 80-90% case, possibly more.
- If a user has one App on SD card, presumably they can't afford
the space for two. But perhaps they keep one around just in case...
- In the case of one App on SD card and one on phone, can we always
guarantee that the phone App is the Authenticator? If so, we
could maintain an internal database of
username/clientID/lastModified, and include lastModified in the
unpickle request. Then SD card would not unpickle too aggressively.
- In the case of two Apps on SD card, we're probably okay: they're
both on or off at the same time. If both off, you can't remove
the Account since it's not present. If both on, they should both
receive the Android account deleted message.
- It is technically possible to access SharedPrefs from two Apps:
- key word is `createPackageContext`
- http://stackoverflow.com/questions/6030321/android-retrieving-shared-preferences-of-other-application
- http://androiddhamu.blogspot.in/2012/03/share-data-across-application-in.html
- Or a database: http://stackoverflow.com/questions/7053809/share-sqlite-database-between-2-android-apps
- entails set of Apps knowing a total-order on the members of the
set of Apps, so that we can always try to write the data as
robustly as possible.
- Order of App installation is tricky -- creating a shared DB
in partitioned space is a lot like Sync...
- Add/remove App cycles can really mess things up...
- Could we write a MODE_WORLD_READABLE file in the cache
directory?
- No -- there is no shared storage AFAICT
- I don't think an Android service will help, since we can't
guarantee any particular service will be running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment