[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

#include

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

SUPPORTED DEVICES

- rtwo (XT2301-1, XT2301-4, & XT2301-5)

HOW TO INSTALL/UPGRADE LINEAGEOS WITH LINEAGE RECOVERY

Please check the official LOS wiki for instructions:

Info about rtwo variants | LineageOS Wiki

wiki.lineageos.org

KNOWN BUGS/ISSUES

Brightness slider isn't linear and has minimal difference for the first 25% and the last 75% is very aggressive

Automatic brightness might not work correctly in direct sunlight with HBM (High Brightness Mode) enabled in LiveDisplay and the display will stay dark

Audio via HDMI doesn't work (afaik, this bug applies to all Motorola devices on custom ROMs too... You can still change audio output to something like Bluetooth during dp alt and audio will work)

Setting 48Hz minimum refresh rate with anti-flicker (DC Dimming) can cause gamma flickering and might cause UDFPS accuracy issues. Either bump minimum refresh rate to 60Hz or disable anti-flicker. Motorola only ever intended 48Hz for peek display mode and not regular use

Widevine L1 lost upon bootloader unlock (reverting to stock ROM via Motorola RSA Tool and relocking bootloader does restore it)

MAIN DOWNLOADS

Lineage:

- Official:

LineageOS Downloads

download.lineageos.org

- Unofficial:

https://sourceforge.net/projects/lineageos-for-rtwo/files/lineage-21/

GOOGLE APPS (GAPPS) DOWNLOADS

- MindTheGapps:

http://downloads.codefi.re/jdcteam/javelinanddart/gapps

GOOGLE CAMERA DOWNLOADS

- BSG GCam APKs:

BSG GCam APKs - Google Camera Port

Modified Google Camera app by BSG.

www.celsoazevedo.com

DEVELOPER RESOURCES

GitHub - LineageOS/android_device_motorola_sm8550-common

Contribute to LineageOS/android_device_motorola_sm8550-common development by creating an account on GitHub.

github.com

GitHub - LineageOS/android_device_motorola_rtwo

Contribute to LineageOS/android_device_motorola_rtwo development by creating an account on GitHub.

github.com

GitHub - LineageOS/android_kernel_motorola_sm8550

Contribute to LineageOS/android_kernel_motorola_sm8550 development by creating an account on GitHub.

github.com

GitHub - LineageOS/android_kernel_motorola_sm8550-devicetrees

Contribute to LineageOS/android_kernel_motorola_sm8550-devicetrees development by creating an account on GitHub.

github.com

GitHub - LineageOS/android_kernel_motorola_sm8550-modules

Contribute to LineageOS/android_kernel_motorola_sm8550-modules development by creating an account on GitHub.

github.com

Motorola Edge 40 Pro / Edge+ (2023) / Moto X40 development

Motorola Edge 40 Pro / Edge+ (2023) / Moto X40 development has 12 repositories available. Follow their code on GitHub.

github.com

HOW TO CONTRIBUTE

Send your patches up for review: https://review.lineageos.org/

Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/

Source Code: https://github.com/LineageOS