如何檢視Android SDK原始碼版本
PLATFORM_VERSION := 4.2.2
位於/build/core/version_defaults.mk
# # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # Handle various build version information. # # Guarantees that the following are defined: # PLATFORM_VERSION # PLATFORM_SDK_VERSION # PLATFORM_VERSION_CODENAME # DEFAULT_APP_TARGET_SDK # BUILD_ID # BUILD_NUMBER # # Look for an optional file containing overrides of the defaults, # but don't cry if we don't find it. We could just use -include, but # the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set # if the file exists. # INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk) ifneq "" "$(INTERNAL_BUILD_ID_MAKEFILE)" include $(INTERNAL_BUILD_ID_MAKEFILE) endif ifeq "" "$(PLATFORM_VERSION)" # This is the canonical definition of the platform version, # which is the version that we reveal to the end user. # Update this value when the platform version changes (rather # than overriding it somewhere else). Can be an arbitrary string. PLATFORM_VERSION := 4.2.2 # SDK Version endif ifeq "" "$(PLATFORM_SDK_VERSION)" # This is the canonical definition of the SDK version, which defines # the set of APIs and functionality available in the platform. It # is a single integer that increases monotonically as updates to # the SDK are released. It should only be incremented when the APIs for # the new release are frozen (so that developers don't write apps against # intermediate builds). During development, this number remains at the # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds # the code-name of the new development work. PLATFORM_SDK_VERSION := 17 #API Level endif ifeq "" "$(PLATFORM_VERSION_CODENAME)" # This is the current development code-name, if the build is not a final # release build. If this is a final release build, it is simply "REL". PLATFORM_VERSION_CODENAME := REL endif ifeq "" "$(DEFAULT_APP_TARGET_SDK)" # This is the default minSdkVersion and targetSdkVersion to use for # all .apks created by the build system. It can be overridden by explicitly # setting these in the .apk's AndroidManifest.xml. It is either the code # name of the development build or, if this is a release build, the official # SDK version of this release. ifeq "REL" "$(PLATFORM_VERSION_CODENAME)" DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION) else DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME) endif endif ifeq "" "$(BUILD_ID)" # Used to signify special builds. E.g., branches and/or releases, # like "M5-RC7". Can be an arbitrary string, but must be a single # word and a valid file name. # # If there is no BUILD_ID set, make it obvious. BUILD_ID := UNKNOWN endif ifeq "" "$(BUILD_NUMBER)" # BUILD_NUMBER should be set to the source control value that # represents the current state of the source code. E.g., a # perforce changelist number or a git hash. Can be an arbitrary string # (to allow for source control that uses something other than numbers), # but must be a single word and a valid file name. # # If no BUILD_NUMBER is set, create a useful "I am an engineering build # from this date/time" value. Make it start with a non-digit so that # anyone trying to parse it as an integer will probably get "0". BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S) endif
[email protected]:/home/hejian/rk3066-4.2/build/core# [email protected]:/home/hejian/rk3066-4.2/build/core# cat version_defaults.mk # # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # Handle various build version information. # # Guarantees that the following are defined: # PLATFORM_VERSION # PLATFORM_SDK_VERSION # PLATFORM_VERSION_CODENAME # DEFAULT_APP_TARGET_SDK # BUILD_ID # BUILD_NUMBER # # Look for an optional file containing overrides of the defaults, # but don't cry if we don't find it. We could just use -include, but # the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set # if the file exists. # INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk) ifneq "" "$(INTERNAL_BUILD_ID_MAKEFILE)" include $(INTERNAL_BUILD_ID_MAKEFILE) endif ifeq "" "$(PLATFORM_VERSION)" # This is the canonical definition of the platform version, # which is the version that we reveal to the end user. # Update this value when the platform version changes (rather # than overriding it somewhere else). Can be an arbitrary string. PLATFORM_VERSION := 4.2.2 endif ifeq "" "$(PLATFORM_SDK_VERSION)" # This is the canonical definition of the SDK version, which defines # the set of APIs and functionality available in the platform. It # is a single integer that increases monotonically as updates to # the SDK are released. It should only be incremented when the APIs for # the new release are frozen (so that developers don't write apps against # intermediate builds). During development, this number remains at the # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds # the code-name of the new development work. PLATFORM_SDK_VERSION := 17 endif ifeq "" "$(PLATFORM_VERSION_CODENAME)" # This is the current development code-name, if the build is not a final # release build. If this is a final release build, it is simply "REL". PLATFORM_VERSION_CODENAME := REL endif ifeq "" "$(DEFAULT_APP_TARGET_SDK)" # This is the default minSdkVersion and targetSdkVersion to use for # all .apks created by the build system. It can be overridden by explicitly # setting these in the .apk's AndroidManifest.xml. It is either the code # name of the development build or, if this is a release build, the official # SDK version of this release. ifeq "REL" "$(PLATFORM_VERSION_CODENAME)" DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION) else DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME) endif endif ifeq "" "$(BUILD_ID)" # Used to signify special builds. E.g., branches and/or releases, # like "M5-RC7". Can be an arbitrary string, but must be a single # word and a valid file name. # # If there is no BUILD_ID set, make it obvious. BUILD_ID := UNKNOWN endif ifeq "" "$(BUILD_NUMBER)" # BUILD_NUMBER should be set to the source control value that # represents the current state of the source code. E.g., a # perforce changelist number or a git hash. Can be an arbitrary string # (to allow for source control that uses something other than numbers), # but must be a single word and a valid file name. # # If no BUILD_NUMBER is set, create a useful "I am an engineering build # from this date/time" value. Make it start with a non-digit so that # anyone trying to parse it as an integer will probably get "0". BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S) endif
相關推薦
如何檢視Android SDK原始碼版本
PLATFORM_VERSION := 4.2.2 位於/build/core/version_defaults.mk # # Copyright (C) 2008 The Android Open Source Project # # Licensed under th
Eclipse 檢視Android SDK原始碼
一次偶然的機會,在網上看到了Windows系統下檢視Android SDK的原始碼的方法。此刻轉載過來和大家一起分享! 先下載原始碼,最新為2.2 1. 原始碼地址:http://rgruet.free.fr/public/ 2.找SDK目錄 安裝的SDK到我的目錄E:\
如何檢視android sdk版本
Android Studio檢視: 1.點選選單欄Tools-Android-SDK Manager 2.開啟後studio會預設選中到Android SDK下,選擇底部的Launch Standalone SDK Manager,開啟原始的SDK Ma
使用android studio 檢視 android 的原始碼
以前都使用 source insight 檢視原始碼. 但是一直使用的都是盜版的. 決心改換成studio. &n
Android [Camera 原始碼] 版本支援(Version Support) Google官方文件(十四)
Google原始碼網地址連結:https://source.android.com/devices/camera 該Google Camera的文件為系列文章,文章列表: overview Camera3 HAL Subsystem Metadata and Con
eclipse升級Android SDK Tool版本到25.2.5後運行項目報錯Unable to build: the file dx.jar was not loaded from the SDK folder
com 但是 概述 details bsp 更新 href unable 解決辦法 概述 由於最近通過SDK-Manager更新了build-tools,當要用到dx.jar這個包時,自動調用最新版本Android SDK build-tools中dx.jar,但是運行a
Android SDK各個版本API的特性及相容性(Dalvik/ART)
Android系統版本與API等級對應關係表- http://www.bubuko.com/infodetail-1928589.htmlandroid關於使用哪個版本開發的討論-- http://blog.csdn.net/pkxiuluo01/article/detail
Android工程原始碼版本資訊
一、獲取Android原始碼版本 1. 編譯的時候在終端中一開始就會打印出來:PLATFORM_VERSION:2.3.1 2. 直接去make檔案中去看:build\core\version_defaults.mk //搜尋該檔案中的 PLATFORM_VERSION值 二、獲取L
Android sdk更新 版本後使用 sdk manager閃退
@echo offrem Copyright (C) 2007 The Android Open Source Projectremrem Licensed under the Apache License, Version 2.0 (the "License");rem you may not use th
Weex Android SDK原始碼分析之Module(modal)
前言 當您來閱讀這篇文章時,代表您已經是weex粉絲了,我說的對嗎?(-_-) 可是您只會使用可不行,本篇博文介紹Weex Moudle中的model 使用與原始碼分析。 程式碼分析 Weex封裝了一系列的model api,例如:toast, ale
Weex Android SDK原始碼分析
前言 最近開始試水Weex開發,使用這麼長一段時間,感覺寫Weex還是非常方便的。作為一個Android開發,免不了要追查一下weex的sdk原始碼。今天,就以Weex SDK for Android為例,分析SDK的 認識Weex SDK 整體分
如何快速配置Android Studio工具檢視Android工程原始碼。
1.如何把AS配置到Ubuntu的桌面參考:http://blog.csdn.net/aaa111/article/details/41833179按其方法新建一個檔案android-studio.desktop,內容為如下,則可在桌面上顯示一個AS的圖示:[Desktop
Android Studio 檢視不到SDK原始碼解決辦法
在使用 Android Studio 開發時,我們需要檢視SDK的原始碼,但是有時候看到的原始碼是類似這樣的提示, Sources for Android API 24 Platfrom not found 如果我們沒有下載SDK的原始碼,點選Down
檢視 Android 原始碼版本
檢視Android 原始碼版本的方法 1. 若Android原始碼已全編譯,則通過屬性檔案build.prop(out/XXX/system/build.prop)裡面檢視ro.build.version.release的值 2. 手機中#getprop 檢
從android原始碼中檢視android的版本
想要檢視安卓原始碼版本,一般有兩個方法:1,如果是已經編譯過的,則會在原始碼下生成build.prop檔案,我們可以通過命令查詢檔案 find -name build.prop 然後再開啟檢視版本資訊
Android studio檢視sdk原始碼
以Android api24為例: 1、當我們在Activity上按下ctrl+滑鼠左鍵,會出現Activity.class檔案,這是Android studio反編譯過來的Activity.class檔案,對我們有用的資訊很少 2、看圖中標記的,找不到原始碼有兩種情況
Android Studio更改項目SDK的版本
操作 image cnblogs ips style and ges 但是 pan Elipse 中的安卓項目,在Android Studio中可以通過File -->new -- > Import Project的方法建立起來。但是有時候需要用到更改項目的A
Android SDK Manager僅有一個版本的問題
google devtools 多版本 blog system ges 虛擬 eclipse 記事本 搭建好MonkeyRunner的環境之後,建立虛擬器的時候發現SDK的管理器中只有4.3的版本,查閱了一下百度,問題解決如下: (1)在c:\Windows\System3
[轉]關於sdk更新Android SDK Tools 25.3.1版本後使用sdk manager閃退
art 運行 ted studio 令行 最新 pro vdma log 昨天這兩個manager還工作正常,今天更新了一下,發現不可用了,運行avd manager和sdk manager沒反應,搜了好多文章,然後看到了下這篇文章《關於sdk更新Android SDK T
Android SDK目錄及版本號區別
今天又有人問Tools,Build-Tools,Platform-tools有什麼區別,是幹嘛的? 現在對SDK目錄做一下總結闡述! SDK目錄 add-ones add-ones:裡面儲存著一些附加的庫,第三方公司為Android平臺開發的附加功能系統。比如GoogleMaps 。(一