How to build/port Bugless Android Nougat for MT65xx (MT6582) devices? - General Questions and Answers

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 here, 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 .

omareg94 said:
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:
Click to expand...
Click to collapse
First of all, chances are high you won't get a fully bugless one at the very first boot.there will be device specific files that causes minor bugs which you can only find and fix after the ROM boots successfully. This should be your primary objective,there are lot of guides for porting mediatek devices you can follow guides for marshmallow ROMs as its similar.
But i must it will be easier trying a marshmallow or lollipop roms first if youre new,anyway I wish you Good luck:good:
- Now to the ROM (trust me I know all about it)
It is based on 3.10.103 kernel so first you have to build one for your device. basic things like data aren't working in this beta release.
The publisher says he needs someone to build it for mt6582? Well,**** .
Building ROMs/kernels aren't easy but I'll tell you what is though ,stealing someone's days of work, put it in your blog without even giving some credits,this youtuber may not know about it so...I'm not gonna do anything about it
Will this build be fixed? It was ditched because of the above mentioned problem but I/other devs may release another stable build for our device(lenovo a5000) but it may or may not be available to the public
Edit :it's out now

Related

A Cheap Device to learn android ROM building[India]

Hello Guys.
I want to Buy a Cheap Device(Which have available sources) to learn android ROM Building.
My Budget is Very Tight:crying: Rs.8000
Please Suggest me a Good Device.
Thanks in Advance.:good:
Rumorbox33 said:
Hello Guys.
I want to Buy a Cheap Device(Which have available sources) to learn android ROM Building.
My Budget is Very Tight:crying: Rs.8000
Please Suggest me a Good Device.
Click to expand...
Click to collapse
Lol, You call Rs. 8000 budget a tight budget??
That's more than enough..
Nowadays, most devices release their kernel source including device trees (Though not proper)..
As far as I can remember, I'll suggest you to buy Yu Yunique, which is quite new as of now and has very less custom ROMs as of now and has sources released..
Or you can choose any other device as you wish.
All you should do is search hard if the source is released for that phone. (All u need to do is Google to find out)
And, there are many tutorials in XDA which will easily help you learn about ROM development.
Note:
ROM development needs some/little Android knowledge depending upon what you're going to do.
To build CM from source, you need a hell lot of knowledge.
You also need a hell lot of time and patience.
To build a custom ROM based on CM, you more or less just need to follow the instructions given in that custom ROM's website.
Also you'll need a fast internet to download sources which will be like 13-16GB (this is for each ROM base)
But, porting a ROM can be quite easy compared to building from source..
So, if you're kind of new, better learn something about Android and how it works, before you buy a phone simply for development purpose, to avoid repenting in the future that you've wasted your money..
GokulNC said:
Lol, You call Rs. 8000 budget a tight budget??
That's more than enough..
Nowadays, most devices release their source including trees (Though not proper)..
As far as I can remember, I'll suggest you to buy Yu Yunique, which is quite new as of now and has very less custom ROMs as of now and has sources released..
Or you can choose any other device as you wish.
All you should do is search hard if the source is released for that phone. (All u need to do is Google to find out)
And, there are many tutorials in XDA which will easily help you learn about ROM development.
Note:
ROM development needs some/little Android knowledge depending upon what you're going to do.
To build CM from source, you need a hell lot of knowledge.
You also need a hell lot of time and patience.
To build a custom ROM based on CM, you more or less just need to follow the instructions given in that custom ROM's website.
Also you'll need a fast internet to download sources which will be like 13-16GB (this is for each ROM base)
But, porting a ROM can be quite easy compared to building from source..
So, if you're kind of new, better learn something about Android and how it works, before you buy a phone simply for development purpose, to avoid repenting in the future that you've wasted your money..
Click to expand...
Click to collapse
I have knowledge about android That's why i am asking:good:
So,What about Redmi 1S ?
Should i buy That ?
Rumorbox33 said:
I have knowledge about android That's why i am asking:good:
So,What about Redmi 1S ?
Should i buy That ?
Click to expand...
Click to collapse
Yes, it's OK.
Kernel sources are released: http://en.miui.com/thread-73469-1-1.html

Some questions regarding Android ROM Development and Kernel Development

