building android 4.1 from source targetting non-nexus device (galaxy s3)

♀尐吖头ヾ 提交于 2019-12-11 06:15:43

问题


I am interested in building Android for Source for a Galaxy S3 (but just knowing how to do it in general will be quite helpful)

I know how to do it for all the nexus devices in general, but I was wondering how to do it for some of the other phones. I know that it is possible because CyanogenMod and other modders do it. Usually when they announce them they include the source for the kernel. How do you put the pieces together? Getting the android source code and the custom kernel together in something that can be flashed.


回答1:


Generally it is not trivial. You need some binary files for hardware support (camera, WiFi, NFC, etc) and you need to figure out which those are and how to pull them from the device. The kernel is GPL licensed, so the the manufacturer will release their version/patches at some point, but you might have to wait. Then you have to create device build files to put all those together in an image for the particular device. Your best bet is to get CyanogenMod source and see how it is done in practice.



来源:https://stackoverflow.com/questions/12848218/building-android-4-1-from-source-targetting-non-nexus-device-galaxy-s3

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