14 ms·
A free-as-in-freedom re-implementation of Google’s Android user space
- cors-fls 6y agoTotally recommend the MicroG-LineageOS fork [1], if your phone model is in the supported list (all devices supported by LineageOS). As a daily-driver. I bought my current phone (Asus) because it was supported, after I had successfully used it on my MotoG for years (2-3 ? Not sure). Very happy to have no Google spying in my phone anymore. Some apps requires some Google services that are not supported so they will not work but not a problem for me. The most problematic thing is the lack of push notification but it is perfect if you don't want to be distracted. [1] https://lineage.microg.org/ https://lineage.microg.org/
- solarkraft 6y agoNote that while it's theoretically a fork all they do is apply around 2 patches for signature spoofing and include microG (all automatically, so you're in sync with the official LineageOS).
- Tijdreiziger 6y agoDo in-app purchases work or is there a workaround for that?
- saagarjha 6y agoI was curious what services this project used to replace Google's backends and found this after a bit of searching: https://github.com/microg/UnifiedNlp/wiki/Backends https://github.com/microg/UnifiedNlp/wiki/Backends. IMO, some sort of summary of this information would be useful to have on the homepage.
- EE84M3i 6y agoThe tag line on the page "A free-as-in-freedom re-implementation of Google’s proprietary Android user space apps and libraries." seems more accurate than the HN title " A free-as-in-freedom re-implementation of Google’s Android user space".
- fxtentacle 6y agoI'd say this is a very clever political move. It's a privacy-conscious alternative to Google's libraries, supported financially by the German government. If this becomes popular with users, it'll limit Google's and the US government's access to mobile data from EU citizens.
- bluGill 6y agoOnly if it becomes popular. Which means phones need to come with it preinstalled somehow. If this starts to become popular I expect Google to take steps to lock it out. Changing things constantly (which google does all the time anyway) it the obvious one to make it a moving target that this cannot hit.
- ryukafalz 6y agoThey could change their server-side services constantly, but part of this is an implementation of important APIs they've put in Play Services instead of AOSP (e.g. location services). Can't change those without affecting apps that use them too.
- fxtentacle 6y agoI have a vague feeling that if Google takes active steps to lock out a government project, the EU will find a way to motivate Google to play nice. I mean Google surely wouldn't want to give anyone an incentive to revive that $1bn historical tax debate or the $1.5bn antitrust investigation ;)
- falcor84 6y agoYou have a point there, but Google's profits from Android are at least one order of magnitude larger than the numbers you quoted [0], and it may be rational for them to risk the fight. [0] https://www.kamilfranek.com/how-google-makes-money-from-android/ https://www.kamilfranek.com/how-google-makes-money-from-andr...
- bluGill 6y ago
- amelius 6y agoThis is great work. I guess from a legal perspective this hinges on the idea that you can't copyright/patent an API. The graphical design and UX, however, can be copyrighted I suppose. I also wonder if it would be legally possible to do the same for iOS.
- Someone 6y agoI think the technical problems are harder. AFAIK, you can’t run most services on iOS, so you would have to find creative ways to implement them. Also, on iOS, it would be an (¿almost? Does the iOS UI have any open source parts?) complete reimplementation of the user space.
- ysleepy 6y agoThis is an open-source implementation of the google cloud integration in Android that is necessary for push notifications in virtually all apps, the account mgmt that the Play Store uses and so on. This makes it possible to use LinageOS without installing Google Blobs with root access, while having almost 90% of apps work as normal.
- fxtentacle 6y agoI also just found this: https://news.ycombinator.com/item?id=25253091 https://news.ycombinator.com/item?id=25253091 which IS LineageOS without Google Blobs :)
- saagarjha 6y agoQuestion: who is running the push notification service? Why are they doing it for free?
- londons_explore 6y agoConsidering app servers have to hardcode the https://fcm.googleapis.com/fcm/send https://fcm.googleapis.com/fcm/send API endpoint and auth details, I don't really see how push could work properly without each app developer modifying their server side code. Most apps work kinda without push - you just have to open the app to get notifications.
- bluGill 6y agoI wonder if fastmail could be persuaded to put in a different endpoint for their app. They already have the infrastructure in place to run servers, and take a privacy stance. Not having to go through google would probably make them happy. Obviously it would have to be optional, but little cracks in the door.
- older 6y agoTutanota did that: https://tutanota.com/blog/posts/open-source-email-fdroid/ https://tutanota.com/blog/posts/open-source-email-fdroid/
- Jonnax 6y agoI heard of this years ago when I had a OnePlus One and played with LineageOS. What's the current status of the project? Is is a full functional replacement? Is it transparent to apps?
- xfiz 6y agoPartly. It mostly works well for the things I use it (push messages, maps, exposure notifications seem to work too). Some apps behave a bit weirdly if the try to access specific API's, like Google Pay. So it definitely isn't fully functional, but works well enough for many use cases. There is also a LineageOS+microG fork, which makes trying it out a lot easier. The way it works is that it pretends to be Google Play Services, so it isn't transparent to the apps. Not sure if the apps could figure it out it isn't running on the real deal.
- GekkePrutser 6y agoFor me it works great. You do need to use a special fork of LineageOS, because it needs to implement signature spoofing, which lineage devs refuse to do for security reasons. Get it from lineage.microg.org . Once you have this fork it's great though, the spoofing is what makes it transparent to apps. It does use Google's push service as this is the only way (this is what the apps' backend servers talk to), but it doesn't require a google account, just a random ID. The other things like geolocation don't require google services at all. In my experience it works great.
- joelhaasnoot 6y agoNote that Microsoft basically did this for Windows 10 Mobile but then killed it. I actually recompiled a few apps for it at that time, it worked fine. I imagine getting 95% is easy, the last 4% doable, and the last 1% virtually impossible (not to mention this is a moving target) See https://www.androidauthority.com/windows-10-mobile-android-apps-1161093/ https://www.androidauthority.com/windows-10-mobile-android-a...
- _zamorano_ 6y agoBut the current state of most Google apps is mostly right for most of the users. They don't need to play catch up very aggresively.
- bluGill 6y agoUntil google upgrades their apps to the new API and makes the old version impossible to find...
- joelhaasnoot 6y agoWith catch up I mostly mean library dependencies. If Google changes the location API calls and popular apps that customers want do update, then the implementation will have to update, or the apps will crash/fail to work/etc.
- pitterpatter 6y agoBlackBerry also did this back in the day before it gave up on its BlackBerry 10 OS.
- FlyingSnake 6y agoFor those are curious about usability: I use LineageOS+MicroG¹ as the daily driver of one of my spare test devices (Oneplus One bacon) and it is the best ROM for that phone IMO. I use FDroid, AdAway, NewPipe, Youtube Vanced and Aurora app store. The performance is really good and together with UnifiedNLP backends it's a perfect Android phone. [^1]: https://lineage.microg.org/ https://lineage.microg.org/
- scns 6y agoIf you need Telegram or Signal, it may work now. WhatsApp works but push is iffy. https://news.ycombinator.com/item?id=25253507 https://news.ycombinator.com/item?id=25253507
- hiq 6y agoI've been using Signal and WhatsApp for while on a lineageos + microg, it works perfectly fine without going through microg, i.e. I don't use push messages though (using the constant background notification from Signal and letting WhatsApp do whatever it does to work around the lack of push messages). I guess it uses a bit more battery, but I haven't noticed it in my case (n == 1...).
- Vinnl 6y agoYeah, I have a phone with neither Play Services nor MicroG, and Signal works just fine using its own notification delivery system (which it emphasises you should use at your own risk of it not working and slurping battery).
- cookiengineer 6y agoThe Telegram FOSS fork also is g-services and telemetry/firebase free (you can verify this with AppWarden). [1] [1] https://github.com/Telegram-FOSS-Team/Telegram-FOSS https://github.com/Telegram-FOSS-Team/Telegram-FOSS
- puzzlingcaptcha 6y agoThe status page does not look particularly reassuring https://github.com/microg/GmsCore/wiki/Implementation-Status https://github.com/microg/GmsCore/wiki/Implementation-Status
- sandGorgon 6y agothese kind of things are limiting because of developer buy-in. As anyone who has built android apps would know - everyone uses "Play Services". Right from maps, to ads to everything in between. Many of the apps i have built, wont even work on phones without play services. And I suspect that's the case with most developers.
- kop316 6y agoI run GrapheneOS without google play services nor MicroG, and install almost all of my apps from Fdroid. I do not have any issues with Apps from Fdroid (I think they are compiled without any google play dependencies). When I get packages from Auroua (Google Play), it varies from the app working as expected (sans notifications), to I get a notification that it needs Google Play (but then works), to the same notification then the app quits.
- older 6y agoMicroG solves exactly this problem. It is replacement of play services for apps which require it. Many of google's own apps work with MicroG.
- scns 6y agoNot exactly. Coded an App myself, used WorkManager to execute tasks (on the phone, for the App) once a day, did not work.
- kaeruct 6y agoIt's unfortunate how similar the logo is to Contentful https://i.imgur.com/nnu2AEN.png https://i.imgur.com/nnu2AEN.png
- ThePhysicist 6y agoThe project was funded by the "Prototype Fund" [1] btw, which in my opinion is one of the best open-source funding programs in the EU. Applications for the next round open in February. [1] https://prototypefund.de/ https://prototypefund.de/
- mircea 6y agoSlightly OT, but the Prototype Fund has one of the best Codes of Conduct I've seen: https://prototypefund.de/en/code-of-conduct/ https://prototypefund.de/en/code-of-conduct/.
- srtjstjsj 6y agoIt's extremely vague and seems unlikely to help resolve any practical disagreement. It's like a slogan "Move Fast and Don't Break Anything".
- mircea 6y agoIt treats people like responsible adults, not like children to be told what to do and disciplined if they don't.
- xenocratus 6y agoIt what now? It treats people like adults? Adults need to have their "hurt feelings" protected through a code of conduct? That's one of the most childish/naive things I've read.
- Vinnl 6y agoThat looks like a great fund! For "best in the EU" it'll have to compete with the terrific and pretty light-weight NGI Zero though, which has supported many projects already: https://www.ngi.eu/ngi-projects/ngi-zero/ https://www.ngi.eu/ngi-projects/ngi-zero/
- voltagex_ 6y agoThe problem is if I were to flash AOSP on to my Note 9, it'd blow an eFuse and limit my future options IRT reselling the thing. If I did the same with a Sony Xperia XA2 (which I did) the eFuse means I can never get OTA updates again.
- gst 6y agoQuoting from https://github.com/microg/GmsCore/wiki https://github.com/microg/GmsCore/wiki: > This is alpha-grade software and not yet ready for production use. Do not use if you don't know what you're doing. Personally I'd also be concerned that Google's bot detection code might mark accounts that use microg as suspicious (as they're going to behave differently than phones using the official software) which could increase the risk of Google banning the account.
- solarkraft 6y agoIt hasn't happened to any user yet. Additionally most of the features don't require a Google account because they are replacements (it does allow you to log in with Google however).
- nirui 6y ago> might mark accounts that use microg as suspicious which could increase the risk of Google banning the account So what? As a Chinese the only way for me to connect to Google is through a proxy, and I'm a Firefox user with some privacy settings enabled. Few months ago I started to notice that Google is keep logging me out of their services, and I had to go through the entire authentication process to log back into my accounts in order to check my emails and do some searches without having be spammed by that capthshitTM of theirs etc, then after few days I'm been logged out again. Eventually, I got tired of this, and decided "Hey, at least duckduckgo.com won't try to give troubles as long as you use their service normally", so I quickly developed this new habit of not to use google.com. Now I only use YouTube, Gmail, Play Store and sometime the backup service (Google Drive or maybe Photo, I don't care) on my Android phone. If Google wants to ban all microG users, I'd say that's Great! It was fun Google, thank you for the service. Plus, can Google actually block a microG user ethically? Using microG isn't hacking or abusing Google service, and "suspicious" is not enough for an account to be blocked, at least permanently.
- solarkraft 6y ago> Plus, can Google actually block a microG user ethically? Using microG isn't hacking or abusing Google service, and "suspicious" is not enough for an account to be blocked, at least permanently. What'd be ethical? Google can permanently ban accounts for any reason and they do.
- GekkePrutser 6y agoMicroG is amazing! Works really well while hiding your data from Google as much as possible (e.g. if you use google's push). They even implemented the covid notifications api now!
- andrepd 6y agoThe big thing that's missing from me is Auto. It's insane just how invasive it is: basically your location + a full ODD dump being broadcast to Google. I'll never use it as is but would welcome a way to use screen mirroring in privacy.
- ChrisMarshallNY 6y agoIt would be nice to see this work out, but it's quite ambitious. From what I can see, the "government support" is actually a fairly general (and limited) one-time grant. The badge may give the impression that it's more. It seems to have only two contributors: https://github.com/orgs/microg/people https://github.com/orgs/microg/people They may be pretty awesome programmers, but they are working on something to compete with another project that is currently supported by...a larger number...of full-time, salaried developers. These two developers have a rather scary number of issues to address: https://github.com/microg/GmsCore/issues https://github.com/microg/GmsCore/issues Their status page seems to have some room to grow: https://github.com/microg/GmsCore/wiki/Implementation-Status https://github.com/microg/GmsCore/wiki/Implementation-Status I sincerely wish them luck, but they have their work cut out for them.
- solarkraft 6y agoHave you tried it? (Especially considering the things you mention) It works phenomenally well.
- ChrisMarshallNY 6y agoYou do realize that I wasn't dinging the project, right? In fact, I'm fairly impressed, and I sincerely wish you guys well. As someone who has also pursued ambitious open-source efforts (some, successful; most, not so successful), I can sympathize, but I am also pretty practical (comes from many years as a manager).
- impassionedrule 6y agoMicroG has been around for years at this point
- solarkraft 6y agoIf you enjoy microG I'd implore you to donate. The website doesn't mention it (in my opinion it's pretty bad generally), but you can easily set up a recurring donation on liberapay: https://liberapay.com/microG/ https://liberapay.com/microG/ Consider what it's worth to you. It's the only project of the kind we have.
- throwaway9d0291 6y agoI've been using a custom AOSP build with MicroG for a few months now and it actually works pretty well _if your goal is to avoid Google_. What I mean by that is that if your goal is to use Android Pay, Chrome, Gmail, Google Maps, Google Drive, Google Fi etc. and somehow retain some level of privacy, MicroG isn't going to help. It doesn't fully implement _all_ of Play Services' APIs. The point of MicroG is to make Android usable without having Play Services installed. With neither MicroG nor Play Services, many third-party apps fail to function. For example Lyft and Uber depend on the Play Services API for maps and many other apps depend on Google's network location service. If you try to use these apps without some replacement, the apps complain and shut down. MicroG gives you a way around that. I'm quite happy with my MicroG-based phone but I use: - OSMAnd or the open-source equivalent of Maps.me for maps - My country's public transport app for public transit directions - FairEmail for email - Element for messaging - Slide for Reddit - Firefox for web browsing And actively avoid all of Google's apps and services (except the occasional search and YouTube).
- brundolf 6y agoLast time I tried no-Google Android, one of the biggest problems was that Slack wouldn't send me notifications How well does microG handle push notifications in general, and particularly Slack if you have experience with that case? PS: for others in that boat I recommend APKMirror for downloading non-OSS apps. It's run by people from AndroidPolice which is a reputable site, and simply mirrors (free only) apps from the Play Store, so it's all above-board and legit. The only problem is, as described above, some apps have Google Services dependencies baked-in.
- ZiiS 6y agoNo Slack notifications is _why_ I use it ;-) but if you want you can use Google's notifications with migroG (obviously giving them substantial tracking opportunities). AFAIK the effort to support non-Google notification servers dose not yet work.
- izacus 6y ago> How well does microG handle push notifications in general, and particularly Slack if you have experience with that case? MicroG push notification module will talk to Google servers (that's one of the parts where you can't get rid of Google). That's because the Google infrastructure actually delivers push notifications and arbitrates between app's backend and the app. IIRC the module is optional to enable for obvious reasons.
- nichohel 6y agoI don't believe this claim from their web site: "you can still run your favourite apps…, conveniently access your bank accounts". If you don't have access to Play Store, you have no easy way to install your favorite apps (say Waze) or your bank's app, because those are not on f-Droid or available through direct download. Running these "favorite" apps is possible in principle in a Google-free environment with something like microg, but how does an average user get them installed? From where? I have a run a Google-free phone for years now (currently crDroid on Moto G7) and I have experimented with moving apks from a second phone (with Play Store installed) to the de-Googled phone and it is quite an effort. So I keep my old phone shut down, at home, with only WiFi access as needed (no sim card) when I need to deposit a check by image for my bank for example. But I have no good solution for proprietary apps I want to use on the road, like Waze, without a great deal of effort. Yes there are acceptable open alternatives to many proprietary apps but these are in some cases not my "favourite".
- jdndkai 6y agoYou can download them with a 3p playstore client like aurora or from one of the many apk sites like qooapp or apkmirror.
- dublinben 6y agoIf you've been running a Google-free phone for "years" then I'm surprised you haven't come across options like Yalp Store[0] for installing proprietary APKs that are only published in the Play Store. [0] https://f-droid.org/en/packages/com.github.kiliakin.yalpstore/ https://f-droid.org/en/packages/com.github.kiliakin.yalpstor...
- RealStickman_ 6y agoAfaik Yalp store isn't maintained anymore. Maybe try Aurora Store instead.
- nshm 6y agoIts ok, but what confuse me that developers are not very responsive. I submitted a question on github some time ago on how to integrate our speech recognition services to microg https://github.com/microg/GmsCore/issues/1164 https://github.com/microg/GmsCore/issues/1164. No response from developers at all. Its hard to take off the open source project this way.
- crazypython 6y agoDisappointed it's not under GPL– since it isn't, any other company (Huawei? Samsung?) could use the code to create a surveilling alternative to Google Play Services and take away user freedom once again.
- RealStickman_ 6y agoNobody forces you to use those services though.
- mlinksva 6y agoMade me look up current GrapheneOS take on MicroG; https://grapheneos.org/#never-google-services https://grapheneos.org/#never-google-services says they're > developing support for installing microG as a regular app without any special privileges. This will allow users to choose to use a partial reimplementation of Play services in a specific profile. We won't be supporting arbitrary signature spoofing by microG or any other app since it seriously compromises the OS security model.
- phjesusthatguy3 6y agoThis can't be sponsored by Amazon because Amazon wants something for nothing. This can't be sponsored by Google because Google wants everything. Show that there's something there to donate to and I'll get some money to you.
- nt2h9uh238h 6y agoIt fascinates me that the German Government funded this
- anderspitman 6y ago> The linux-based open-source mobile operating system Android is not only the most popular mobile operating system in the world, it’s also on the way to becoming a proprietary operating system. Android is also making major departures from unix-like OS semantics, mostly in the name of security. I'm particularly concerned about the directions they're headed with storage. As someone with minimal Android development experience, I spent a good chunk of time the last couple weeks getting a golang program to run on Android. The experience was a bizarre mix of things that ended up way easier than expected and things that were incredibly frustrating. Favorite thing that worked: Static linux ARM binaries from the standard go compiler work just fine. The biggest caveat so far is that if your app does any networking, you need to manage DNS yourself because Android doesn't provide /etc/resolv.conf. Weirdest thing that didn't work: The only way to run a native executable in an Android app is to pretend it's a dynamic library and smuggle it into your APK via the jniLibs directory. You even have to name it lib*.so or the system won't run it.
- Animats 6y agoNice. Will this be on F-Droid?
- alskdj21 6y agoYou can add their repo[1]. [1] https://microg.org/fdroid.html https://microg.org/fdroid.html
- Fwirt 6y agoThe easiest way I've found to get MicroG working properly is through Nanodroid: https://gitlab.com/Nanolx/NanoDroid https://gitlab.com/Nanolx/NanoDroid It takes an existing ROM, patches it for signature spoofing, and bakes in a bunch of FOSS apps. (But the installer is fully customizable so this is optional.) It also can (try to) patch non-LineageOS roms, so if you're stuck with an unsupported Android build, it can still gut out some of the bloat. I actually used it with my vanilla LineageOS install because the maintainer also packages a patched version of the Play Store that still supports in-app purchases so you can still use your paid apps with MicroG. Overall it's been a great experience for me, my battery life is way better than before and I feel much better about what's running on my phone.
- traspler 6y agoReally happy to see that the project is back (the commit graph flatlined for quite a while) :D Thanks for the great work! This project will probably never be "done" and will have to play catch up with Google all the time but it's really amazing that people are putting the work in to achieve this! Thanks a lot! I think this project is vital to the future of AOSP based community distributions.
- dmacvicar 6y agoIf you have a Pixel phone or a Xiaomi Mi A2, I recommend https://calyxos.org/ https://calyxos.org/ which has MicroG integrated. I am using it as a daily driver for some weeks and it has been flawless. (Combined with what I documented in: http://duncan.codes/posts/2020-10-20-migrating-away-google-services/index.html http://duncan.codes/posts/2020-10-20-migrating-away-google-s... ). As an alternative, there is https://grapheneos.org/ https://grapheneos.org/ but it does not have MicroG and it takes a performance hit.
- pjmlp 6y agoLets see how they will manage, now that Android 12 will also make ART part of Play Services.