Hi, I'm completely new in Android ROM development and want to get into it. I have a Moto G Turbo and a old Moto E 1st gen.
So I had some question regarding Android ROM development. I may sound completely noob which I am, but still if you help me by answering my question or at least referring to some links then I'll be helpful. And please only answer if you are confident about what you are saying.
1> I understand that Android is open source, so basically we can download and build it. What does it take to make that boot on a particular device?
2> Android is based on linux kernel. So we need a kernel source too. I found this, https://github.com/MotorolaMobilityLLC/kernel-msm, is this the kernel source for moto devices? I am confused because I can find only one repository although it must different repositories for different devices.
3> If we have a kernel source for the device, can we build any ROM like AOSP or AOSP-CAF and boot it in our device? If not why?
3> I have a good knowledge of C although I am still learning. How do I start developing or porting ROM? I am specially interested in PURE AOSP.
I don’t know but you might find a lot of tutorials in non-device-specific threads. And I think there’s a guide on how to build lineage 13 for osprey
This thread could be helpful:
https://forum.xda-developers.com/showthread.php?t=2073370&page=1

Porting B2G to moto g3

Hi Folks,
I'm trying to port B2G to my moto g3. I was referring to this doc (https://developer.mozilla.org/en-US/docs/Archive/B2G_OS/Porting_B2G_OS/basics). However some of the things mentioned in this doc are not clear to me. Could you please help me with the below issue.
I'd like to build the AndroidKernel from source. So where should I include the below lines? Is it in this file?
https://github.com/LineageOS/android_device_motorola_osprey/blob/cm-14.1/rootdir/etc/init.target.rc
HTML:
on early-init
start ueventd
import /init.b2g.rc
Also if I understood correctly. building the kernel from source doesn't require to unpack , edit the init.rc file and repack the kernel from the device. Could you please confirm this?
Thanks,
Arun
Hi Arun,
I totally understand your frustration with this. You'd like to contribute to the Servonk project but first you need to port B2G to your phone or buy a new phone. Since the only other supported phones are the Z3 compact and Nexus 5, both of which are still relatively expensive secondhand, you want to use your Moto G3 which means first porting B2G to it.
So, I think there are two options you have:
1. Port direct from the AOSP code
2. Port from the CM12 code.
As Gerard said in telegram, porting from CM to B2G was never finalised so may actually require more work. However there may actually be more people here who can help you since people seem more familiar with CM than AOSP (in general, I know some people are very knowledgeable in both).
I see you've posted in the AOSP 7.1.1 kernel thread. Unfortunately, for the Servonk project you currently need a Lollipop based build, so 5.x AOSP kernel or CM12.x.
It might be worth asking a mod to move this thread into one of the development sub-forums.
As you know, this is the limit of my knowledge, but I really hope you find some success, if would be great if you could contribute to the Servonk project.
Your last option is to use the desktop build of Servonk, based on Glutin instead of Gonk, but I understand that you really want to get Servonk working on your phone.
Best of luck

Best tablet for custom android development?

Hi,
I‘m looking for a tablet as a development platform for gettting into custom android firmware development. What device (current or discontinued) is the most painless to compile a custom rom for with a current android regarding unlocking and driver support in 2021?
I‘m an electronics engineer and have worked on firmware for arm microcontrollers and did some kernel development for embedded linux (yocto) before.
I have the idea of creating an open source custom android for elderly people and small children that is pretty much locked down and has a simplified interface without cryptic messages. All settings, app installation and user support should be done from an app on another device. I think all the building blocks for this exists, I just want to put them together in one package. If you have suggestions for an existing base rom to build this on I‘d be happy to hear about it.
Cheers,
Rick

Question Is there an easy way to make a custom rom?

I know how to root and install legit custom OS as long as it works on my device. Is there a easier way to make a custom rom through Windows 11?
https://forum.xda-developers.com/t/all-kinds-of-errors-when-flashing-a-rom.4545717/
If you can't figure out these simple errors, how are you planning on building custom ROMs and debugging?
*Just wondering*
I was wondering the same. Building a custom ROM is not an easy task. You should really know the ins and outs of Android to even attempt it. Not knocking you, there are around 10 custom ROMs in just this forum. What would you add or build that isn't already available?
Not that you can't and cannot learn how but as stated above. Building a custom ROM can be quite the undertaking and you have to ask... What can you provide and offer that's not already available?
Firstly you need a decent PC for your build environment. One with plenty of RAM and storage. Ability to run or dual boot Linux and know commands. Can be built in windows environment though.
Secondly you need a device that you're willing to troubleshoot, bootloop, soft brick and or hard brick. Plus know how to recover from the above (hard brick excluded)
If you're willing, it's definitely fun, challenging and can be rewarding. I use to build my own personal ROMs a couple of years ago.
You can look at ROM development from beginning to end here and android kitchen here
Best of luck!!
Building Android | Android Open Source Project
source.android.com
Downloading the Source | Android Open Source Project
source.android.com

Categories

Resources