KVM support in custom kernels possible now that OxygenOS 13 is released? - OnePlus 8T Questions & Answers

I'm talking about Kernel Virtual Machine. I couldn't find the supported files in my OOS13 stock ROM after rooting, but is it possible to add support for KVM in a custom kernel for this hardware? What are the potential obstacles kernel developers would have from realizing this goal?

Related

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

Oreo, Treble, AOSP and Lineage thoughts

We know that stock Oreo for Mate 9 has treble enabled.
I have been reading about treble and it seems that it focuses on standardizing vendor/odm partitions. The same vendor partition could be used by different Android flavors, including pure AOSP or Lineage.
Moreover, in treble devices the kernel must implement loadable modules. The same kernel will be shared among devices with the same SoC. Software for particularities like storage devices or camera will be loaded from vendor/odm partitions.
I'm not an expert, but shouldn't this mean that once a device with HiSilicon Kirin 960 has a functional AOSP- based ROM a port to Mate 9 should be easy to develop? Even it is possible that ROMs from other devices directly work...
What do you think?
I have no technical knowledge on this stuff, but from what I've read you're right. And I really hope this will be true !
Treble might be the reason I stick with the Mate 9 instead of moving to the Pixel 2 XL.
"...because of the way the lower layer of Android was modularized, all Treble devices in the market will be able to boot a generic stock, AOSP Android build."
https://www.xda-developers.com/project-treble-custom-rom-development/
At very least it will make updates easier
tusko5 said:
We know that stock Oreo for Mate 9 has treble enabled.
I have been reading about treble and it seems that it focuses on standardizing vendor/odm partitions. The same vendor partition could be used by different Android flavors, including pure AOSP or Lineage.
Moreover, in treble devices the kernel must implement loadable modules. The same kernel will be shared among devices with the same SoC. Software for particularities like storage devices or camera will be loaded from vendor/odm partitions.
I'm not an expert, but shouldn't this mean that once a device with HiSilicon Kirin 960 has a functional AOSP- based ROM a port to Mate 9 should be easy to develop? Even it is possible that ROMs from other devices directly work...
What do you think?
Click to expand...
Click to collapse
I would think so, with treble enabled it would at least make major updates easier on the part of the manufacturer, if that is the case, compiling a "generic" version of the asop code easier to implement, especially when it comes to major version upgrades such as to let's say android 9, I'll have to look into it.

How do custom rom makers make custom rom for different android version?

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.

Kernel Management

Hello I noticed some OP6 devices have different kernels at stock, what kernel should I flash for LOS 18.1? Most of these custom kernels here seem to be strictly for android 10..
Thanks

Custom Kernel for J701f

New to this whole world of root and android manipulation and such.currently looking for a custom kernel of j701f (for performance tweaks and if possible dm-verity disable)
All the previous threads such as Oxygen Kernel are very much old regarding the model and software had some major updates.
So asking here for any good recc regarding custom kernels!

Categories

Resources