PLATFORM_VERSION := 4.2.2

位于/build/core/version_defaults.mk

  1. #
  2. # Copyright (C) 2008 The Android Open Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. #      http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. #
  17. # Handle various build version information.
  18. #
  19. # Guarantees that the following are defined:
  20. #     PLATFORM_VERSION
  21. #     PLATFORM_SDK_VERSION
  22. #     PLATFORM_VERSION_CODENAME
  23. #     DEFAULT_APP_TARGET_SDK
  24. #     BUILD_ID
  25. #     BUILD_NUMBER
  26. #
  27. # Look for an optional file containing overrides of the defaults,
  28. # but don't cry if we don't find it.  We could just use -include, but
  29. # the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set
  30. # if the file exists.
  31. #
  32. INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk)
  33. ifneq "" "$(INTERNAL_BUILD_ID_MAKEFILE)"
  34. include $(INTERNAL_BUILD_ID_MAKEFILE)
  35. endif
  36. ifeq "" "$(PLATFORM_VERSION)"
  37. # This is the canonical definition of the platform version,
  38. # which is the version that we reveal to the end user.
  39. # Update this value when the platform version changes (rather
  40. # than overriding it somewhere else).  Can be an arbitrary string.
  41. PLATFORM_VERSION := 4.2.2   # SDK Version
  42. endif
  43. ifeq "" "$(PLATFORM_SDK_VERSION)"
  44. # This is the canonical definition of the SDK version, which defines
  45. # the set of APIs and functionality available in the platform.  It
  46. # is a single integer that increases monotonically as updates to
  47. # the SDK are released.  It should only be incremented when the APIs for
  48. # the new release are frozen (so that developers don't write apps against
  49. # intermediate builds).  During development, this number remains at the
  50. # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds
  51. # the code-name of the new development work.
  52. PLATFORM_SDK_VERSION := 17   #API Level
  53. endif
  54. ifeq "" "$(PLATFORM_VERSION_CODENAME)"
  55. # This is the current development code-name, if the build is not a final
  56. # release build.  If this is a final release build, it is simply "REL".
  57. PLATFORM_VERSION_CODENAME := REL
  58. endif
  59. ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
  60. # This is the default minSdkVersion and targetSdkVersion to use for
  61. # all .apks created by the build system.  It can be overridden by explicitly
  62. # setting these in the .apk's AndroidManifest.xml.  It is either the code
  63. # name of the development build or, if this is a release build, the official
  64. # SDK version of this release.
  65. ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
  66. DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION)
  67. else
  68. DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME)
  69. endif
  70. endif
  71. ifeq "" "$(BUILD_ID)"
  72. # Used to signify special builds.  E.g., branches and/or releases,
  73. # like "M5-RC7".  Can be an arbitrary string, but must be a single
  74. # word and a valid file name.
  75. #
  76. # If there is no BUILD_ID set, make it obvious.
  77. BUILD_ID := UNKNOWN
  78. endif
  79. ifeq "" "$(BUILD_NUMBER)"
  80. # BUILD_NUMBER should be set to the source control value that
  81. # represents the current state of the source code.  E.g., a
  82. # perforce changelist number or a git hash.  Can be an arbitrary string
  83. # (to allow for source control that uses something other than numbers),
  84. # but must be a single word and a valid file name.
  85. #
  86. # If no BUILD_NUMBER is set, create a useful "I am an engineering build
  87. # from this date/time" value.  Make it start with a non-digit so that
  88. # anyone trying to parse it as an integer will probably get "0".
  89. BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S)
  90. endif
  91. root@idong:/home/hejian/rk3066-4.2/build/core#
  92. root@idong:/home/hejian/rk3066-4.2/build/core# cat version_defaults.mk
  93. #
  94. # Copyright (C) 2008 The Android Open Source Project
  95. #
  96. # Licensed under the Apache License, Version 2.0 (the "License");
  97. # you may not use this file except in compliance with the License.
  98. # You may obtain a copy of the License at
  99. #
  100. #      http://www.apache.org/licenses/LICENSE-2.0
  101. #
  102. # Unless required by applicable law or agreed to in writing, software
  103. # distributed under the License is distributed on an "AS IS" BASIS,
  104. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  105. # See the License for the specific language governing permissions and
  106. # limitations under the License.
  107. #
  108. #
  109. # Handle various build version information.
  110. #
  111. # Guarantees that the following are defined:
  112. #     PLATFORM_VERSION
  113. #     PLATFORM_SDK_VERSION
  114. #     PLATFORM_VERSION_CODENAME
  115. #     DEFAULT_APP_TARGET_SDK
  116. #     BUILD_ID
  117. #     BUILD_NUMBER
  118. #
  119. # Look for an optional file containing overrides of the defaults,
  120. # but don't cry if we don't find it.  We could just use -include, but
  121. # the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set
  122. # if the file exists.
  123. #
  124. INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk)
  125. ifneq "" "$(INTERNAL_BUILD_ID_MAKEFILE)"
  126. include $(INTERNAL_BUILD_ID_MAKEFILE)
  127. endif
  128. ifeq "" "$(PLATFORM_VERSION)"
  129. # This is the canonical definition of the platform version,
  130. # which is the version that we reveal to the end user.
  131. # Update this value when the platform version changes (rather
  132. # than overriding it somewhere else).  Can be an arbitrary string.
  133. PLATFORM_VERSION := 4.2.2
  134. endif
  135. ifeq "" "$(PLATFORM_SDK_VERSION)"
  136. # This is the canonical definition of the SDK version, which defines
  137. # the set of APIs and functionality available in the platform.  It
  138. # is a single integer that increases monotonically as updates to
  139. # the SDK are released.  It should only be incremented when the APIs for
  140. # the new release are frozen (so that developers don't write apps against
  141. # intermediate builds).  During development, this number remains at the
  142. # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds
  143. # the code-name of the new development work.
  144. PLATFORM_SDK_VERSION := 17
  145. endif
  146. ifeq "" "$(PLATFORM_VERSION_CODENAME)"
  147. # This is the current development code-name, if the build is not a final
  148. # release build.  If this is a final release build, it is simply "REL".
  149. PLATFORM_VERSION_CODENAME := REL
  150. endif
  151. ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
  152. # This is the default minSdkVersion and targetSdkVersion to use for
  153. # all .apks created by the build system.  It can be overridden by explicitly
  154. # setting these in the .apk's AndroidManifest.xml.  It is either the code
  155. # name of the development build or, if this is a release build, the official
  156. # SDK version of this release.
  157. ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
  158. DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION)
  159. else
  160. DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME)
  161. endif
  162. endif
  163. ifeq "" "$(BUILD_ID)"
  164. # Used to signify special builds.  E.g., branches and/or releases,
  165. # like "M5-RC7".  Can be an arbitrary string, but must be a single
  166. # word and a valid file name.
  167. #
  168. # If there is no BUILD_ID set, make it obvious.
  169. BUILD_ID := UNKNOWN
  170. endif
  171. ifeq "" "$(BUILD_NUMBER)"
  172. # BUILD_NUMBER should be set to the source control value that
  173. # represents the current state of the source code.  E.g., a
  174. # perforce changelist number or a git hash.  Can be an arbitrary string
  175. # (to allow for source control that uses something other than numbers),
  176. # but must be a single word and a valid file name.
  177. #
  178. # If no BUILD_NUMBER is set, create a useful "I am an engineering build
  179. # from this date/time" value.  Make it start with a non-digit so that
  180. # anyone trying to parse it as an integer will probably get "0".
  181. BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S)
  182. endif

