[Q] How to build any android version source code and flash on any device? - General Questions and Answers

Firstly,apologies if this is not the right section.
We all know that android source code is available.So my question is how can I build the source code and install on any device?For example if I have an old device for which updates are not available.Can we just flash it with any android stock rom?Not talking about custom rom.
Can we take the source from github and just build and flash on our device?Because android is hardware independent? Like we can install ubuntu on any system?

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 Android 4.4.x custom upgrade

Hi experts,
I'm new to building Android ROM. So please correct me if anything doesn't make sense
I have a device that's currently running Android 4.2.2 (Amlogic 8726-mx). I have all necessary source code including uboot, kernel, 4.2.2 source.
I have two questions
Can I use the existing kernel, uboot source code and merge with the Android 4.4.x source code from google?
If yes, is it just simply replacing the "system" folder and then run make command to build? If not, can anyone point me to the right direction?
Thank you all in advanced

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

How do I use samsung opensource kernel for the AOSP?

I got the source code form opensource.samsung.com and I compiled the kernel successfully.
I want to know that how do I use the kernel to build AOSP for my phone?
And the samsung kernel is based on Android 6.0.1, can I port the latest Android version to my phone?

Develop custom rom from scratch (non-developing devices)

Can anyone help me find my device source tree.... I have "10.or G" i couldn't find it... I am confused now .... What should i do?
Kernel sourse for this device has been released for nougat.... How can i use it to build roms based on oreo... Or even recovery?
I am a noob in developing roms .... I have some knowledge of flashing and using them... Now i want to develop my own since this device has no developers . Also ,no information on github(device source tree )
Device info:
SoC: Snapdragon 626
Sources available : android nougat kernel source code
Current android os : android 8.1
Treble support : no
Any help will be appreciated

Categories

Resources