How could I be able to build/port bugless Android 7 (Nougat) for MT65xx based devices (Specifically MT6582 device "Mine is Infinix Hot X507")? I am looking for building/porting a bugless Lineage OS/Resurrection Remix/AOSP/... latest release ROMs for my MT6582 device. I've no experience in building/porting Android ROMs. My question could be what are the topics/guides I need to learn from in order to have the skills of the person who is able to build/port a bugless Nougat version for my device?
It doesn't matter the topics/guides are for porting/building (also is it easy/hard), however the more convenient approach for me is the one by which I could have a bugless fully device-compatible ROM at the end.
I have good programming knowledge base and dealing with command line software. Also I will start learning Linux Kernel in few weeks after my exams.
I need your valuable help and suggestions. Thanks in advance.
Research/Outcomes till now:
■ I have read a little about porting. I understood that first I need a to-be-Port-ed ROM of another phone having the same CPU. I have found one , but unfortunately it has some bugs. The publisher says that this version is unstable and needs someone to build it for MT6582. I'm looking for being able to have the skills to be that person .