yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] mauronofrio:
Lin·e·age

/ˈlinēij/

1. lineal descent from an ancestor; ancestry or pedigree.

2. a sequence of species each of which is considered to have evolved from its predecessor.

Download from official My private Download Server:

https://www.androidfilehost.com/?w=files&flid=274414

DONATE LINK

If you want to support the project please consider making a donation, thanks.

[IMG="Donate link"]https://s31.postimg.org/srcv48myj/paypal.png[/IMG]

Open Gapps:

http://opengapps.org/

- Nubia M2 needs Platform "ARM64"

-You have to use Gapps Android "6.0" and i recommend variant "pico" which includes only bare minimum to get Google Play functionality​

Does Work:

Most stuff like RIL, WIFI, BT and many lineage feaures are already ported

Fingerprint

Softkey Led

Camera (The stock app have some problems with video, you can use opencamera)

much more

Doesn't Work:

Notification LED

DT2W

Please tell me

#include "std_disclaimer.h"
/*
* 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.
*/

XDA:DevDB Information

LineageOS, ROM for the Nubia M2

Contributors

[MENTION=4712355]mauronofrio[/MENTION]

Source Code:

https://github.com/LineageOS

https://github.com/mauronofrio/android_device_nubia_NX551J

https://github.com/mauronofrio/android_vendor_nubia_NX551J

https://github.com/mauronofrio/NX551J_M_kernel

ROM OS Version: 6.x Marshmallow

Based On: LineageOS

Version Information

Status: Nightly

Created 2018-06-05
[Miscellaneous Android Development] bumperiano:
Thank you for your work. ;)
[Miscellaneous Android Development] yerling:
thank you very much
[Miscellaneous Android Development] estuardo4:
Hello,

My dual SIM problems are now resolved. All other issues that you listed indeed are solved. The only problem that I have noticed is that the fingerprint reader is a bit slow compared to Nubia 5 stock.

Aside of the camera and the sound, I believe it can be used as a daily driver.

I hope many more people can install LOS so maybe efforts can be directed to LOS 14 or 15 :)

Thank you very much for your effort. It is really appreciated.
[Miscellaneous Android Development] tuxdude143:
Excellent stuff! Hopefully the camera issues will get ironed out soon so we will have access to a daily driver rom for the M2.

You've done a great job!
[Miscellaneous Android Development] estuardo4:
And it seems that Mauronofrio is really dedicated to crush all bugs. I'm pretty sure he'll have the camera working in the next few hours. He's relentless.
[Miscellaneous Android Development] wahab.safi3:
Thanks alot for making this rom for our poor nubiam2:)

My question is whats the difference between ota version and unofficial version??
[Miscellaneous Android Development] reticuli:
Wow, thank you! Soon we have one good phone when all bugs are gone!
[Miscellaneous Android Development] BlueFlame4:
Nice! What's the logcat if you try to access the camera?
[Miscellaneous Android Development] keeper_ab:
Amazing work dude, go go go!

Enviado desde mi NX551J mediante Tapatalk
[Miscellaneous Android Development] patrickjquinn:
I've submitted this to the portal. Hopefully other m2 users see this and rally behind the device. Your excellent work could well be the start of a vibrant community :)
[Miscellaneous Android Development] Efeitosa:
Hi [MENTION=4712355]mauronofrio[/MENTION], thank you for your hard work and for share with us.

great rom, great job!

BR
[Miscellaneous Android Development] txapi.ferrer:
It's great to see that this device it's getting some attention. Thanks a lot to developers.

Keep it up! If more testers are needed...please let us know.

Enviado desde mi NX551J mediante Tapatalk
[Miscellaneous Android Development] mauronofrio:
Use the unofficial, it is the latest version
[Miscellaneous Android Development] flaviohsr:
Thank you for dedicate your time to our phone. I hope we can advance much more in the future. :)
[Miscellaneous Android Development] AruncarD:
BOm trabalho

Muito Bom , eu testei , oque achei de erro foi a câmera e o LED , não teria como coloca a câmera nativa do nubia ?

mas ta de parabéns continua que ta ficando bom
[Miscellaneous Android Development] kristokin:
In all forums there was a clamor for some brave who dared to be with Nubia M2, Well here we have it, now it is necessary that not only be encouraged morally but with monetary vitamins. He deserves it for being the first.

* Thanks I have already done my bit, despite the fact that my regular phone is the extraordinary LE MAX 2

