How do custom rom makers make custom rom for different android version? - General Questions and Answers

I heard that custom ROM makers build ROMs on top of a stock ROM and modify it, but how does a custom ROM developer make a custom ROM for Android 6 on an android 4 device where only android 4 is available. At what level is there a difference between the Android versions? Is it at kernel level, Application level?
Suppose I wanted to make an Android 6 custom ROM for and android 4 device, what tools do I use?

sprotz said:
I heard that custom ROM makers build ROMs on top of a stock ROM and modify it, but how does a custom ROM developer make a custom ROM for Android 6 on an android 4 device where only android 4 is available. At what level is there a difference between the Android versions? Is it at kernel level, Application level?
Suppose I wanted to make an Android 6 custom ROM for and android 4 device, what tools do I use?
Click to expand...
Click to collapse
Devs that build ROM use directly the Android source code, that every OEM use to build their own OSfor a specific phone.
They can build at any Android version because they don't use the original ROM from the phone, they use AOSP, then modify AOSP to add those sweet features.
The only thing that they use from the phone is its kernel, and OEM post the Kernel's source code on GitHub or another platform to let developers (like ROM devs) work with the phone more deeply.
So to answer your question, Android version are different because features are added and the code modified, every custom ROM for every phone is based on the same Android source code (AOSP). The difference between the phones is at the Kernel level.

Related

Can I use the stock kernel to build the updated higher android versions?

Can I use the stock kernel (Froyo) and the binary drivers that comes with the stock and use the aosp source code and build higher version of the platform (gingerbread, icecream ) as and when they are available?
Why do the kernel needs a change when upgrading from one version of android to another, the hardware doesn't change anyway.
tutysara said:
Can I use the stock kernel (Froyo) and the binary drivers that comes with the stock and use the aosp source code and build higher version of the platform (gingerbread, icecream ) as and when they are available?
Why do the kernel needs a change when upgrading from one version of android to another, the hardware doesn't change anyway.
Click to expand...
Click to collapse
OKAY LET´S GO MAN
you can´t port a kernel from froyo to ginger for example because the kernels are created with diferents codes...
if you want to create a custom kernel from a stock kernel you needs the "privative drivers" and the source code for to do this... gingerbread has another source code than ice cream (still closed source)
the same thing happens with AOSP (cyanogenmod for example) but they uses a pure LINUX code for to create a custom kernel..
AOSP also needs the source code of the android version for that are creating the kernel.
and the kernel need to be changued between android versions because are not compiled of equal way.
ext4, task admin... and H/W don´t works equal between android versions

[Q] Building stable rom with kernel sources

Hi, may I ask somebody experienced with ROM building, if it is possible to build fully functional and stable build from AOSP sources if i have kernel sources for my device from vendor?
Nigfire said:
Hi, may I ask somebody experienced with ROM building, if it is possible to build fully functional and stable build from AOSP sources if i have kernel sources for my device from vendor?
Click to expand...
Click to collapse
Hi, yes. I've compiled lollipop nexus4 from aosp in ubuntu 14.04.1 x64 in vmware.
I've downloaded the source, included the proprietary files, and compiled android, compiled with make and make otapackage to generate the zip.
After that i've rooted the device, installed twrp.
Finally, i've downloaded the source kernel and compiled to generate the .img. I've flashed this to the device with fastboot, and
yeeeeeeh perfect!!!
obviously, after this, i've downloaded the gapps and installed.
But, which version would you compile? And which device? All the sources are available and open source?
i wana make AOSP build for Huawei Ascend G6, I have only kernel sources from vendor... I suppose that kernel will work with any version of android or not?
Nigfire said:
i wana make AOSP build for Huawei Ascend G6, I have only kernel sources from vendor... I suppose that kernel will work with any version of android or not?
Click to expand...
Click to collapse
Ok, you have the sources, very good.
mmm, i'm not sure that every kernel + android combinations work perfectly together.
For example, on my nexus4 i've kernel 3.4 and lollipop. Now, if android lollipop requires some modules/functionalities/"other magic stuff" to work properly from the kernel, and you install kernel 2.x.x without this feature, probably you'll have problems.
I mean, i'm not sure, but is only a logic hypothesis.
You can solve this problem using the latest official version of android from Huawei and your compiled kernel from Huawei sources. If this works, try to update android to another version with a custom rom. It works? Perfect!, It not works? Damn, restore the backup and use another older android version
To build android/kernel you must transform into a researcher :laugh:

[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.

Custom rom Build for update device

Hello i am on XDA today for ask you how i can update my device to more recent android like android 9 or 10 because mine ( umidigi one pro ) is on android 8.1 oreo and no update is avaible.
So i want like android 9 to get the last features, gesture, ui and security. But my device don't have any custom rom which support it.
So i tell your help to know how i can build my own custom rom with a base like lineage os or havoc os or other, build an unofficial rom. to get exactly the same spec than i add in stock rom with no bug and other
So please tell me how i can do or who i can tell for do this.
This tread can help some people like me
You might want to start by building an AOSP ROM for your device. Here's some info to get you started.

Categories

Resources