[UNOFFICIAL][11] LineageOS 18.1 w/ microG patch for Pixel 4a (sunfish) (20210410)

Search This thread

mr_davis_12

Member
Feb 27, 2021
5
0
Last edited:

GuiLG

New member
Aug 6, 2018
4
1
Paris
Hey there,
I don't have this device (yet) but I was already wondering if this ROM has the same photo quality as stock ? I'm asking because on my current Samsung A3 (2017), flashing custom ROMs based on LineageOS yields degraded camera quality due to some proprietary drivers or something (I don't really know what I'm talking about to be honest).
Cheers
 

PeterCxy

Senior Member
Jul 15, 2013
291
841
Hey there,
I don't have this device (yet) but I was already wondering if this ROM has the same photo quality as stock ? I'm asking because on my current Samsung A3 (2017), flashing custom ROMs based on LineageOS yields degraded camera quality due to some proprietary drivers or something (I don't really know what I'm talking about to be honest).
Cheers

You can extract stock Google Camera from stock ROM and use that on LineageOS.
 
  • Like
Reactions: ipdev and GuiLG

grognaz

Senior Member
Jul 15, 2010
864
68
i wanted to install this rom but im running into an issue when i try to do a factory reset from recovery. i get a lot of these messages: E:can't send spi message - Try Again
and it seems that is some kind of theft protection that has been added.

how do you get around this?
 

PeterCxy

Senior Member
Jul 15, 2013
291
841
i wanted to install this rom but im running into an issue when i try to do a factory reset from recovery. i get a lot of these messages: E:can't send spi message - Try Again
and it seems that is some kind of theft protection that has been added.

how do you get around this?

You don't need to worry about these messages.
 
  • Like
Reactions: grognaz

grognaz

Senior Member
Jul 15, 2010
864
68
Anyone knows if its somehow possible to create color calibration profiles that can be switches with a widget or in some other easy way?
I find the screen needs to be darker and more red during night since the default night light is barely doing anything compared to my previous nexus 5x and at the moment im manually switching tye color calibration in the evening and in the morning and would like to simplify this process.
 

claviger-pc

Member
Jan 14, 2021
12
2
Hi,
Magisk said that I pass SafetyNet.
But I can't use my bank app because that said my phone is root.
Any solution ?
Thx
just go into the magisk app and click the shield button at the bottom, and then tap magisk hide. Find the banking app and check the box to hide root access from the app. May need to clear the cache and/or data on the banking app
 

ptn107

Senior Member
Feb 10, 2012
251
123
Installed and working with magisk (canary 220005) and nikgapps basic. Google camera installed and has the same picture quality as stock. Very happy. Thanks for all your hard work!
 

roxy1712

