I don't know how, e.g. Xiaomi, does this. However, it would be a reasonable strategy to first provide API compatibility for all important Play features, so that apps not targeting the platform 'just work'. Once app developers see Xiaomi as the primary platform (or at least one of the 'must support' ones) then you can create your own API definition for new stuff, knowing that developers will do the work to support your platform, but that this code won't necessarily work with your less powerful competitors' products.
From http://en.wikipedia.org/wiki/Replicant_(operating_system) :
> Replicant is a free and open source operating system based on the Android mobile platform, which aims to replace all proprietary Android components with their free software counterparts.
So I think that at some point maybe the Replicant guys might get to a point where they do what you are looking for, if they haven't already.
NOGAPPS on the other hand, is an attempt to replace Google Play Services while keeping API compatibility so that apps continue to run.
There's some indication that Samsung is preparing to do just that:
http://www.mercurynews.com/business/ci_24507761/samsung-tryi...
http://gigaom.com/2013/10/28/samsung-is-pulling-another-amaz...
the value of Android,for most people, is in Google services... not in Linux.People dont care what os android is running,the fact that it is Linux is irrelevant for them,(but not for google).
> copy all the APIs and create an independent alternative that lets you build apps that use features from Play Services, without tying your app to Google. Ideally one can then choose what to do from just stubbing them out, filling them with 3rd party alternatives, or providing custom implementations.
And who's going to copy all that,for you,for free?
> I would think a nice collaboration between Amazon, Microsoft, some Chinese players and maybe even Yahoo could do quite a nice job of this. And now you want to depend on Amazon and Microsoft and Yahoo,is that your vision of independence? And why Amazon or Microsoft would do that when they are pushing for their own closed mobile plateform?
Your message is basically "someone do something",not understanding what the success of the plateform is about : Google Services.And then you are calling to players that are even worse offenders than Google when it comes to closed plateforms. What you say makes no sense.
You cant run all the services Google provides for free , with no string attached ,it cannot work. And that's why mobile oses that dont provide these kind of services will flop,all of them,because people now feel entitled to get them for free.
What I am suggesting is that there are coalition of interests - Android manufacturers that share the situation of being outside of Google's ecosystem. All these manufacturers want apps, and the apps are all on Google Play. They therefore have a very strong interest in having those apps run without modification on their own platforms which is achievable only if someone clones the Google APIs. It seems to me only a matter of time before the incentive to create this gets high enough that someone actually does it.
Yes, but it might be just another big company which does it, and in an 'all or nothing' fashion. In that case you would have a choice (Google or XBigCorp), but I'm guessing you really want to be able to mix and match, and have different parts of the Play APIs served by different apps/daemons/companies/whatever.
It's doable. By amateurs and professionals with passion and spare time.
This is what most people fail to realize.
Google could just swap Linux with BSD, QNX, VxWorks,.... and no one would notice, besides those that hack around the official APIs.
What if we modify the client libraries such that they still use Google services but push the content (such as messages, contacts etc.) in encrypted form. This would be no different than using GMail but with an offline client with PGP.