• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM] LineageOS-14.1 for Meizu M2 Note [7.1.2]

Moyster

Senior Member
Aug 25, 2016
306
1,447
0
github.com

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 restore 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 on github : LineageOS Github repo.

Unofficial build of LineageOS 14.1 (Android 7.1.2) for the M2 Note

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! 
*/
Working features:
  • Hardware acceleration
  • RIL for SMS/Calls/Internet
  • GPS
  • WiFi
  • Vibration
  • Audio
  • Bluetooth / A2DP
  • MTP and Mass Storage mode
  • External SD
  • Camera (Videos & Photos)
  • Gestures
  • Gamepads support
  • All Sensors
  • Tethering
  • USB Otg
  • mBack button!
  • LiveDisplay (natively)
  • Power-On Alarms (wakes the device 1m30 before an alarm)
  • Sdcardfs (default)
  • Ext4 backported from 3.18 with crypto and lazytime
  • F2FS latest stable with lazytime
  • Zram (w/ LZ4 comp.)
  • Offline-Charging Mode
  • Signed build (user/release-keys)
  • Selinux enforcing :fingers-crossed:
  • Security Patch September 2019

Thanks to Prasenjit Roy for the quick-review video :highfive:
https://www.youtube.com/watch?v=Uy1sVlSeYks

Download:

Build 25 (Stable 9 "PrettyLate") : HERE (Gdrive link)
md5: fadd90ec9ec6dded055231386c7186e2
  • [lineage] sources updated as of today, includes September 2019 security bulletin
  • [device] fixed orientation sensor (still works after a week without reboots)
  • [kernel] upstream updates, small fixes and CVEs


Build 24 (Stable 8 "Late") : Here(temp. Gdrive link)
  • [lineage] sources updated as of today, includes November 2018 security bulletin
  • [device] fixed hardware HEVC encoding/decoding, should make some audio/video apps more stable :)
  • [kernel] upstream updates, small fixes and CVEs from November '18 for the wifi driver included.

Build 23 (Stable 7 "Spring") :
  • [lineage] sources updated as of today, includes May 2018 security bulletin
  • [device] enabling the virtual navbar will now disable the hardware button (for those with a broken buttons <3 )
  • [kernel] upstream updates, fixed exfat kernel drivers

Build 22 (Stable 6 "M'lady") :
  • [lineage] sources updated as of today, includes January 2018 security bulletin
  • [device] lights HAL built from source, leds settings cleaned (battery notification was not on stock rom, the settings were unused), mtk omx settings were fine-tuned (should reduce the lag when playing HQ videos), broken ffmpeg VIDEO (and aac) codecs were removed to keep things tidy.
  • [storage] encryption AND "formatting an sdcard as internal storage" should now properly work (updated kernel and TWRP)
  • [kernel] upstream updates, fully upstreamed encryption, ext4, dm, md and sdcardfs drivers, fixed encryption and sd as internal storage for ext4 & f2fs, a few tweaks/cleanup. NFS was reverted from the kernel, CIFS is now built, I'm not sure if I want to build both as NFS might not be used if by any of us, if anyone wants kernel support for NFS, voice yourself.
  • [blobs] removed a couple unused blobs, updated md_init / nvram_daemon to prevent crashes during modem start/stop/restart and during encryption process.
  • [doze] doze package was fixed by Dinolek ( hand-wave to wake and co, features) and now works properly
  • [shim] updated shim for graphic buffers by Dinolek, mtk_agps is now shim-free and was updated to a Nougat blob.


How to report Issues
  • If you find a bug please check if an exisiting issue is already mentioned and create one with details and logs here : Bug reports @ Github issues
    Make sure you fit those criteria first :
  • Make a backup, do a "Wipe Clean" install
  • Make sure you don't use MODifications (flash clean, try again)
  • Check the open/closed issues (most of the problems faced should have a mention about how it was fixed or how to workaround rare bugs)
  • Check google first, there might already be solutions, there's also "howto" (for making logs, using a different i/o scheduler, etc.. ;) )
  • Explain and give details, add logs as much as possible (and please take the time to search how to do those tasks, I know most of you are well intentioned when asking "how can I make logs", but you're not helping only me, you're helping yourself and everyone else who might/has the same issue :good: )

