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

Android是如何规避GPL传染性的

从下到上介绍上图

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. android 内核编译成功
  3. 前阿里技术总监手打:452页Android Framework 精编内核解析
  4. Google计划开发开源WebKit内核Android浏览器
  5. 【android内核分析-启动】Android 启动过程详解

随机推荐

  1. Android编译系统详解(一)
  2. Android中获取正在运行的应用程序-----Ac
  3. Android(安卓)分析ANR和死锁
  4. Eclipse 开发 Android, Hello, DatePicke
  5. android 获取和设置屏幕亮度
  6. Android(安卓)studio gradle 多渠道打包
  7. Android(安卓):我的奇怪BUG:WindowManager$
  8. C# and android
  9. android lowmem killer 触发条件
  10. Android(安卓)开发环境安装失败问题总结