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

[1005] LineageOS 14.1 for MI MAX 2 (oxygen)

Status
Not open for further replies.
Search This thread

xuefer

Senior Member
Feb 22, 2013
166
244
Shenzhen
github.com
Introduction
LineageOS 14.1 designed and built for MI MAX 2

Images
attachment.php

(Click "Screenshots" on top left for more)

Downloads
MOD EDIT Download removed

Installation instructions
Just like any device flashing using TWRP, before which you need xiaomi oem unlocking
  1. Unlock bootloader >> && install TWRP
  2. Boot into TWRP recovery by holding Volume Up
  3. Download ROM file in your PC, transfer ROM file to phone with MTP access
  4. Wipe -> Wipe data if it was not LineageOS 14.1
  5. Install -> select ROM file you just download, swipe to flash

Features
  1. MIUIv5 like navigation buttons haptic feedback
  2. Brevent (formerly "Prevent Running") integrated
  3. Clean, no bloatware

Warning: Although this is designed for Max 2, this project is in Beta test status.
Warning: Brevent (which was "Prevent running") is built into this ROM. For any IME or Tasker like app that need foreground running, remove the app from Brevent.

Donation
Consider donate to the author to get this ROM better
Paypal.com or QQ: [email protected]
Alipay Donate:
attachment.php

The kernel in this ROM is taken from stock rom. No source released by Xiaomi O.E.M. yet

XDA:DevDB Information
android_device_xiaomi_oxygen, ROM for the Xiaomi Mi Max 2

Contributors
xuefer
Source Code: https://github.com/xuefer/android_device_xiaomi_oxygen

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
Based On: LineageOS

Version Information
Status: Testing
Current Beta Version: 1005
Beta Release Date: 2017-10-05

Created 2017-07-11
Last Updated 2017-10-05
 

Attachments

  • L-tile.png
    L-tile.png
    115.2 KB · Views: 29,313
  • L-about.png
    L-about.png
    141.3 KB · Views: 41,061
  • a6x01584fnpwu7r6ssdiy75.png
    a6x01584fnpwu7r6ssdiy75.png
    8.1 KB · Views: 40,017
Last edited by a moderator:

xuefer

Senior Member
Feb 22, 2013
166
244
Shenzhen
github.com
This project is still in develop. Donate if you like this project

Current buggy/non working:

  • MI SIM not working (no idea how to support it)

What's working/fixed

  • Display color fixed, disabled color profile while keeping other SDM effects
  • WiFi fixed. MAC address need fixed
  • Bluetooth
  • headphone-jack
  • Phone calls
  • Phone IMS setting won't crash any more
  • RIL stable, thanks to getting rid of MI3TD special changes
  • SMS
  • Dual SIM/LTE
  • LED/Lights, HAL driver written (modified source from MI3 TD), but LineageOS support 256 levels only
  • Touch, Vibration, Sensors
  • Fingerprint fixed
  • packed firmware into lineage_oxygen_*.zip (firmware need to match blobs version)

WIP status (not published yet)

  • Infra-red

Sorry for the delay. I was busy with my house and the device was given to my dad. I'll try to fix Bluetooth issue. for any boot loop issue, please really provide log like i describe in one of the reply
Thank you for the donation

ChangeLog:
1005:
0826:
  • adds widevine drm
0823:
0811:
  • fixes for goodix fingerprint sensor
  • fixes white led-blink (custom brightness is N/A for blinking, limited by kernel)
  • removes fingerprint no longer map as dpad center button
  • DPI reset to 480 (default) instead of the real-world value. fix play store app compatibility issue
 
Last edited:

Akemdwr

Senior Member
Feb 25, 2010
60
3
Kiev
If I am on official global ROM, I need — Advanced wipe, wipe: dalvik, cash, data, system; or just wipe data?
And after flash will be TWRP still working, so I can return to backup without PC?
Sorry if my questions are a little nubish, my previous devise was sony, on 5 android, nougat and xiaomi are still complicated for me.
 

hayatesan

Senior Member
Aug 24, 2014
58
7
Nice seeing Lineage coming, thanks Xuefer.
Won't install until wifi/bluetooth/sound works, but I'm already excited :)
 

xuefer

Senior Member
Feb 22, 2013
166
244
Shenzhen
github.com
Nice seeing Lineage coming, thanks Xuefer.
Won't install until wifi/bluetooth/sound works, but I'm already excited :)

what about "RIL get restarted periodically" :cyclops:
wifi(with correct mac)/bluetooth done

ear-piece/speaker doesn't work for now but all other seems fine, including sound over bluetooth, sound over Wireless Display