Member
May 31, 2012
49
4
Washington, DC
Just upgraded my Exynos Samsung S7 (stock ROM debloated since there's no Lineage for that model) to a Pixel 4a. My expressions when booting and using my new 4a looked something like this: 😦😲😒 with all the Google crap and reminders I couldn't turn off.

Installed your version and so far, so good. Am using Magisk 22.0 and the Jan 30 test version of OpenGApps. Only thing I've seen so far (and not a dealbreaker) is that my phone number isn't showing up on the SIM status screen or "Device phone number" in Google settings.

Really appreciate the hard work! 👍
 
Last edited:

roxy1712

Member
May 31, 2012
49
4
Washington, DC
Okay, micro sized bug report - I suspect it's LIneageOS in general as there's a few old bug reports from 16/17 that show similar problems. The status bar starts to get a little weird when you add icons or details. For example... I moved the clock to the right of the battery and started losing system icons that previously showed up when it was on the left side.
 

Attachments

  • status-original.png
    status-original.png
    119.8 KB · Views: 41
  • status-changed.png
    status-changed.png
    116.2 KB · Views: 41

grognaz

Senior Member
Jul 15, 2010
864
68
Okay, micro sized bug report - I suspect it's LIneageOS in general as there's a few old bug reports from 16/17 that show similar problems. The status bar starts to get a little weird when you add icons or details. For example... I moved the clock to the right of the battery and started losing system icons that previously showed up when it was on the left side.
i think this is not lineage but default behavior now if there are to many icons they will not all show. Instead you see that little dot that i think should indicate that you have more icons that are not visible. Probably a workaround for the notches that have been introduced which reduce icon real estate.
 
  • Like
Reactions: ipdev

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Since it's now official will the updater work with gapps surviving?
    It should work but I'm not sure if current Android 11 gapps have working addon.d scripts.
    1
    Okay, micro sized bug report - I suspect it's LIneageOS in general as there's a few old bug reports from 16/17 that show similar problems. The status bar starts to get a little weird when you add icons or details. For example... I moved the clock to the right of the battery and started losing system icons that previously showed up when it was on the left side.
    i think this is not lineage but default behavior now if there are to many icons they will not all show. Instead you see that little dot that i think should indicate that you have more icons that are not visible. Probably a workaround for the notches that have been introduced which reduce icon real estate.
    1
    Okay, micro sized bug report - I suspect it's LIneageOS in general as there's a few old bug reports from 16/17 that show similar problems. The status bar starts to get a little weird when you add icons or details. For example... I moved the clock to the right of the battery and started losing system icons that previously showed up when it was on the left side.
    This is not a bug but a feature introduced by Google since Android 9 (I believe). Extra icons are collapsed into a single dot when there is not enough space.
    1
    Thanks for this! Unpacked and installed first thing, seems to work so far. But how do I get the google/pixel camera app?

    Edit: Oh, and what's the latest on TWRP? Is it not recommended to install TWRP with LOS?
    https://www.celsoazevedo.com/files/android/google-camera/
    or
    https://www.apkmirror.com/apk/google-inc/camera/camera-8-2-204-362396359-12-release/#downloads
    or
    extract it from stock
    1
    It's up! https://download.lineageos.org/sunfish

    Congrats on the official rollout @PeterCxy all good so far :)
  • 25
    Introduction

    This is my personal build of LineageOS 18.1 for Pixel 4a with the microG patches applied. If you do not want / need to use microG, it may be a better idea to use the official build available here: https://download.lineageos.org/sunfish. This build is exactly the same as the official build except for the microG patch.

    For discussion about the official build, please use the other thread instead: https://forum.xda-developers.com/t/rom-official-sunfish-lineageos-18-1.4255751/

    Installation

    Before installation, make sure your phone is updated to Android 11 firmware on both of the slots.

    Whether you are installing the ROM for the first time or updating the ROM, please make sure you reboot to recovery again after `adb sideload`-ing the ROM before installing add-ons such as Magisk and GAPPS.

    1. Download `boot-XXXX.img` (this contains the recovery needed for initial flashing)
    2. Download `lineage-18.1-XXXX-UNOFFICIAL-petercxy-sunfish.zip`
    3. Reboot your phone to fastboot mode
    4. Run `fastboot flash boot boot-XXXX.img` from your PC
    5. Reboot your phone into recovery mode (`fastboot reboot`, then press volume up immediately)
    6. Erase data
    7. Select Apply Update -> Apply Update from ADB
    8. Run `adb sideload lineage-18.1-XXXX-UNOFFICIAL-petercxy-sunfish.zip` and wait for installation to finish
    9. If you do not need to install any add-ons (e.g. Magisk or GAPPS), then just reboot into system
    10. Otherwise, if you do need to install add-ons, reboot into recovery again (this puts your phone into the recovery of the newly-installed system), then install the add-ons using sideload. If you want to use GAPPS, they must be installed here before you boot into system for the first time (this doesn't apply to microG).
    11. Enjoy

    Updating

    1. Download the newly released zip and reboot your phone into recovery
    2. Select Apply Update -> Apply Update from ADB
    3. Run `adb sideload lineage-18.1-XXXX-UNOFFICIAL-petercxy-sunfish.zip` and wait for installation to finish
    4. If you did not have any add-ons installed before update (e.g. Magisk or GAPPS), then just reboot into system
    5. Otherwise, if you did, you need to reboot into recovery again at this point before rebooting to system and re-flash every single one of the add-ons you had before. If you do not re-flash them before rebooting to the new system, the boot will fail and your phone will switch back to the old system automatically.
    6. Reboot and enjoy.

    Note: You don't need to update official firmware manually while LineageOS is installed by flashing latest official factory images. This LineageOS build now ships with latest official firmware updates which are tested to work with the ROM. Please avoid flashing the firmware manually while LineageOS is installed to avoid unnecessary issues.

    Known Issues

    - Use Magisk v21.4 or later if you want Magisk
    - Some applications require microG to be installed in system partition to function, in which case you can consider using the Magisk microG module
    - The eSIM manager only works with either GAPPS or microG installed. Without them, you can use eSIM, but you will not be able to add / remove / rename / disable your eSIM. The eSIM manager will also crash once or twice on first boot without GAPPS or microG, but after that it won't crash anymore (the system automatically disables it until you install microG or GMS)
    - Disabling / Enabling eSIM may hang even with GAPPS or microG. However, rebooting normally fixes the issue and makes your action effective.
    - I provide no guarantee for SafetyNet status or compatibility with any app that requires SafetyNet. Google has been tightening its SafetyNet verification and there is really not much we can do about it, and frankly most apps that require SafetyNet should not have done so in the first place. If you need SafetyNet, you are on your own.

    Downloads

    20210410: April 05 security patches
    - boot-20210410.img: https://mega.nz/file/eYggCKba#l7QJUMkvyEBtyptVMmWVbXochJKmY__X4VIwTla1KqE
    - lineage-18.1-20210410-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/bUpQhAQJ#uTe-2nHLKYsfFBKuJg0VAYISUCGMTbIpaC9qjEHFZ1c

    20210308: March 05 security patches and official firmware / binary updates.
    - boot-20210308.img: https://mega.nz/file/WIZxjAwA#P77ZdJ2YEed5WWmlijKcyRMLJ30KG36eL0mhQGjZWjI
    - lineage-18.1-20210308-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/eRBTkYzC#iNZUA84XR80V1so7YvjQ7TyJuZKGY9BZf-MGRtgQOH8

    20210222: Updated sources; Removed some non-functional LiveDisplay features; Switched to using Google's wifi_ext HAL; Reserved more space in system partitions for potentially larger GAPPS packages
    - boot-20210222.img: https://mega.nz/file/KVxRDY6L#7l7oejw-XEd_m1BUdp0_Z2TyHVLE2KkaGQ6g7Op7dpk
    - lineage-18.1-20210222-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/mUgzGSbC#88q95qVsI-7RJsecM8L2MHZ6EwNXrs54Xk6yi428rjU

    20210207: Updated LineageOS source; Applied 2021-02-05 security patches; Added support for glove mode; Enabled support property for Google Assistant; Optimized vibration
    - boot-20210207.img: https://mega.nz/file/aZxlDKgC#_9VR2ruCYUqmX8gLCBKX1KSMAsBYFDsLA6utk5EjB-g
    - lineage-18.1-20210207-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/yZpFQQRJ#PZlNYzI2t2fZdf1T3v6pMRi1zJe7J26f-Eu_Pohm7p4

    20200118: Updated LineageOS source; Attempted to fix GAPPS bootlooping issue
    - boot-20210118.img: https://mega.nz/file/ONYSRLKC#FhRYEhfsBndqcrJrhd1F4Tv3uu3UZNDYnQe3EcrMyC0
    - lineage-18.1-20210118-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/3VRgwZQQ#ynCPIDbW42hXvBWp8MoG-R9eEEzvnaQ649ULZM8lrAc

    20210109: Updated LineageOS sources and updated build fingerprint to January.
    - boot-20210109.img: https://mega.nz/file/qU5T2CLY#A7dkDfRS0gUaKzphT2_mm0IHW9_-3cIR76yvNV1Cs4A
    - lineage-18.1-20210109-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/GNwyxb4S#UGHclk8p60QuRWrGl3LI-Hur9X_VKF46tBNfuD0Z9-o

    20210107:
    1) Synchronized LineageOS updates and AOSP Jan 5 security patch
    2) The ROM now ships with latest official firmware, so you won't need to worry about updating firmware separately (you still need latest official firmware when installing the ROM for the first time though)
    - boot-20210107.img: https://mega.nz/file/OYRnwaII#3Ipj99mG5tpXouRRKMqWDJmimH8U2q5mZ5LKj8ZEmdo
    - lineage-18.1-20210107-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/aEBTFAwK#EM3fKYQG4Y2najLhRkZlPqDwPSwkV-yfsSlH7Za7UYM

    20201229: Synchronized LineageOS updates and fixed biometric authentication (fingerprint) in third-party applications.
    - boot-20201229.img: https://mega.nz/file/yMow3aDb#ByY4yG6LeAquqBd2vu2UnZUz2xukHYjWbIfXnlkT_XM
    - lineage-18.1-20201229-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/SA5WDAZQ#fMRB9w4LLSxSAGxHOtEmN9gRBTmrnF8ozKawM34cIxU

    20201227:
    - boot-20201227.img: https://mega.nz/file/6cI3lKKK#p8Nq3jUOsOoPDeV6yPj4hQtXGIHu8-D54_g3gkzdi0w
    - lineage-18.1-20201227-UNOFFICIAL-petercxy-sunfish.zip: https://mega.nz/file/SdQnTaBa#83JjZojOS9JCRdYOng6Y0LLoUl8StAdrwsTbCSqAMhs

    Sources

    Device Tree: https://github.com/PeterCxy/android_device_google_sunfish
    Kernel: https://github.com/PeterCxy/android_kernel_google_sunfish

    Thanks: DirtyUnicorn sunfish contributors, SuperiorOS sunfish contributors, LineageOS coral contributors and the LineagOS community.
    12
    Updated to 20210222
    10
    Updated to 20210207 with fresh 2021-02-05 security patches. Also removed warnings about GAPPS because they should be working now.
    8
    Thanks for all your work! I am hesitating to switch from stock 11 for several reasons. One is whether we will be able to update from this build to an official one without wiping/reinstalling. Another is whether the build is completely stable and usable as a daily driver. Also, I am wondering about battery life and latency as compared to stock. I have found that on certain devices, Lineage was actually worse! Also, how are the opengapps working for people??

    Summary of questions:
    1. Stability?
    2. Battery?
    3. Is official coming soon and "guaranteed"?
    4. Can we seemlessly upgrade to official 18.1?
    5. Opengapps or other gapps working well?

    Thanks to everyone for any input!

    1 & 2: I've been daily driving this for quite a while and I don't think it's less stable than stock, and I don't think I've observed any more battery drain than stock. Of course this could be due to the fact that I don't install the full GAPPS and instead use microG.

    3: I am going to merge all my code into the LineageOS repository by the end of this week if no objections (I am already a maintainer of the official LineageOS repositories for Pixel 4a) and I will be submitting wiki entries & CI config for LineageOS 18.1 builds. I am not sure when LineageOS 18.1 will ship, but I expect it to ship with Pixel 4a builds, or in the worst case Pixel 4a builds will be up shortly after LineageOS 18.1 is shipped.

    4: No, you will not be able to. This ROM is signed with my own keys, and I have no access (nor should I have access) to the official LineageOS signing keys. It will not be compatible with official builds for this reason.

    5: As I don't use GAPPS myself, I'm not sure, but people in this thread have been successfully using GAPPS with this build for some time now. We at LineageOS have fixed the earlier issue causing GAPPS to break on new Pixel devices.
    6
    Updated to 20210107
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