如何查看Android SDK源码版本的更多相关文章

  1. 关于查看Android系统源码【Written By KillerLegend】

    可能你会想下载Android系统源码,但是我不知道你会看多少系统的源码,如果你对源码只是偶尔看一次的话,推荐你在线看Android的系统源码,下面提供几种查看android系统源码的方法. 1:打开这 ...

  2. 怎样将Android SDK源码 导入到Eclipse中?

    在Eclipse中导入android sdk源码 http://blog.csdn.net/hahahacff/article/details/8590649

  3. eclipse导入java和android sdk源码,帮助文档

    eclipse导入java和android sdk源码,帮助文档 http://blog.csdn.net/ashelyhss/article/details/37993261 JavaDoc集成到E ...

  4. Android 如何在Eclipse中查看Android API源码 及 support包源码

    当我们阅读android API开发文档时候,上面的每个类,以及类的各个方法都是已经写好的方法和控件,可是我们只是在搬来使用,不知道它的原理,它是如何被实现的.android系统是开源的,所以谷歌官方 ...

  5. 【转】Android 如何在Eclipse中查看Android API源码 及 support包源码

    原文网址:http://blog.csdn.net/vipzjyno1/article/details/22954775 当我们阅读android API开发文档时候,上面的每个类,以及类的各个方法都 ...

  6. 如何在Eclipse中查看Android API源码以及support包源码

    http://my.eoe.cn/futurexiong/archive/181.html 开发第三方Android应用的,大多数人应该还是Eclipse结合ADT来开发.那么大多数时候我们可能希望点 ...

  7. zbar android sdk源码编译

    zbar,解析条码和二维码的又一利器,zbar代码是用c语言编写的,如果想在Android下使用zbar类库,就需要使用NDK将zbar编译成.so加载使用,zbar编译好的Android SDK可以 ...

  8. Source Insight 基本使用(1)-使用Source Insight查看Android Framework 源码

    一.下载framework源码: google已经把framework源码托管在了gitHub上: https://github.com/android/platform_frameworks_bas ...

  9. Android:android sdk源码中怎么没有httpclient的源码了

    欢迎关注公众号,每天推送Android技术文章,二维码如下:(可扫描) 今天想使用这个API,怎么也找不到.废了好多时间... 查阅资料才知道如下解释: 在android 6.0(API 23)中,G ...

随机推荐

  1. ADO.NET 新特性之SqlBulkCopy(批量插入大量数据)

    转自:http://blog.csdn.net/huaer1011/article/details/2312361 在.Net1.1中无论是对于批量插入整个DataTable中的所有数据到数据库中,还 ...

  2. phpcms v9二次开发之数据模型类

    系统模型类:model.class.php数据模型类的位置:/phpcms/libs/classes phpcms v9二次开发中,我们要经常需要对模块的数据表进行查询.添加.修改和删除数据等操作,所 ...

  3. CSS样式鼠标点击与经过的效果一样

    a:link /* 未访问的链接 */ a:visited /* 已访问的链接 */ a:hover /* 当有鼠标悬停在链接上 */ a:active /* 被选择的链接 */ a,a:visite ...

  4. 利用FbinstTool+大白菜u盘工具,制作多系统启动U盘【转】

    一般制作多系统启动盘的教程都会要用到rub4dos+grubinst+ultraiso+msgdiyerl等等工具,一大串的工具列表让人望而生畏.其实大白菜里已经对这些工具做了非常好的封装,利用大白菜 ...

  5. 『安全工具』Nessus多功能扫描器

    0x 00 前言 写这篇博客,证明我还活着…… 0x 01 安装Nessus  直接官网  www.tenable.com/products/nessus/select-your-operating- ...

  6. 1像素HR技巧(兼容各浏览器)

    hr{color:#ccc;height:1px;border:0px;border-top:1px solid #ccc;margin:0px;padding:0px;overflow:hidden ...

  7. PYTHON文件多线程下载

    其实,在一般的文件编程中,这有两个概念要说明: 第一是,下载一个大文件,将这个大文件多为多线程. 第二是,下载N多小文件,将每个线程指定下载多个小文件. 现在实现的是多线程下载一个大文件. 今天完成了 ...

  8. 如何判断一个C++对象是否在堆栈上(通过VirtualQuery这个API来获取堆栈的起始地址,然后就可以得到答案了),附许多精彩评论

      昨天有人在QQ群里问到如何判断一个C++对象是否在堆栈上, 我在网上搜索了下, 搜到这个么一个CSDN的帖子http://topic.csdn.net/t/20060124/10/4532966. ...

  9. Microsoft Visual Studio 6.0 Enterprise Edition

    我们的老古董啊  啊啊啊 啊啊 <Microsoft Visual Studio 6.0 Enterprise Edition>(完整9CD,带中文MSDN&   <Micr ...

  10. .sdp文件格式介绍

    最近做RTSP流播放,需要了解.sdp这种会话描述的文件格式,当然,里面的具体语法有SDP解析器来分析.但是我需要大概了解一些字段的意思,它是文本描述的,采用key value的形式描述. https ...