* I'm sorry for my English, and thanks to Google for providing it.
[Miscellaneous Android Development] Hees-oo-Lee:
Thanks for your work [MENTION=4712355]mauronofrio[/MENTION] I installed this rom 2 days ago, but I'm out of time. I only wanted to say thanks, grazie
[Miscellaneous Android Development] estuardo4:
I am really shocked about the work made by Mauronofrio. I know LOS 13 is a very stable build, but I have it installed since last Monday and, aside of the listed problems, I haven't had a single FC, battery or memory leakage, or any other problem. It is stable enough to be a daily driver. At least for my use. The only thing I miss is the ability to use the flashlight as a lantern. But other than that, I haven't found a single bug.
[Miscellaneous Android Development] mauronofrio:
Yes it si really stable, i'm looking for fix the 2 big bugs and then i want to fix also dt2w
[Miscellaneous Android Development] Zaboon26:
Thank you for the hard work, I can't wait to try it ! This nubia has great hardware and now thanks to you mauronofrio it gets awesome software... Thank you so much, grazie mille :good:!
[Miscellaneous Android Development] mauronofrio:
In the latest update i have enabled dual band wifi
[Miscellaneous Android Development] wahab.safi3:
Thanks for hard working

How long we should wait for solving the camera bro ?
[Miscellaneous Android Development] mauronofrio:
I don't know, there is some problems for the camera
[Miscellaneous Android Development] reticuli:
I think M2 got Sony dual IMX258 back and Omnivision front cam, but i am not sure. Thank you for your bug hunting solving!
[Miscellaneous Android Development] mauronofrio:
I know it, but at this moment the phone don't recognize the sensor, so for the lineage the phone has not a camera. How i say it needs a bit of time. I hope [MENTION=7737930]highwaystar_ru[/MENTION] will help us
[Miscellaneous Android Development] BlueFlame4:
Could you upload a logcat from a fresh boot?
[Miscellaneous Android Development] sevenr33:
Thank you very much for your work, will follow this rom and install it when it is stable since I need my phone on daily basis with camera.

I'm glad some one started to do something new to our phone, such potential was in waist.
[Miscellaneous Android Development] Zaboon26:
Same here ! :highfive:
[Miscellaneous Android Development] estuardo4:
Judging by the number of downloads of LOS 13, there's not a lot of people using the device right now. I thought that a lot of M2 users from Russia and Europe could be running to get the build from Mauronofrio. I guessed wrong. It is a shame. This build deserves to be tested on the M2
[Miscellaneous Android Development] yerling:
How was it to be expected, not many are willing to live without a camera. personally, I'm with Los13. I do not care much about the camera.
[Miscellaneous Android Development] estuardo4:
I agree with you. But we are talking about xda-developers users too. You make a nandroid backup, a Titanium backup and you try out the ROM. I've been doing that for a long time for different devices and ROMs. It takes you 10 minutes to make the nandroid backup, five minutes installing the ROM and a few hours testing if you like it. The download counter should be higher. Just out of curiosity, I'd install it.
[Miscellaneous Android Development] mbtabz:
I wanna thank mauronofrio and tuxdude143 for all their hard work. I've been testing this ROM since it was out. Apart from the mentioned bugs, everything work perfectly. The battery is really good (similar to stock rom), no app clash since installation. I use GAPPs aroma version and it work fantastic. I really wish the camera will get fix in these coming days. I believe everyone is waiting for that so that they can use this awesome ROM. Again big thanks to mauronofrio, tuxdude143 and anyone else who helped in any way to make it possible for us to have a chance to breath new life to our device.
[Miscellaneous Android Development] yerling:
I use the same method, but not everyone wants to take the job, but look at all the comments. Everyone says thank you but I'll wait for the camera to work. :confused:
[Miscellaneous Android Development] Nubinaut:
Wow ! I discovered today that it's possible to put LineageOS on my M2, Thank You.

I have put the Germak rom in the past and that run very well, I have installed many apps.

I don't want change the rom for the moment or maybe I will buy a second Nubia M2 for put the LineageOS rom.
[Miscellaneous Android Development] arya.one:
it's amazing to know that ou nubia m2 already have LOS, even if it still beta but it's great news.

i already tried this rom for a few hours, and there are few bug that i noticed

- fingerprint not work, when i try to record the finger print, it's always go back to menu because phone thinks i just press the home button