Issues
First boot and bluetooth :
NOTE: for those having issues with bluetooth not enabling, you need to actually copy/paste the file :
"/data/nvram/APCFG/APRDEB/BT_Addr" to "/data/", it should look like "/data/BT_Addr".
For some reasons (I couldn't find the definitive solution so far), it seems nvram can't access the "BT_Addr" in nvram and falls back to reading it from /data/BT_Addr (which is just a copy of BT_Addr). Using enforcing makes the nvram_daemon unallowed to create files in /data, which is why you need to copy it yourself. If anyone wants to make a small flashable fix.zip, I'll link it here :)
First boot and camera :
You can flash from TWRP this little fix : CameraFix-Dinolek-Los14.1.zip (Download section)
Proximity Sensor :
If your proximity sensor doesn't work and/or you have a black screen after hanging a call, you can find a flashable zip named "Mtk-prox.sensor.FIX.v2.zip" under the download section.
Flash this zip will install the small proximity calibration helper written by xen0n (here - thanks to him ;) )
[*] V2: should be automatic on boot/reboot, if not see the note for V1.
[*] V1: Usage is simple, if you need to calibrate your proximity sensor, just open terminal app (you can enable Terminal app in Settings>DevOptions), start the terminal and type :
"meizupshelper c" ( c as in Calibration)
Voilà !

How to install Recovery / TWRP :
Use the recovery linked in the download section of this thread :)

-> How to install TWRP <- I don't support unlocking bootloader AND installing TWRP, check the corresponding threads :highfive:

How to install G-apps :
LineageOS now recommends these G-apps package : click here, I installed the corresponding package to our rom : "Nougat Base Gapps package for 7.1.2 (arm64)", seems fine so far ;)
Open-Gapps should work too, refer to lineageOS wiki for more infos.

Don't be cruel:
If you want to mirror the rom or port it to another device, go ahead! Just do the right things and give proper credits. Thank you!

XDA:DevDB Information
[Stable] LineageOS-14.1 for Meizu M2 Note [7.1.2], ROM for the Meizu M2 Note

Contributors
Moyster, Fire855
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
Based On: LineageOS

Version Information
Status: Stable
Current Stable Version: 9
Stable Release Date: 2019-09-12

Created 2017-10-21
Last Updated 2019-09-15
 

Moyster

Senior Member
Aug 25, 2016
306
1,447
0
github.com
Old changelog :

Build 21 (Stable 5 "Santa2note") changelog :
  • [lineage] sources updated as of today
  • [device] audio HALs updated to properly support the new bluetooth drivers, and xml audio policies :)
  • [rootdir] our octo-core m2note has now properly defined cpusets, as well as a bunch of tweaks/optimisations for smoothness / reactivity and fast app-opening.
  • [blobs] device specific blobs were all moved to /vendor instead of /system, which allowed to update a few more binaries (like thermal_manager) and figure that ClearMotion is broken and now disabled.
  • [kernel] see the changelog on github, there's been a lot since last changelog ;) ion/binder/smi/fliper and a lot of drivers were updated, a lot of CVEs were patched, arm optimized crypto algos are now used (for SHA*/chacha20/etc..), NFS is enabled and supported, exfat/f2fs/sdcardfs were updated, some small battery-performance optimizations were merged (shouldn't be that big but still).

Build 19 (Stable 3 "FracturedWaduhek") :
  • [krack] wpa_supplicant fix in lineage source and kernel fixes
  • [device] updated MeizuDoze and CMActions (gesture implementation)
  • [sepolicy] cleanup and fix a few more denials
  • [security] hardened kernel config, extra entropy gather during boot,
  • [kernel] upstream f2fs updates, zram/zsmalloc drivers from 4.1 kernel
  • [misc] cleaned unused services/props


