
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.
Code:
#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
- LEX820 (X2_CN)
- LEX821 (X2_WW)
- LEX822 (X2_CN)
- LEX829 (X2_NA)
- LEX910 (MAX_PLUS. Currently only supported on unofficial test builds)
HOW TO INSTALL LINEAGEOS WITH LINEAGE RECOVERY
- Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
Please follow the official LineageOS Wiki instructions for our device.
https://wiki.lineageos.org/devices/x2/install
HOW TO INSTALL LINEAGEOS WITH TWRP
- Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
- Unlock bootloader and install TWRP 3.3.0-1 (designed for Pie and treble) or higher. TWRP instructions are here.
- Download the LineageOS and firmware zips. (see Downloads)
- Boot into TWRP.
- Copy the downloaded zip files to internal sdcard.
- Perform a backup of your current ROM. (Optional)
- RECOMMENDED: Do a factory reset (clean wipe)! No support if you didn't! (Wipe Dalvik, system, cache and data)
- Flash firmware and LineageOS zips.
- Optional: Install the Google Apps addon package. (see Downloads)
- Reboot to system.
HOW TO UPDATE LINEAGEOS WHEN ENCRYPTED VIA TWRP
- NOTE! Please avoid doing OTA via Lineage Updater when your device is encrypted because TWRP screws up and causes Google Services Framework to crash like crazy. Only Lineage Recovery properly supports OTA via Lineage Updater.
- Download the LineageOS zip(s). (see Downloads)
- Copy the LineageOS zip to internal sdcard.
- Reboot to TWRP.
- Flash LineageOS. (Wiping Dalvik and Cache is optional, but recommended)
- Reboot to system.
MAIN DOWNLOADS
TWRP for x2: Official https://twrp.me/leeco/leecolemax2.html
TWRP for max_plus: Official https://twrp.me/leeco/leecolemaxpro.html
Lineage Recovery:
- Official: https://download.lineageos.org/x2
- Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/p16551
LineageOS:
- Official: https://download.lineageos.org/x2
- Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/
Discontinued unofficial mirrors:
- Unofficial: https://sourceforge.net/projects/lineageos-for-x2/files/16.0 Unofficial Releases/
- Unofficial Google Drive mirror: https://drive.google.com/open?id=1uOrZzcer8SYe-BcYZuaSJTPOehQ68EBc
SU-Addon: (not available yet for LineageOS 16.0)
Migration-Tools: https://androidfilehost.com/?w=files&flid=254680 (Unofficial->Official, Official->Unofficial)
GOOGLE APPS (GAPPS) DOWNLOADS
- MindTheGapps: (RECOMMENDED!)
Official: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
Mirror: https://androidfilehost.com/?w=files&flid=170282
- OpenGapps:
Official:
https://opengapps.org
GOOGLE CAMERA (GCAM) DOWNLOADS
Google Camera: (Recommend Tolyan009 builds as Arnova8G2 builds are not always compatible with Pie x2 ROMs)
celsoazevedo.com/files/android/google-camera/dev-tolyan009/
Current recommended gcam6 build for LineageOS 16.0 on x2
https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_BSG_Arnova-based_v.1.4a_TlnNeun.apk
If you have pink tint?
More > Settings > "advanced" under Quick Settings section > Fix > Fix old WB gains
If you have green selfie camera?
Set front camera model to Nexus 6P
If that doesn't work?
More > Settings > "advanced" under Quick Settings section > Fix > Fix front camera
Here's also a good gcam config by @Prashant69 that also helps remove the tint issues if the above fixes don't work
https://sourceforge.net/projects/lineageos-for-x2/files/Mods and Tweaks/
Here's how to load configs
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
MISC DOWNLOADS
ThE_MarD's LineageOS for x2 Sourceforge, directory: (also contains some mods and tweaks) https://sourceforge.net/projects/lineageos-for-x2/
FIRMWARE DOWNLOADS
Minimum required versions:
- LEX820 (X2_CN) 20s
- LEX821 (X2_WW) 19s
- LEX829 (X2_NA) 20s
- LEX910 (MAX_PLUS) 13s
Optional newer versions:
- LEX820 (X2_CN) 30s
- LEX820 (X2_CN) 466D
Link for x2 firmware: https://sourceforge.net/projects/lineageos-for-x2/files/Firmware Updates/
Link for max_plus firmware: https://sourceforge.net/projects/lineageos-for-max-plus/files/firmware/
DEVELOPER RESOURCES
https://github.com/lineage-x2-devs
https://github.com/LineageOsMaxPlus/
https://github.com/lineageos/android_device_leeco_msm8996-common
https://github.com/lineageos/android_device_leeco_x2
https://github.com/lineageos/android_kernel_leeco_msm8996
HOW TO CONTRIBUTE?
Send your patches up for review: https://review.lineageos.org/
Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/
XDA:DevDB Information
[OFFICIAL][X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2, ROM for the LeEco Le Max 2
Contributors
ThE_MarD, codeworkx, mosimchah,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,Tortel1210,visionary
Source Code: https://github.com/LineageOS
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
ROM Firmware Required: x821 19s. X820 and x829 20s. x910 13s. Higher is optional.
Based On: AOSP
Version Information
Status: Nightly
Created 2018-10-05
Last Updated 2020-01-12