- recent button (left touchpad) not work

- camera

- no vibration on touchpad (left, center and right)

besides all that bugs, i surprised that this rom work smoothly without overheat or battery draining.

keep the good work bro, i believe if this rom become perfect, the others rom will come one after another :good:
[Miscellaneous Android Development] Hees-oo-Lee:
Recent apps is long press home button
[Miscellaneous Android Development] Zaboon26:
According to https://www.lineageoslog.com/statistics there's 67 active devices, wich is not that bad, keep goin' on the hard work !
[Miscellaneous Android Development] mauronofrio:
Yes i saw too, il need to fix camera then i will fix others things
[Miscellaneous Android Development] phaterr:
Hello everyone! Thanks mauronofrio for great work.

I have experienced a couple of bugs - how do I report them for further investigation?

1. While watching twitch web-page in Chrome, and attempting to fullsize screen, the phone got rebooted.

2. Phone unexpectedly entered the safe mode, i.e. the desltop screen and all the icons got washed out of colour, and apps did not open. Reboot fixed this.
[Miscellaneous Android Development] Yoshypt:
Thank you, amazing to see our phone getting a nice rom :D
[Miscellaneous Android Development] rodpgfx:
Thanks a lot guys for spending so much time to put out this ROM. You guys deserve a pat on the back!
[Miscellaneous Android Development] rodpgfx:
Anybody else having trouble with recent apps button? It works for menu but not for recent apps for me.

Also, buttons aren't lighting up. I think I read all the thread, never seen anything about those things.
[Miscellaneous Android Development] reticuli:
Regarding button lights, not working (led notification). You have to wait, mauronofrio told us that working camera is first thing to fix before the others.
[Miscellaneous Android Development] rolandvb:
Camera is more important and a wise decision :)!
[Miscellaneous Android Development] estuardo4:
Mauronofrio, what is the biggest hurdle that you are facing getting the camera to work? I know that on most Custom ROMs, the camera is one of the hardest things getting to work. And I guess Nubia's camera should be very difficult to port. But is there a way that we can help? Maybe posting on other forums asking for help?

This has becoming a one man job and several others waiting for this man to succeed, but I believe that most of us can help with something. We are more than willing.
[Miscellaneous Android Development] mauronofrio:
In the latest update i have partially fixed led problem and i fixed soft button, now you can set the left button to see recents apps
[Miscellaneous Android Development] rolandvb:
You seem one of the only few left who is still interested in the Nubia M2 and this forum seem to be like dead ,same as on the 4PDA forum in Russia

i did post a download link to the latest Nubia emergencytool 1.6 partial translated in english and had no responce what so ever ??

https://yadi.sk/d/n40Ta4rO3YKQ6H
[Miscellaneous Android Development] estuardo4:
Mauronofrio, what's the difference between the two different versions of the new Lineage ROMs you uploaded today?

Thank you for your efforts. I hope the Camera apk would be ready soon.
[Miscellaneous Android Development] rodpgfx:
Well don't tell him that.....He'll stop work on it! lol. I am still very interested in getting all the bugs worked out. And I appreciate the work thus far!
[Miscellaneous Android Development] mauronofrio:
Install always the latest version, i'm posting only working rom, there is a third version for today ready, but i'm not at home, so i need of an hour

The Italian Community bought me this phone, so i'm trying to make something for them.

Unfortunately i have also my university exams to do, so some weeks i need to study for university
[Miscellaneous Android Development] rolandvb:
Great that they bought you the M2 for developping purposes and i am glad they did, otherwize this forum would be really dead

We undestand you`re study will comes first and wishing you succes whith you`re examinations and papers you surely will have to write.

We are not in a hurry, better to whait and have something really good in the end .All good things come to those who whait :) thanks for all the work !!
[Miscellaneous Android Development] gecziefry:
Thank you so very much for the wonderful work you are doing, I know it's not easy. Thank you again.

As for the thread being dead, I assure you that it is not, I was watching your work for a while now and honestly can't wait for the camera fix so I can use it as a daily driver instead of the mirom. There are definitely many people, maybe hundreds that are also watching the progress you are making.

Thank you.
[Miscellaneous Android Development] estuardo4:
Camera works!!!

On the last ROM posted yesterday by Mauronofrio, the camera finally works! Not from the stock camera, but from Camera FV-5 and from apps like Evernote and Whatsapp.