Build 18 (Stable 2 "Ruhr") changelog :
  • [backport] kernel backported uid_sys_stats, binder from 4.9
  • [camera] might not be new, but HDR is back since a few releases
  • [charger] switched to AOSP/Lineage charger (using healthd) / remove mediatek charger (kpoc_charger)
  • [config] added gps.conf to remove a few warnings, newer SPNs (from MAD and leskal)
  • [device] cleaned unused props and settings
  • [drivers] kernel libvsprintf, vmstat, fiq_debugger, f2fs, sdcardfs, ion, maxx77819(charger driver), fsync, LowMemoryKiller driver cleanup, fix and updates; removed mlog drivers, less debug/xlog/aee/custom code from mediatek, removed logspam from most mediatek drivers
  • [flaw] BlueBorne fixed (android & kernel)
  • [fs] ntfs & exfat kernel native drivers
  • [gamepad] xbox360-one / usb gamepad support (using an OTG cable, you can navigate / open apps, play games, etc..)
  • [gapps] fixed TrustedFace (unlock with your front camera should work now, thanks to MAD team)
  • [gps] GPS drivers from N, GPS binaries from N, properly reworked AGPS shim
  • [kernel] kernel upstream fixes and CVEs corrections, bug squashing and improvements (a problematic/spammy backtrace finally was fixed in task_mmu, meizu battery logs were removed, check and delete this file : /data/fuelgauge_datalog.txt to gain some free space in /data), code sanity updates (moving to __FUNCTION__ > __func__, no more seq_printf (increases overall security))
  • [misc] blob removed unused libs (libjtranscode), removed kpoc_charger, libshowlogo
  • [os] Android Security Bulletin to September 2017
  • [permission] added SIP permissions (should enable SIP if available)
  • [power] powerHAL made compatible for passthrough HIDL design
  • [ril] readded REFRESH_SESSION_RESET
  • [sepolicy] cleanup unused rules (mdlog, fuelgauge_data_file), fixed a few denials
  • [shim] libshim cleaned, removed libshim_asc and the AndroidSurfaceControl symbols
  • [rootdir] clean, rebased init files, added path for e/frandom to uevent
  • [vendor] Mediatek security fixes up to September 2017, kernel various mediatek bugfixes and memleaks fixed (backported to 3.10 from Mediatek 3.18 maintained kernel)

Build 17 (Stable 1.1 "Arewederyet") changelog :
  • [android] Security Bulletin from "5 August 2017"
  • [kernel] cmdq, gud, smi, ext4 drivers update & a bunch of CVEs
  • [lineage] rebased to latest sources up to 12/08/17


Build 16 (Stable 1 "XmasisSoon") changelog :
  • [kernel] updated 3.10.106 -> 3.10.107 & additional CVEs
  • [lineage] Security Bulletin from "5 july 2017"
  • [misc] smaller tweaks and fixes (sepolicy & doze)

Build 15 (RC 5 "Summertime") changelog :
  • [kernel] updated 3.10.105 -> 3.10.106
  • [lineage] Security Bulletin from "5 june 2017"
  • [device] smaller tweaks and fixes (sepolicy & initramfs)
  • [hotspot] Works natively (without editing build.prop ;) )

Build 14 (RC 4 "Proxima") changelog :
  • [camera] fixed a couple bugs, exposure, white-balance, brightness/contrast settings should work properly, better picture quality (still missing HDR, for reasons)
  • [video-recorder] fix a bug where recording with the flash on crashed, video recording is not extra dark anymore
  • [netd] properly supporting firewalls / iptables rules / per app restrictions :highfive:
  • [kernel] netfilter rules cleaned, less latency, now using "cubic" as tcp congestion algorithm (faster internet)
  • [kernel²] includes every modifications/fixes done during the "kernel tests release" (memory management fixed, ext4&f2fs security&performance update, optimised FS mount flags (incl. lazytime))
  • [lineage] rebased sources as of today "5 june 2017" ~3pm
  • [misc] small cleanups/improvements

Build 13 (RC 3 "Datupdat") changelog :
  • [bluetooth] config update
  • [kernel] new drivers (uid_sys_stat, mlog, some mtk drivers fixes), f2fs updates, net updates, now using MEMCG instead of kernel LMK, more CVEs fixed, reworked config, and various small tweaks/updates.
  • [lineage] latest sources from los, note: they moved from Gello to Jelly (a lighter/easier to maintain browser)
  • [misc] small fixes for sepolicy / device tree (f2fs fstab support)
  • [sdcardfs] moar fixes!

Build 12 (RC 2 "ICanHazSpeed") changelog :
  • [omx] omx blobs and some camera-related blobs were updated, should work a bit better and give a better picture quality ;)
  • [bluetooth] now using N omx blobs
  • [kernel] security updates, performance tweaks, net/wifi should connect faster.
  • [scheduler] changed from "deadline" to "bfq" as default
  • [performance] io scheduler and readahead values tweaked for boot / boot complete (faster boot, better UI fluidity)
  • [sdcardfs] moar fixes!
  • [security] A whole new Sepolicy to finally get rid of the small little bugs (touch unresponsive, etc...)

