How to sync your Firefox with this server instead of Mozilla’s?
You can safely use the Mozilla-hosted Firefox Accounts server in combination with a self-hosted sync storage server. The authentication and encryption protocols are designed so that the account server does not know the user’s plaintext password, and therefore cannot access their stored sync data.
Alternatively, you can also Run your own Firefox Accounts Server to control all aspects of the system. The process for doing so is currently very experimental and not well documented.
To configure Firefox to talk to your new Sync server, go to
"identity.sync.tokenserver.uri" and change its value to the URL of your server
with a path of
Since Firefox 33, Firefox for Android has supported custom sync servers,
should be a breeze.
Solving problems with Android
The sure-fire way to know what Sync on Android is really doing is to
observe the Android device log using adb logcat. You’ll want to bump
adb shell setprop log.tag.FxAccounts VERBOSE
Then, you can observe the log using:
adb logcat | grep FxAccounts
It’s best to observe the log while you force a sync from the Android Settings App. You should see output like:
D FxAccounts(...) fennec :: BaseResource :: HTTP GET https://token.stage.mozaws.net/1.0/sync/1.5
D FxAccounts(...) fennec :: BaseResource :: HTTP GET https://sync-4-us-east-1.stage.mozaws.net/
See how to file a good Android Sync bug for details.