Samsung Open Source for Android, its usage?

拈花ヽ惹草 提交于 2019-12-13 01:54:02

问题


I downloaded android device open source from Samsung OSRC.

It was composed with Platform.tar.gz and Kernel.tar.gz

It seems to do with building AOSP, found mk files.

I'm curious whether it can be used(directly or indirectly) to build newer android version for device and whether I have to build new kernel based on this files.

Thank you.


回答1:


If you want to build for a newer Android version, you do not need to build another kernel. Just use the kernel provided by Samsung for your device (or the prebuilt kernel from your phone).

When porting a device to a newer Android version you need to adjust the init configuration (init.rc files from your product configuration located in device/<vendor>/<your_device>), but not the kernel specific parts of your init.rc files.

You also need to add the hardware specific vendor binaries to your resulting flash image. Therefore you can extract these libraries from your device. Most of them are located in /system/vendor/lib, but there could be also some libraries in /system/lib and all subdirectories.

It is also possible that some vendor binaries does not work within another software stack. Possible reasons are incompatible HAL interfaces and incompatible libraries. The solution for these cases can be very different and should be evaluated individually.

If you are facing such issues you can have a look at the CyanogenMod sources for a hint. There you can find lots of ports. Best place to look is the product configuration of the particular device. You can also look into another of my answers regarding this topic.



来源:https://stackoverflow.com/questions/35237325/samsung-open-source-for-android-its-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!