Build 11 (RC 1 "Anougat") changelog :
  • [release] Builds have reached the "Release Candidate" state, any feedback for broken features (things working before this build) is welcomed !
  • [gps] mtk agpsd crash fixed (should stop some battery drain/bug)
  • [kernel] security updates, stability updates, cleanup
  • [power] fixed "energy saver mode", device won't crash by enabling then disabling it
  • [sdcardfs] fixed mismerge, downloading files larger than 40mb works
  • [security] Selinux policy fixed, Selinux is now using "enforcing" mode :highfive:

Build 10 (Beta 10 "AnewFone") changelog :
  • [alarm] Power Off Alarms fixed (phone turned off will wake 1 minute and a half before any alarm defined ;) )
  • [android] lineage rebased to 7.1.2_r2 :highfive:
  • [blobs] latest modems and blobs from Flyme6
  • [camera] for real this time, no more "camera fix" to flash :fingers-crossed:
  • [gapps] LineageOS now recommends these G-apps package : click here, I installed the corresponding package to our rom : "Nougat Base Gapps package for 7.1.2 (arm64)", seems fine so far ;)
  • [kernel] a lot of updates / cleanup / fixes (including most of the recent security fixes)
  • [overlays] various fixes/cleanup
  • [PinnerService] pinned correctly some frameworks, should improve a bit performance
  • [sdcardfs] enabled by default, better performance for both internal storage and sdcards (should also fix permissions errors during copy)
  • [selinux] some sepolicy denials fix / cleanup
  • [shim] now using force_shim_lib instead of removing cap_sys_nice on surfaceflinger

    [*][f2fs] experimental: the rom should support f2fs, untested feature, take caution (not enabled by default, requires formating partitions to f2fs in twrp, I don't know if the twrp we use supports it correctly)
    see here : https://github.com/Moyster/nougat_device_meizu_m2note/blob/los-14.1/rootdir/fstab.mt6735
    f2fs allowed on /userdata and /cache partitions, improvements unknown :eek:

Build 9 (Beta 9 "Joke'sOnYou") changelog :
  • [camera] no more patch required, proper release
  • [video-recording] fixed a bug who crashed the camera if recording a video longer than 24sec

Build 8 (Beta 8 "StillNoJoke") changelog :
  • same as build 7
  • [omx] N omx blobs, fixes a lot of issues regarding A/V (Snapchat works :cowboy: )
  • [camera] no more legacy hal flag, more secure :highfive:
  • [wifi] hidden wifi should work

Build 7 (Beta 7 "IsNoJoke") changelog :
  • [kernel] global updates, performance, security (CVEs), sdcardFS/F2FS fixes, backported driver from 3.18 (Wifi / Gps / Bluetooth)
  • [proximity-sensor] should be fixed, uploaded a v2 that should apply on reboot automatically (added sepolicy, thanks to divis1969 & KevinMX for testing/fixing this)
  • [rom] lineage update

Build 6 (Beta 6 "BreathOfTheWild") changelog :
  • [android] LineageOS rebase to 7.1.1_r25 (March Security Bulletin)
  • [kernel] CVEs from March 2017 Sec Bulletin, more sdcardFS fixes
  • [hotspot] reverted to working state

Build 5 (Beta 5 "Damerge") changelog :
  • [android] LineageOS rebase to 7.1.1_r21 (05/02/17 security patch)
  • [sdcard] kernel/rom now supports "sdcardFS" but not used by default
  • [kernel] more security updates (more CVEs from february 2017 patch), kernel updated to 3.10.105
  • [misc] updates / cleanup / various little things

Build 4 (Beta 4 "Ixemo") changelog :
  • [netd] Data Counting fixed
  • [kernel] security updates (some CVEs from february 2017 patch)
  • [device] blobs update with native Nougat blobs
  • [shim] sensors are now shimmed (less patches on android sources)
  • [OMX] Cleanup (should fix a few crashes)

Build 3 (Beta 3 "Kameha") changelog :
  • [camera] touch to focus is fixed
  • [recording] 720p profile should be working properly now
  • [device] blobs cleanup / some camera blobs were updated from Flyme 6.7.1.17
  • [shim] audio is now shimmed (less patches on android sources)
  • [OMX] FLAC is now working

Build 2 (Beta 2 "Ohemix") changelog :
  • [perf] performance and battery should feel noticeably better :)
  • [kernel] some drivers were updated
  • [device] services / blobs cleanup, more free ram
  • [shim] libmtk_symbols was turned into a shim lib, symbols trimmed to only what's needed.
  • [OMX] fully working, no more legacy support, no additional package to flash, stability improvements (no more mp3 crashes)
  • [OCM] Offline charging mode fully working, it displays the battery charge and puts the screen to sleep after timeout ;)
  • [bonus] Google Assistant trick ( ro.opa.eligible_product=true) added for easier G-assistant activation

