• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM]-[10-04-2020]-[microG] Unofficial LineageOS 17 w/ microG support

Search This thread

gigatex

Senior Member
Apr 7, 2013
148
117
Google Pixel 5
Info
This thread contains unofficial custom builds of LineageOS 17 for OnePlus 7 Pro based on official LineageOS repositories & PeterCxy's repositories. This ROM has a few additions.

- Includes microG signature spoofing patch
- Removes com.qualcomm.location which interferes with UnifiedNlp
- Added option to configure the height of the back gesture in gesture navigation settings

Please note that I am not an experienced ROM developer, these are simply my own custom builds I'm sharing with you all in case anybody finds them useful.

ROM instructions
If you want to spoof signature of Phonesky you must manually grant it. Do this through a terminal emulator by running the following commands.
Code:
su
pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE

There is currently an issue with microG UnifiedNlp. If you ever get the "UnifiedNlp has no last known location" error, you must re-enable UnifiedNlp backends. This must be done after every reboot and whenever this error decides to pop back up.

Installation instructions

1. Format data in TWRP
2. Flash ROM, TWRP Installer
3. Reboot > Recovery
4. Flash ROM, TWRP Installer
5. Reboot > System
6. Complete system setup
7. Reboot > Recovery
8. Flash Magisk, flash NanoDroid
9. Reboot > System


Update instructions

1. Flash ROM, TWRP Installer
2. Reboot > Recovery
3. Flash ROM, TWRP Installer
4. Reboot > Recovery
5. Flash Magisk, flash NanoDroid
6. Reboot > System

Downloads
ROM - EDIT: Links removed, no longer working on this project.
Magisk - https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
TWRP - https://forum.xda-developers.com/on...nt/recovery-unofficial-twrp-recovery-t3931322
NanoDroid - https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928

Thanks
Special thanks to @LuK1337 and @PeterCxy for helping me out with the build process and answering all my questions :)

Kernel Source
https://github.com/PeterCxy/android_kernel_oneplus_sm8150

XDA:DevDB Information
LineageOS microG, ROM for the OnePlus 7 Pro

Contributors
gigatex
ROM OS Version: Android 10
Based On: LineageOS

Version Information
Status:
Testing

Created 2019-08-23
Last Updated 2020-04-11
 
Last edited:

aeonius

Member
Apr 21, 2013
20
2
Hi gigatex,

I just wanted to thank you for creating this! I've been using it as my daily driver without any issues. It's rock solid, fast and great on the battery and it's the only rom that works superbly with MicroG, without the hassle of removing Google junk.

If I were to give you one suggestion, it'd be to include links to Magisk, NanoDroid (F-Droid and MicroG packages) and perhaps TWRP. If only for user ease.

Keep up the good work and thanks again!
 

adamokari

Senior Member
Aug 13, 2017
107
15
Doesn't the lineage team provide an official microg version around a week or so after they have an official regular build?
Thank you for this either way! I've been waiting for a microg version of this.
 

aeonius

Member
Apr 21, 2013
20
2
I don't want to sound douchy, but it's actually the MicroG team that forks the LineageOS build and pretty much does to it what gigatex did with this ROM. They will probably add support for our device in a few days, but it's great that we don't have to wait for that, thanks to this ROM.
 

gigatex

Senior Member
Apr 7, 2013
148
117
Google Pixel 5
I don't want to sound douchy, but it's actually the MicroG team that forks the LineageOS build and pretty much does to it what gigatex did with this ROM. They will probably add support for our device in a few days, but it's great that we don't have to wait for that, thanks to this ROM.

As far as I can tell by looking at the docker repo, LineageOS for microG just takes the LineageOS frameworks/base and applies the signature spoofing patch for their builds. If this is the case they might have the same problem with UnifiedNlp as every other OnePlus 7 Pro ROM.

Lineage only merged the "NLP Combo feature" commit in the last month or so, while most other ROMs have had it for a lot longer. If anyone here flashes their build when it becomes available I'd be curious to know if UnifiedNlp works correctly on their ROM.
 
  • Like
Reactions: adamokari

adamokari

Senior Member
Aug 13, 2017
107
15
I'm gonna give this a go tonight. Looking forward to it. Lineage has always been my favorite since I got into the rom community. Glad I can go Google free.

Side note: anyone know of good navigation app? For obvious reasons, I'm not wanting to use Google maps.
 

adamokari

Senior Member
Aug 13, 2017
107
15
This ROM is running great so far. Thank you very much for your work!
Only issue I'm having it getting the oneplus camera app. Whenever I tap the app to open it, it force closes. O can however long press on the icon and tap one of the modes in the pop up menu and it works from there. For some reason it seems to be the standard picture mode that crashes. Did anyone else have issues with it?
 

adamokari

Senior Member
Aug 13, 2017
107
15
Sorry for all the questions, but what exactly is the proper way to set this up with microg? I've realized I'm not getting push notifications for email apps.

Basically for my install I wiped dalvik and data,
Flashed ROM and twrp
Reboot recovery and flash ROM and twrp again
Reboot to system
Reboot recovery and flash magisk and nanodroid
Then proceed to configure microg, signing into google account and enabling cloudessagimg, etc.

Any help would be greatly appreciated.
Thank you!
 