it's really hard to track things down, took me hours to get each problem fixed. let's hope if someone donate
 

xuefer

Senior Member
Feb 22, 2013
166
244
Shenzhen
github.com
Trying this many thanks!
Btw is there an official development thread or is this it?
it depends on what you mean by "official"
I made both this ROM and this thread, yes, official
for LineageOS: since there's no kernel source release by xiaomi, i guess it won't be accepted by LineageOS
for other independent work on same goal, there is, however comes with bloat-ware, can be found on miui.com thread
 

xuefer

Senior Member
Feb 22, 2013
166
244
Shenzhen
github.com
If I am on official global ROM, I need — Advanced wipe, wipe: dalvik, cash, data, system; or just wipe data?
And after flash will be TWRP still working, so I can return to backup without PC?
Sorry if my questions are a little nubish, my previous devise was sony, on 5 android, nougat and xiaomi are still complicated for me.

you need to:
back up data if you want
wipe cache if you want
wipe data is required (which also wipe dalvik-cache)

to flash back MIUI, restore data (or wipe data), flash MIUI full zip
as of now this version: do NOT auto reboot, do NOT reboot using GUI button. hold hardware button key for a few seconds so it power off, then power on, you're good to go, wait a few minutes for the initial boot
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 87
    Introduction
    LineageOS 14.1 designed and built for MI MAX 2

    Images
    attachment.php

    (Click "Screenshots" on top left for more)

    Downloads
    MOD EDIT Download removed

    Installation instructions
    Just like any device flashing using TWRP, before which you need xiaomi oem unlocking
    1. Unlock bootloader >> && install TWRP
    2. Boot into TWRP recovery by holding Volume Up
    3. Download ROM file in your PC, transfer ROM file to phone with MTP access
    4. Wipe -> Wipe data if it was not LineageOS 14.1
    5. Install -> select ROM file you just download, swipe to flash

    Features
    1. MIUIv5 like navigation buttons haptic feedback
    2. Brevent (formerly "Prevent Running") integrated
    3. Clean, no bloatware

    Warning: Although this is designed for Max 2, this project is in Beta test status.
    Warning: Brevent (which was "Prevent running") is built into this ROM. For any IME or Tasker like app that need foreground running, remove the app from Brevent.

    Donation
    Consider donate to the author to get this ROM better
    Paypal.com or QQ: [email protected]
    Alipay Donate:
    attachment.php

    The kernel in this ROM is taken from stock rom. No source released by Xiaomi O.E.M. yet

    XDA:DevDB Information
    android_device_xiaomi_oxygen, ROM for the Xiaomi Mi Max 2

    Contributors
    xuefer
    Source Code: https://github.com/xuefer/android_device_xiaomi_oxygen

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.x
    Based On: LineageOS

    Version Information
    Status: Testing
    Current Beta Version: 1005
    Beta Release Date: 2017-10-05

    Created 2017-07-11
    Last Updated 2017-10-05
    44
    This project is still in develop. Donate if you like this project

    Current buggy/non working:

    • MI SIM not working (no idea how to support it)

    What's working/fixed

    • Display color fixed, disabled color profile while keeping other SDM effects
    • WiFi fixed. MAC address need fixed
    • Bluetooth
    • headphone-jack
    • Phone calls
    • Phone IMS setting won't crash any more
    • RIL stable, thanks to getting rid of MI3TD special changes
    • SMS
    • Dual SIM/LTE
    • LED/Lights, HAL driver written (modified source from MI3 TD), but LineageOS support 256 levels only
    • Touch, Vibration, Sensors
    • Fingerprint fixed
    • packed firmware into lineage_oxygen_*.zip (firmware need to match blobs version)

    WIP status (not published yet)

    • Infra-red

    Sorry for the delay. I was busy with my house and the device was given to my dad. I'll try to fix Bluetooth issue. for any boot loop issue, please really provide log like i describe in one of the reply
    Thank you for the donation

    ChangeLog:
    1005:
    0826:
    • adds widevine drm
    0823:
    0811:
    • fixes for goodix fingerprint sensor
    • fixes white led-blink (custom brightness is N/A for blinking, limited by kernel)
    • removes fingerprint no longer map as dpad center button
    • DPI reset to 480 (default) instead of the real-world value. fix play store app compatibility issue
    13
    hey guys, the results are in :) in summary, MIUI.pro seems to be a TINY bit more performant and battery life friendly, although the differences are SO marginal that in the end it basically just comes down to what style and functionality you prefer!

    Here are the results in detail:
    Lineage OS 14.1 vs. MIUI.pro 7.12.14

    Geekbench 4.2 average of three runs:
    Single Core - 885.3 vs. 871.7
    Multi Core - 4343 vs. 4254.3
    Conclusion: Geekbench is a bit more performant than LOS

    Antutu 6.3.7 average of three runs:
    Total - 63268.7 vs. 63339.7
    3D - 12321 vs. 12661.7
    UX - 24452.7 vs. 24262.7
    CPU - 21074.3 vs. 20964.3
    RAM - 5420.7 vs. 5450.7
    Conclusion: As before with Geekbench, CPU and UX are a bit more performant on LOS, whereas 3D, RAM and thus Total are a bit higher/better on MIUI.pro. I assume this is due to better graphics driver in MIUI.pro compared to the ported LOS version.

    PCMark 2.0.3716 Work 2.0 Battery Life Test (Average of 143 runs)
    Conditions: Run from 100% to 20% Battery, Screen brightness minimum (non-adaptive), Bluetooth/Wifi/GPS/Sync switched on
    Battery Life - 23h24min vs. 23h33min
    Total Score - 4645 vs. 4720
    Web Browsing - 4923 vs. 4928
    Video Editing - 5160 vs. 5227
    Writing - 3875 vs. 4019
    Photo Editing - 7264 vs. 7312
    Data Manipulation - 3025 vs. 3093
    Conclusion: MIUI.pro beats LOS in every aspect in this test. However, only the "Writing" Score is (barely) noticeable with a difference of 3.7%, whereas all other scores are within a range of 0.1 and 2.2 % difference and thus negligible.

    Overall conclusion: LOS clocks in at 99.4% averaging all scores, which in turn means that MIUI.pro provides 0.6% better results.

    So there you have it! What this means in my opinion: HUGE kudos to brother @xuefer in porting a LOS rom basically as performant and battery friendly as a custom rom based on stock MIUI firmware! I for one am most likely gonna go the LOS route just for the sake of that warm fuzzy feeling of running something TRULY custom on my Mi Max 2 :) besides, I prefer the style being closed to stock android ;)

    Cheers folks!
    10
    finally xiaomi released source code HERE

    with this we can have our roms built from source (with everything working hopefully) instead of porting from other devices
    @xuefer please have a look in to the kernel source
    9
    Hello...,
    Say anything " lineage os 15 when release for Mi max 2 ".

    ha! :D

    1) no kernel sources for mi max 2
    2) lineage 15 (or rather 15.1, development for 15 was abandoned in favour of 15.1 based on oreo 8.1) doesnt even have a stable build yet!

    ---------- Post added at 05:54 PM ---------- Previous post was at 05:22 PM ----------

    so guys! ive got a very interesting visual comparison for you :) A total of four images:

    1) Google Camera without HDR+ (basically stock Mi Max 2 picture quality)
    2) Google Camera with HDR+
    3) Google Camera with HDR+ Enhanced
    4) Sony DSC-RX100 (my main camera I actually take pictures with since I still think smartphone cameras are crap :D)

    All four pictures were taken in absolute darkness, with only the street lamps and some building lights for illumination, so basically worst case scenario for a camera.

    What I can see:
    1) GCam without HDR+ = lots of noise (especially the sky), mushy details, edges are slurry, all in all ugly picture
    2) GCam with HDR+ = Greatly reduced noise, more details discernible (i.e. edges of plant leaves), colors look more accurate and not so washed out
    3) GCam with HDR+ Enhanced = This is actually the first time I can see a difference to regular HDR+! Dark spots, including and especially the sky are a bit brighter and you can see more details. Its not much, but now I can finally say that HDR+ Enhanced is actually doing something :)
    4) Sony DSC-RX100 = Yeah, this camera is in a league of its own compared with a smartphone camera :) There are no black or dark spots, details are discernible in all corners of the scene, colors are way more accurate, edges sharper. All in all, a much more accurate representation of what the human eye actually sees in that situation.

    Conclusion: The GCam Port helps the Mi Max 2 camera immensely, more details are visible, colors more accurate, image quality is not slurry anymore, sharp edges and less noise! Still, in my book, there is no smartphone replacement for an actual camera such as my trusty DSC-RX100. Even though it was released back in June 2012 and is thus already 5.5 years old, its in a league of its own concerning image quality, especially in worst-case scenarios.

    Nevertheless, great to see that we can pimp up our phone camera to make those spontaneous snapshots a bit more nice to look at!

    What are your thoughts? Discuss! :)

    1) Google Camera without HDR+
    vd4NAOs.jpg

    2) Google Camera with HDR+
    nTPDceL.jpg

    3) Google Camera with HDR+ Enhanced
    PW8qklp.jpg

    4) Sony DSC-RX100
    R68CEnL.jpg