[Solved] Issues updating microG apps in LineageOS

Well, you basicaly re-did manually what my flashable ZIP was built to do automatically, with the exception of the OTA survival script, as pointed by you. Sorry you need to go through such process.


Ok, I’ll try to help you to make a clean reinstallation of microG and avoid you such process for every update.

First thing, to delete the thing any OTA-survival flashable ZIP did, you need to reinstall the ROM indeed. But most important, you need make a clean install, to clean the system partition first. Otherway, OTA survival script(s) will honor their name and survive. So, step by step (this is a one-time process):

  1. Make sure you have a ZIP with your actual OS version in your phone.
  • For LineageOS: If you have not cleared the LineageOS Updater downloads, then you can locate you actual OS ZIP at /data/data/org.lineageos.updater/app_updates/ from TWRP. If you are not sure or cleared it, then download latest ZIP from the community LOS thread.
  1. Grab the microG flashable ZIP you chose, too, and any other flashable ZIP you wish to install, and save them inside your phone storage.
  1. Maybe optional, but recommended: delete any user-installed app you’ll install with ZIPs to avoid any conflicts. This means: delete microG Services Core, microG Framework Proxy, microG FakeStore, microG DroidGuard Helper, Mozilla Nlp Backend and Nominatim Nlp Backend.
  • In the case of F-Droid, if included, you may want to backup your data first (or just write down your repo URLs in a piece of paper)
  1. Reboot to TWRP.
  2. WipeAdvanced Wipe → Check only Dalvik / ART Cache and System
  3. Install → Search for your OS ZIP → Swipe to confirm Flash
  • LineageOS Updater OTAs are stored on the /data/data/org.lineageos.updater/app_updates/ folder.
  1. Install → Search for the microG ZIP → (Add more Zips → Search for each ZIP) → Swipe to confirm Flash
  2. Without exiting TWRP, connect your phone to your computer and Tingle-patch it through ADB.
  • You can do this from the system itself, but this is a more convenient way because it doesn’t require two reboots in the process.
  1. Reboot to System. You are done, :slight_smile:

After this clean installation, you can apply OTA updates from the LineageOS Updater and microG will survive. You’ll need to Tingle-patch your system, though.


My OTA update procedure is the following, if you or anyone want to copy it (it saves you a reboot):

  1. Download new OTA from within LineageOS Updater. But don’t apply it!
  2. Reboot to TWRP.
  3. Install → Search for the latest OTA in /data/data/org.lineageos.updaterSwipe to confirm Flash
    • System mods (root modifications or flashable ZIPs) with OTA survival scripts will honor their name and survive.
  4. Mount → Enable System Not needed anymore.
  • Make sure Mount system read-only is disabled.
  1. Without exiting TWRP, connect your phone to your computer and Tingle-patch it through ADB.
    • You can do this from the system itself, but this is a more convenient way because it doesn’t require two reboots in the process.
  2. Reboot to System. You are done, :slight_smile: