Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

[DRAFT] Reusing sync code to persist data of other apps

esteewhy edited this page Oct 17, 2013 · 3 revisions

I want to implement a network persistence/synchronization layer for my Android app.

It looks like the most of server-side infrastructure can be borrowed from Firefox Sync Server codebase as it is.

From a client-side high level perspective, to accomplish the goal, all Fennec entities/collections (tabs, bookmarks, passwords, and so on) need to be replaced by those of my app.

Basing on my experience so far, the practical steps that need to be performed after obtaining sources of this project:

By this time code should be compilable and deployable to a hardware device.

Suitable starting point in the code to start with might be:

org.mozilla.gecko.sync.GlobalSession.prepareStages()

This method defines a synchronization workflow.

(to be continued)

Clone this wiki locally