We have a working phone now. Thank you thank you thank you Mauronofrio. Great work!
[Miscellaneous Android Development] mauronofrio:
Finally someone tests all feature, frontal camera doesn't work
[Miscellaneous Android Development] estuardo4:
Mauronofrio, front and rear cameras are working for me. On all apps mentioned on my post.

Let me check other apps.
[Miscellaneous Android Development] mauronofrio:
with the app you say i'm unable to use the front camera

EDIT: please send me the apk you are using
[Miscellaneous Android Development] gecziefry:
Downloading the rom right now, I'll check it too. Hope it all works :)
[Miscellaneous Android Development] mauronofrio:
I uploaded a new rom some minutes ago, i don't know if it works
[Miscellaneous Android Development] gecziefry:
so, I downloaded the -3 version and indeed the preinstaled camera app does not work but i installed the open camera app from the play store and it works, front and back...don't know if the dual system is working but i can take pictures

---------- Post added at 08:40 PM ---------- Previous post was at 08:31 PM ----------

Thank you so much for the work, I used to have a OnePlus device and I missed a lot the ability to just use the ROM I like, and LineageOS I definitely like. I will try to use it as a daily driver and I will inform you about the bugs I will encounter. I hope I won't :)
[Miscellaneous Android Development] gecziefry:
Thing I personally tested and work.

-placing calls

-whats app video call and everything else

-AudioFX sound enhancer

-rooting with Magisk

-add blocking with adaway

-fast charge

-gps works very well

-any camera app I tested works (retica, open camera)

-themes

-fingerprint scanner works better that in the official ROM, (for me in the official ROM it was very slow, also on MIUI)

-ambient light sensor works

-vibration motor works

If You guys want me to test something specific let me know.

Things that I noticed that don't work.

-notification light (it also didn't work on MIUI and I keept using it because the stock ROM is garbage)

-the mono camera.

Other than that I didn't notice any other bugs so far.
[Miscellaneous Android Development] mauronofrio:
Test if dt2w works
[Miscellaneous Android Development] gecziefry:
Nope, it doesn't work for me, and neither did it work in the MIUI ROM
[Miscellaneous Android Development] mauronofrio:
I finally fixed the lineage camera, in the next build it will works
[Miscellaneous Android Development] LuigeUA:
I would also like to vibrate on soft buttons
[Miscellaneous Android Development] gecziefry:
Thank you, can't wait to try that out
[Miscellaneous Android Development] mauronofrio:
I've seen now, video recording is not working, can someone check it with the actual version?
[Miscellaneous Android Development] gecziefry:
I'm not home now to download and test that but, I have a question, I don't know that much about how does it work, but wouldn't it be easier for you to just replace the camera app with for example open camera, I've tested Fotos and video and both work, front and back.
[Miscellaneous Android Development] arya.one:
i'm using your lineage OS 20180629, with MX camera apk.

video recording by front camera is working well without problem, but for rear camera, the video recording is only black and white (grayscale), i think only one of dual camera that can record, that's why the recording result in black and white
[Miscellaneous Android Development] reticuli:
Using --- net.sourceforge.opencamera_1.44.apk --- both front and rear cameras do work! Testing videorecording 1080p, working with latest rom. Test 4k 30fps also working but for me 1080p looks better, more smooth videos =) Some focushunting are present that is all. Just amazing work by mauronofrio!
[Miscellaneous Android Development] mauronofrio:
In the latest update all is working except dt2w, the problem is that android 6 doesn't have native double camera support, so when you switch camera you will switch 3 cameras, frontal, black and white camera and normal camera, the stock camera app has some problem with black and white camera and had some crashes, i reccomend to use opencamera: https://play.google.com/store/apps/details?id=net.sourceforge.opencamera&hl=it

For 1 week i will not work on lineage because i have some university exams and i need to study.

In this weeki hope you will make some tests and report here bugs, it is not necessary you tag or quote me, i have instantly notification enabled.

Hope this rom is complete for all. Have a good day.
[Miscellaneous Android Development] gecziefry:
Thank you very much for the wonderful work.

Do I have to do a clean install or can I install it over the ROM I already have installed, the -3 version?
[Miscellaneous Android Development] mauronofrio:
You can, but it's better if you make a clean install
[Miscellaneous Android Development] estuardo4:
All is working for me, except for these two bugs:

