[Q] Building first ROM from AOSP non Nexus, a couple of questions - Android General

Hi all,
I want to build my first rom. I'm a software developer (Java and Web), but my Linux knowledge is somewhat intermediate.
I have a Moto G4 Plus laying around. Here's what I have done so far:
1. Downloaded the AOSP source from Google for android-7.0.0_r15 (Nougat)
2. Found the Kernel Source for the Moto G4 Plus (Nougat)
I'm stuck at adding the device's kernel source to the AOSP source. How do I combine the two?
Here's the link for the kernel source: https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-NPJS25.93-14-10
I've tried looking this up online but the results are very limited.
As far as I understand this kernel source provides everything I need to make the ROM compatible with my device, right?
Could someone point me to the right direction?
Much appreciated.

Related

[Q] Are Cyanogen devices tree compatible with AOSP ?

Hi all,
I've a question for you guys.
I've a SG3 (i9300), I'd like to know if using the cyanogen device tree for my device (located here) is possible to build AOSP source code.
if yes, then it looks like that would be possible to compile Lollipop AOSP for my device.. am I right ?
Thank you very much.
Cyanogen IS AOSP... Lol. Its AOSP with added features. If that's not an Android 5.0 lollipop kernel source, then it won't boot out of the box. Your best bet would be to get some Android 4.4 kernel source and do ramdisk edits and what not needed to get an Android 5.0 ROM booting. Alternatively, if your device is CM supported, I know they were talking about releasing CM12 soon, you could just hold out to see if your device is supported. Outside of CM, many custom ROMs (AOKP, Pacman, etc.) Take it upon themselves to release ROMs as well. Example: PACman had a 4.4 custom ROM out and in circulation, even before cyanogenmod, so u never know!
mingolianbeef said:
Cyanogen IS AOSP... Lol. Its AOSP with added features. If that's not an Android 5.0 lollipop kernel source, then it won't boot out of the box. Your best bet would be to get some Android 4.4 kernel source and do ramdisk edits and what not needed to get an Android 5.0 ROM booting. Alternatively, if your device is CM supported, I know they were talking about releasing CM12 soon, you could just hold out to see if your device is supported. Outside of CM, many custom ROMs (AOKP, Pacman, etc.) Take it upon themselves to release ROMs as well. Example: PACman had a 4.4 custom ROM out and in circulation, even before cyanogenmod, so u never know!
Click to expand...
Click to collapse
Hello, thanks for your answer.
I'd like to know this only for learning purpose, I'm not going to compile the AOSP
What I don't understand, is why adding the device tree to the lollipop AOSP is not sufficient to boot out of the box, can you please explain this in details ? Many thanks.

[aosp project][custom rom developement]

Hi guys!I want to become an android developer and I know about the AOSP project,but I have not found based of android versions.I want worker on ICS ROM for galaxy pocket(GT-S5300)or cyanogenmod 9,but on a "pure"ROM,without any modification,like nexus android version,for worked on it and optimize for any devices.
1)How I can optimized an android version like Nexus devices for a specific device?
2)Where I can download the necessary for a ROM or a ROM to be optimized?
Thanks
Simply start by downloading cori's source and aosp android of your choice, then edit & merge things from source to aosp then compile.

[Completed] Creating a kernel source for Karbonn Titanium S5 Plus (MT6582)

I, on behalf of the owners of the Karbonn Titanium S5 Plus device, based on the Mediatek MT6582 chipset, need some help in building a kernel source (not a kernel from source) for this device. I have a few fully working custom ROMs, a Github Account, some forked repositories of other devices having the same chipset but minorly-different hardware, and some time. What do I have to do to get to building a kernel source for this device?
It is a dual-sim device, based on the Mediatek MT6582 SoC, having a prebuilt kernel version 3.4.5, with no kernel sources even for its clone, running Android Jelly Bean 4.2.2 . @superdragonpt had created some new kernels for some devices(eg. the Wiko Darkmoon, MT6582, he created a new kernel source and a new kernel) having no previous kernel sources, how can I do the same for my device?
The Android One devices (Indian) are based on the same chipset, and have the same features. But, the difference is that they have a smaller 5MP rear camera and a locked bootloader, while ours has a 8MP rear camera and an unlocked bootloader. Can their sources be used for my device?
Also, after creating a Kernel source, how can I create an AOSP source for this device? Please help me out with this.
Hi there,
All things about your device is in this thread:
[ROMs and Recoveries] Karbonn Titanium S5 Plus/ S5 + - All Things And Dev.
Take a close look there and see if you find an answer there.
Good luck
I know, I started that thread.
It contains many Roms for my device, but there are no updates for them because it does not have a kernel source. There are no new kernels for the device because a kernel source was not released by the company. So, I asked it here.
I forked the kernel source from another device having the same soc, but I wanted to know how to create one specifically for my device.
One more thing. How do you build a kernel from a kernel source? Please help me out. Thanks in advance.
You can learn more about kernel development here:
[GUIDE] Build Your Own Android Kernel{Easiest and Fastest Way] [Using The NDK]
[TUTORIAL][VIDEO]Build your own Android kernel
I suggest reading a couple of the relevant kernel tutorials found here: http://forum.xda-developers.com/chef-central/android
Good luck
Thread closed

Custom ROM

Greetings,
I have several questions about custom ROMs like lineageOS etc.
I have an old and cheap Huawei Y540 and it only runs Android 4.4
So i thought maybe i can install a custom ROM instead of buying a new phone.
1. Why does a custom rom not run on all devices? I thought they are based on linux which handles the hardware <-> software requests?
2. What happens when i install LineageOS or Resurrection Remix on my device? (Note: my device is not supported)
3. I found guides like the one you can find in google when you look for "build lineageos rom for any device" which is named "How to Build Lineageos rom for any android device Easily ! {Full guide}" (Sorry i'm not allowed to post links) to build the lineageOs for my device. Do you know if any/many bugs will occure if i try that for my device?
Regards, Vincent

Building android from source

Dear all,
I was wondering, if I build Android from the AOSP source (and build in all the kernels etc. so it works on my LG G4), will all the security patches be applied by Google, or will I have to do it manually?
Thanks for your help (I'm new to building custom roms)

Categories

Resources