Build 1 (Beta 1 "GOFALCONS") changelog :
  • Initial release
  • Bring-up basic functionalities
 
Last edited:

Moyster

Senior Member
Aug 25, 2016
306
1,447
0
github.com
Download:
Build 19 (Stable 3 "FracturedWaduhek") : Here
  • [krack] wpa_supplicant fix in lineage source and kernel fixes
  • [device] updated MeizuDoze and CMActions (gesture implementation)
  • [sepolicy] cleanup and fix a few more denials
  • [security] hardened kernel config, extra entropy gather during boot,
  • [kernel] upstream f2fs updates, zram/zsmalloc drivers from 4.1 kernel
  • [misc] cleaned unused services/props

Enjoy :)
 
Last edited:

eduardo579

Senior Member
Oct 30, 2014
263
71
28
22
Soria
Hi, thanks for the update, but I can't root it flashing the v2.79 SuperSu zip. I've also tried with v2.82 but with the same result. How can I root it?

Edit: ok flashed Magisk and no problems. Everything is working fine.
 
Last edited:

Alucard

Elite Member
Jul 2, 2012
1,390
238
0
Thanks a lot for the update @Moyster,please update the twrp recovery so that it will work for all users,for me it doesnt work, it cant clean up cache or system and i end up with broken partition.
 

zty915

Member
Aug 28, 2017
11
3
0
Thanks a lot for the update @Moyster,please update the twrp recovery so that it will work for all users,for me it doesnt work, it cant clean up cache or system and i end up with broken partition.
i use the twrp 3.1.1 ,when you wipe cacher and system,you should to waite about ten minites,it will be work[COLOR="Silver"[COLOR="Silver"]

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

[/COLOR]thanks to update.
i find the charging animation is reversed when shutting down the phone to charge
 
  • Like
Reactions: jatzio and Alucard

Alucard

Elite Member
Jul 2, 2012
1,390
238
0
i use the twrp 3.1.1 ,when you wipe cacher and system,you should to waite about ten minites,it will be work[COLOR="Silver"[COLOR="Silver"]

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

[/COLOR]thanks to update.
i find the charging animation is reversed when shutting down the phone to charge
Oh i didnt wait that long,but with older twrp recoveries there is no such issue,i think its a lot of time to wipe partitions and must be fixed but thats up to the developer ,im just hopig he will see my request.
 

alwayssummer

Member
Dec 4, 2008
24
1
0
Singapore
My flash failed

Trying to flash lineage-14.1-20171021-UNOFFICIAL-m2note.zip' onto my phone for the first time (had Flyme this morning).

Code:
I:operation_start: 'Flashing'
Installing zip file '/extSdCard/lineage-14.1-20171021-UNOFFICIAL-m2note.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Target: Meizu/lineage_m2note/m2note:7.1.2/NJH47F/1a8158dae2:user/release-keys
Target: Meizu/lineage_m2note/m2note:7.1.2/NJH47F/1a8158dae2:user/release-keys
could not detect filesystem for /dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system, assuming ext4
could not detect filesystem for /dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system, assuming ext4
mount: failed to mount /dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system at /system: No such file or directory
mount: failed to mount /dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system at /system: No such file or directory
about to run program [/tmp/install/bin/backuptool.sh] with 2 args
run_program: child exited with status 127
unmount of /system failed; no such volume
unmount of /system failed; no such volume
about to run program [/tmp/install/bin/otasigcheck.sh] with 1 args
Patching system image unconditionally...
performing update
Patching system image unconditionally...
open "/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system" failed: No such file or directory
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.
E:unknown command [log]
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
Error installing zip file '/extSdCard/lineage-14.1-20171021-UNOFFICIAL-m2note.zip'
Updating partition details...
I:Data backup size is 0MB, free: 8661MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
Any ideas?

EDIT: Seems to be the same problem as https://forum.xda-developers.com/showpost.php?p=74046296&postcount=1308, so I applied the same solution. Seems to have worked... still waiting for first time boot...
 
Last edited:

horacle333

New member
Sep 20, 2017
4
0
0
Hi, thanks for the update, but I can't root it flashing the v2.79 SuperSu zip. I've also tried with v2.82 but with the same result. How can I root it?

Edit: ok flashed Magisk and no problems. Everything is working fine.
I had the same problem > thanks for the Magisk tip > now i'm rooted

All works fine!