Rotating the screen. I have to lock the screen on portrait mode because autorotate rotates the screen 180º and is very unreliable.

Acquiring data when getting out of range from a Wifi connection. I have to put the phone on airplane mode several times, until my phone acquires mobile data.

Thank you Mauronofrio for your hard work
[Miscellaneous Android Development] mauronofrio:
For the screen rotation you have a problem with the persist.img, try to flash this: https://www.androidfilehost.com/?fid=11050483647474831429

To flash it go in fastboot and flash it with this command:

fastboot flash persist persist.img

I have the same problem with rotation and i solved in this method

EDIT:

I'm uploading a new version just now and all works also stock camera app. I've added OpenCamera.

The bugs now are:

Notification Led;

DT2W.
[Miscellaneous Android Development] estuardo4:
I flashed the file and now it's working. Thank you

But the stock camera is stuck with an error message, even if I can see that is working on the background. I have to close the app as there is no way to bypass the error message. Open camera is still working.
[Miscellaneous Android Development] mauronofrio:
Are you using the second build i made today?
[Miscellaneous Android Development] estuardo4:
Yes I used it, but I had to do a dirty flash for lack of time to reinstall everything. So my comment about default camera is incomplete.

EDIT: I've clean installed and it is working.
[Miscellaneous Android Development] ozkaya84:
Highwaystar from 4PDA ported Lineage 14.1 ( Android 7.1.2) for M2, maybe you wanna take a look on his work [MENTION=4712355]mauronofrio[/MENTION]. Thank you for your works.

https://4pda.ru/forum/index.php?showtopic=890855&st=2720#entry74718662
[Miscellaneous Android Development] mauronofrio:
I already know it, i'm waiting [MENTION=7737930]highwaystar_ru[/MENTION] from 1 month, he is the best
[Miscellaneous Android Development] geo_kot:
Thanks to all devs ! You are impressive guys! I just want to ask about the future of LOS roms, now we already have one on Marshmallow and one Nougat, may be soon on Oreo? Are you planning to work together to have latest Oreo rom or you gonna finish your roms to almost 100% working builds, so that users can choose what LOS rom they can have?
[Miscellaneous Android Development] kristokin:
I try it with the TWRP, the one recommended in the start page, but it does not enter, it gives error 7, however the lineage 13 of mauronofrio, does not give any problem.

It hurts, because this rom promises to be the desired level rise of the Nubian M2.

I do not understand why if it enters the mauronofrio and in the window 14 it gives ERROR 7. :(:(:(:(

Sorry, it was for the Lineage 14 page.
[Miscellaneous Android Development] ozkaya84:
Please try this twrp(3.2.1). Good Luck.

https://drive.google.com/file/d/1tRnN1XkulQqAjrRdMxjjRLZfgioiMxCv/view?usp=sharing
[Miscellaneous Android Development] sm00th4f3:
Been using the ROM for a day now. I really like it.

Torch quicksetting does not show up. But when editing it ,it is visible. Just after pressing "done" it vanishes without a trace.

I downloaded a third party app to use torch light so, it's fine.

Also, after a while now, I can't seem to install apps through the play store. Don't know why though.
[Miscellaneous Android Development] geo_kot:
Yes, I have the same issue.
[Miscellaneous Android Development] gecziefry:
So, aster using the ROM as a daily driver I can say that the ROM overall is quite stable and it doesn't drain the battery.

However there are still a few bugs that I noticed. Truth be told, I rather have them then going back to the original ROM.

-flashlight disappears from quick settings

-no haptick feedback for the buttons (vibration)

-notificaton led

Thank you and good luck with your exams.
[Miscellaneous Android Development] ozkaya84:
Really nice work. Decent battery life, so close to stock rom. I tried even 14.1 Lineage but 13 is better. Anyone faced video recording problem? Mine is not recording to storage. It shows recording but can not save to storage. Tried open camera also,, same.
[Miscellaneous Android Development] mauronofrio:
Unfortunately i'm helping [MENTION=7737930]highwaystar_ru[/MENTION] to make 14.1 full working, so for now i'm not working on 13
[Miscellaneous Android Development] ozkaya84:
Happy for that. Because 14.1 is better for us. Keep going.
[Miscellaneous Android Development] gecziefry:
Thank you, when the 14 ROM is at least as functional as the 13 one let us know; don't know about the other ones but I will gladly use it as a daily driver.