gigatex

Senior Member
Apr 7, 2013
148
117
Google Pixel 5
Sorry for all the questions, but what exactly is the proper way to set this up with microg? I've realized I'm not getting push notifications for email apps.

Basically for my install I wiped dalvik and data,
Flashed ROM and twrp
Reboot recovery and flash ROM and twrp again
Reboot to system
Reboot recovery and flash magisk and nanodroid
Then proceed to configure microg, signing into google account and enabling cloudessagimg, etc.

Any help would be greatly appreciated.
Thank you!

As for OnePlus camera, I simply downloaded the APK in PeterCxy's thread and I'm not experiencing any crashes.

I use the same installation procedure as you. Are your apps getting registered under GCM and is your "Current State" showing as connected? Also make sure you go through the entire self check. The "System supports location provider" is the only checkbox that's supposed to be unchecked.
 
Last edited:
  • Like
Reactions: adamokari

adamokari

Senior Member
Aug 13, 2017
107
15
As for OnePlus camera, I simply downloaded the APK in PeterCxy's thread and I'm not experiencing any crashes.

I use the same installation procedure as you. Are your apps getting registered under GCM and is your "Current State" showing as connected? Also make sure you go through the entire self check. The "System supports location provider" is the only checkbox that's supposed to be unchecked.

I'm gonna try again from stock. It says current state disconnected and no apps ever register under GCM. Not sure what the issue is.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    Info
    This thread contains unofficial custom builds of LineageOS 17 for OnePlus 7 Pro based on official LineageOS repositories & PeterCxy's repositories. This ROM has a few additions.

    - Includes microG signature spoofing patch
    - Removes com.qualcomm.location which interferes with UnifiedNlp
    - Added option to configure the height of the back gesture in gesture navigation settings

    Please note that I am not an experienced ROM developer, these are simply my own custom builds I'm sharing with you all in case anybody finds them useful.

    ROM instructions
    If you want to spoof signature of Phonesky you must manually grant it. Do this through a terminal emulator by running the following commands.
    Code:
    su
    pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE

    There is currently an issue with microG UnifiedNlp. If you ever get the "UnifiedNlp has no last known location" error, you must re-enable UnifiedNlp backends. This must be done after every reboot and whenever this error decides to pop back up.

    Installation instructions

    1. Format data in TWRP
    2. Flash ROM, TWRP Installer
    3. Reboot > Recovery
    4. Flash ROM, TWRP Installer
    5. Reboot > System
    6. Complete system setup
    7. Reboot > Recovery
    8. Flash Magisk, flash NanoDroid
    9. Reboot > System


    Update instructions

    1. Flash ROM, TWRP Installer
    2. Reboot > Recovery
    3. Flash ROM, TWRP Installer
    4. Reboot > Recovery
    5. Flash Magisk, flash NanoDroid
    6. Reboot > System

    Downloads
    ROM - EDIT: Links removed, no longer working on this project.
    Magisk - https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
    TWRP - https://forum.xda-developers.com/on...nt/recovery-unofficial-twrp-recovery-t3931322
    NanoDroid - https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928

    Thanks
    Special thanks to @LuK1337 and @PeterCxy for helping me out with the build process and answering all my questions :)

    Kernel Source
    https://github.com/PeterCxy/android_kernel_oneplus_sm8150

    XDA:DevDB Information
    LineageOS microG, ROM for the OnePlus 7 Pro

    Contributors
    gigatex
    ROM OS Version: Android 10
    Based On: LineageOS

    Version Information
    Status:
    Testing

    Created 2019-08-23
    Last Updated 2020-04-11
    8
    Update - 29-10-2019

    Hey all, a new build based on LineageOS 17 is available.
    Please note there are a few caveats with regards to getting microG working.

    Firstly, you must use the latest NanoDroid release. Using any other way of installation will cause permission issues.
    Get it from the following link: https://forum.xda-developers.com/showpost.php?p=80717673&postcount=7433

    Secondly, you must enter some terminal commands after installation. You currently cannot manually grant signature spoofing permission to system apps, as the 'show system apps' option is not present in Android 10. If you need to spoof signature of Phonesky type the following in a terminal emulator to manually grant the permission.
    Code:
    su
    pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE

    Lastly, currently com.location.qualcomm interferes with UnifiedNlp. To fix this, remove it using the NanoDroid overlay feature by using the following commands in a terminal emulator and rebooting the device.
    Code:
    su
    novl -a com.qualcomm.location

    After these steps microG self-check should show all checkmarks :)

    Download the build here if you're interested: https://www.androidfilehost.com/?fid=4349826312261609557
    7
    Update - 22-12-2019

    Hey all, sorry for the inactivity lately. I've uploaded another update.

    Changelog:
    • Removed com.qualcomm.location
    • Updated LOS sources
    • Updated device specific sources
    I have updated the OP with installation and update instructions. The 9.0 based builds have been removed and will no longer be updated.
    6
    Update - 30-08-2019

    Changelog:
    • Switched to official LineageOS device repositories
    • Merged latest changes from LineageOS frameworks/base
    • Switched hosting from MEGA to Android File Host

    Update instructions are in OP
    5
    Build including August 2020 security patches: lineage-17.1-20200809-UNOFFICIAL-guacamole.zip