一、首先得了解android体系结构

从下到上介绍上图

Linux Kernel: 完全开源,GPLv2协议

Libraryies: 含少量开源库

Android Runtime: android 优化的JAVA虚拟机,更适合嵌入式系统。

Application Framework和Application都是JAVA程序。

二、android如何规避GPLv2的传染性


  • 首先,最关键点是Linus Torvalds在Linux内核版权最前的一段话,保证了Linux内核GPLv2不传染


Linux内核的版权是GPLv2,但是Linus Torvalds在Linux内核的版权文件COPYING中最前面增加了下面一段话,保证了Linux内核的商业用途不被GPLv2传染。



NOTE! This copyright does *not* cover user programs that use kernel
services by normal system calls - this is merely considered normal use
of the kernel, and does *not* fall under the heading of "derived work".
Also note that the GPL below is copyrighted by the Free Software
Foundation, but the instance of code that it refers to (the Linux
kernel) is copyrighted by me and others who actually wrote it.


Also note that the only valid version of the GPL as far as the kernel
is concerned is _this_ particular version of the license (ie v2, not
v2.2 or v3.x or whatever), unless explicitly otherwise stated.


Linus Torvalds


----------------------------------------


GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

注意:这个版权不覆盖通过正常系统调用来使用Linux内核服务的用户程序。

有了这一点Linux内核的GPLv2不会传染内核之上。

以上版权文件可以到Linux Kernel的网站上下载:https://www.kernel.org/


  • 其次,android把GNU/Linux中的系统库glibc换为libc了。


一般的GNU/Linux上图中的libc位置是glibc。

glibc是GNU的,属于GPL授权,有传染性。

libc是google 改写优化的Free BSD Bionic库,属于BSD协议。可以选择性开源,也不具传染性。

通过以上两点,android很好的规避了GNU/Linux GPL协议的传染性。



更多相关文章

  1. Android(安卓)内核解剖 - AMS(Activity Manager Service)
  2. 在Ubuntu上下载编译安装Android最新内核源代码
  3. Android(安卓)开机启动流程分析
  4. Google Android操作系统内核编译图文教程
  5. Rockie's Android(安卓)Porting Guide(2)——Add USB WIFI to your
  6. 为usb网卡设置ip地址之一
  7. android 内核编译成功
  8. Android(安卓)使用com.j256.ormlite
  9. 为usb网卡设置ip地址之一

随机推荐

  1. mac mkdir read-only filesystem
  2. 解决支持库版本兼容问题:all com.android.
  3. 浅学设计模式之观察者模式及在android中
  4. UIRecorder录制android APP自动化脚本
  5. Android(安卓)项目中常用的页面切换Table
  6. Android(安卓)中看不见的外部存储路径
  7. android中自定义控件之TitleBar实现
  8. Android(安卓)逆向常用命令
  9. Android(安卓)Studio配置CMake开发NDK
  10. Android(安卓)Studio 报错Emulator: PANI