Bug 773050 made the services Java code compile separately. This ticket tracks finishing the job and making the code really stand-alone, as a separate Gradle project. There are few parts to this: 1) move the code into mobile/android/services/src; 2) make the code have package org.mozilla.services instead of org.mozilla.gecko; 3) extract the services resources into mobile/android/services/res. I think 3) wants separate strings.xml for services. For the final part 3), we might need the aid of a 'shared' Gradle project that contains the constants and some foundational resources (styles, etc). I think we might do better to: 1) remove the Sync account type (Bug 1220906), and the code and resources that implement it; 2) remove the Firefox Account native UI (Bug 1220892), and the code and resources that implement it; 3) move the remaining Firefox Account UI (status activity) into org.mozilla.gecko.prefs. It's a long road.