LineageOS for microG

Search This thread


Senior Member
Jan 19, 2015
For now we stick to a small script doing the magic along with a rewrite rule.

	die('Invalid request');

if(count($parts) != 4)
	die('Invalid request');


if($request['apiversion'] != 'v1')
	die('Unsupported API version');

if(!is_dir(ARCHIVE_PATH . '/' . $request['device']))
	die('Unknown device');

$files=glob(ARCHIVE_PATH . '/' . $request['device'] . '/*.zip');

foreach($files as $file)
		'url'=>ARCHIVE_URL . '/' . $request['device'] . '/' . $filename,

echo json_encode($output, JSON_UNESCAPED_SLASHES);

location /api {
	rewrite ^/api/(.*)$ /ota.php?request=$1 last;

Thanks for the information Simon.:D
Aug 22, 2009
I am desperately trying to get MicroG on my paella (BQ X5) with no root ... without success so far :(

Would so much appreciate if you could provide LineageOS / MicroG for paella! :victory:


New member
Nov 8, 2017
A build for the Sony Xperia Z Wiki Tablet (pollux_windy) would be nice, it is supported by LinageOS.

Great Initiative! Is there a way to financially support you?

Best Regards!

Sleak Ghost

May 7, 2016
hero2lte still not added even tho the main device herolte was added. I saw it would be made in next build but when will that be?
It seems you made a typo and the next batch should include it automaticly, hope it'll be soon.
Last edited:


Sep 5, 2016
Can I use the LineageOS updater under the system menu? If not, what's the best way to update LineageOS for microG without losing all my preinstalled apps?


Senior Member
Oct 27, 2011
Sorry to not reply to non rom specific questions.

All devices which were mentioned here and are official lineageos devices are added to the build list. Due to the massive increase of devices to build we had to overcome some difficulties in our build environment which slowed the builds down a lot. Now it seems to be fixed. Now the build duration is around 27 hours, thats why you cannot expect a new device to be built within one day. First the current build has to finish. The fresh builds are synced once in a hour to our webserver. The list on OP is back and i try to update it.

Using the LineageOS updater under the system menu is the way to go, correct!
@money Donations: Please consider to donate to microg project, or setup feature bountys there. We as the ROM builders work independent from microG and have no demand for donations.


Senior Member
Jan 28, 2017
Small town in Bavaria
Can I use the LineageOS updater under the system menu? If not, what's the best way to update LineageOS for microG without losing all my preinstalled apps?
There are several reports of lineageOS>settings>about phone>lineageos updates not working correctly in official ROM. In that case you can try to flash the zip file manually. Located in root /data/lineages_updates/
Last edited:
  • Like
Reactions: daloonik


Jul 24, 2015
(Stupid XDA lost my post. :( )

This is awesome! Thanks so much for your work :D

Any chance to get support for surnia <>?


Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
@Simon94, I recommend that you add to the installation instruction that the users are wiping /system before flashing the ROM. A factory reset wasn't enough for me to fully remove the Gapps. Was really confused why I couldn't find the microG app and all the Google stuff was working even though the PlayStore was missing.

Other than that it's a really great project, thanks a ton to everyone involved.

Sounds like the LineageOS backup script is still being invoked during the flash - it would preserve the gapps.

One approach would be to disable this script on this version of the ROM, but there's potential for this to break other things (I don't know any examples) if anyone's use case used the backup method to preserve something between flashing.

Either wiping /system or stopping the backup script from running ought to do the trick.

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    spotted the update today, thank you!

    keep up the great work, love this ROM
    Have a look at my menu (French) under 17.1 with microg. Can you double confirm that "fastboot flash recovery <recovery_filename>.img" with microg version won't screw up and cancel my data when on the top of regular Lineage recovery? :)
    Confirmed confirmed

    @Simon94, please enable builds for these newly added to upstream devices:

    Work in progress
    Hi, people

    The latest OTA update of lineage+microg (17.1-20210328) for Moto G4 Play (harpia) completely broke sound. No sound is reproduced either through the speakers or using a headphone. Some applications like com.arnaud.metronome crash and others like spotify say they can't reproduce sound. I tried to revert to the previous build, but then I couldn't even unlock the phone because something crashed

    Please remove this update from the site until the problem is solved

    In the mean time I'm trying to report this bug properly
    Will an upgrade from 17.1 to 18.1 work on a phone (cheeseburger) where encryption is to be unlocked via PIN?
    I'm asking because of what I read in this thread: "That's android 11 problem, A11 doesn't let recoveries decrypt with pin. Only patterns work."
    That's why recommends side loading and lineage recovery. No need to decrypt.
  • 150
    Android experience relies heavily on Google's Play Services. The microG project creates an alternative to installing Gapps, which install and execute closed-source blobs on our phones. MicroG however requires a patch called "signature spoofing", which allows microG's apps to spoof themselves as Google Apps. LineageOS currently does not include the patch due to different opinions among the developers. (further information can be found here)

    This makes microG installation difficult on LineageOS and other ROMs. Our ROM is a fork of LineageOS with just the necessary changes to have microG built-in. We ship weekly builds for all the LineageOS supported devices..

    You can find us on

    XDA:DevDB Information
    LineageOS for microG, ROM for all devices (see above for details)

    Simon94, ncorna, n1zzo, LineageOS, MaR-V-iN
    Source Code:

    ROM OS Version: Android 10
    Based On: LineageOS

    Version Information
    Status: Nightly

    Created 2017-11-06
    Last Updated 2020-08-28
    Just to give a small heads up. As you may noticed some of the project members the priorities have shifted to other projects.

    I was and am still willing to take over some of the tasks, but as microG lacked some bugfixes and support for LineageOS 17.1 i was not sure whether its worth it to spend more time into LineageOS for microG. Once marvin released the new microG update, we still had to check with our team, how we'll proceed.

    For now i've taken over the responsibility of the Android Build process, merged some of the fixes and integrated LineageOS 17.1 support. New builds are on their way, both LineageOS 16 and 17.1 based.

    Hey guys. You are right with your findings. We were testing yesterday LineageOS 15.1. But we rolled it back. Now we have almost everything ready for Lineage 15.1 - In fact there is one minor change outstanding before we're going to release. After release we'll start building the complete LineageOS weekly build roster again.
    Current device list which will be built tomorrow:
    today i got my weekly(?) update with november security patches via ota notification.
    thanks for that!

    Yes they are rolling out new builds again :) Thank you everyone who is contributing to this :good:

    Oops. They only build Oreo right now.

    We have decided to build every device weekly (like before), as we don't have the capacity to build for ~75 devices daily and nightlies are quite useless to the end users. We will build for all the ~200 devices, ~30 devices per day, from top to bottom of the usual hudson devices list (which means that 15.1 builds will appear in the first part of the week and 14.1 in the second one).

    As usual, new devices will be automatically added to the build list, no need to ask for them, just wait some days.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone