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. 数据库触发器new old

    数据库触发器new old: "NEW . column_name"或者"OLD . column_name".这样在技术上处理(NEW | OLD . col ...

  2. MySQL递归查询所有子节点,树形结构查询

    --表结构 CREATE TABLE `address` ( `id` int(11) NOT NULL AUTO_INCREMENT, `code_value` varchar(32) DEFAUL ...

  3. YesFinder - 网页文件管理系统 V2.0

    2.0版增加了模态框并重写了右键菜单插件.界面改为全中文.使用方式更加灵活. 同时,文件及目录改名更方便,直接双击名称就可改名. 这是DEMO的效果图. 1.功能上的主要改进是可以双击改文件/目录名称 ...

  4. 使用C#版本GDAL读取复数图像

    GDAL的C#版本虽然在很多算法接口没有导出,但是在读写数据中的接口基本上都是完全导出了.使用ReadRaster和WriteRaster方法来进行读写,同时对这两个方法进行了重载,对于常用的数据类型 ...

  5. Pyhton 操作MySQL数据库

         MySQL数据库的接口程序下载地址:https://sourceforge.net/projects/mysql-python/ 操作数据库的大致步骤如下: 1:首先先创建一个数据库的连接对 ...

  6. Python3 如何优雅地使用正则表达式(详解五)

    非捕获组命名组 精心设计的正则表达式可能会划分很多组,这些组不仅可以匹配相关的子串,还能够对正则表达式本身进行分组和结构化.在复杂的正则表达式中,由于有太多的组,因此通过组的序号来跟踪和使用会变得困难 ...

  7. 浅析Android中的消息机制

    在分析Android消息机制之前,我们先来看一段代码: public class MainActivity extends Activity implements View.OnClickListen ...

  8. html标签引入外部html

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  9. P0口上拉电阻选择

    如果是驱动led,那么用1K左右的就行了.如果希望亮度大一些,电阻可减小,最小不要小于200欧姆,否则电流太大:如果希望亮度小一些,电阻可增大,增加到多少呢,主要看亮度情况,以亮度合适为准,一般来说超 ...

  10. python手记(38)

    runfile(r'K:\testpro\testopencv.py', wdir=r'K:\testpro') http://blog.csdn.net/myhaspl myhaspl@qq.com ...