From a194731dd4435cf820a03ff9fb2232c958ef3a9a Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Wed, 17 Aug 2016 14:14:11 -0700 Subject: [PATCH] cm: "Released" means current. Since mainline devices will always identify as a latest release api level (due to userbase volume), make sure we check against the current api vs api -1. Change-Id: I9e9b41a1af5d3a93f58b2e0e0545b979d1cef978 --- build/tasks/apicheck.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tasks/apicheck.mk b/build/tasks/apicheck.mk index 4bb60c2e..7fa1cc49 100644 --- a/build/tasks/apicheck.mk +++ b/build/tasks/apicheck.mk @@ -26,7 +26,7 @@ ifeq (,$(filter true, $(WITHOUT_CHECK_API) $(TARGET_BUILD_PDK))) droidcore: checkapi-cm # Validate against previous release platform sdk version api text within prebuilts -cm_last_released_sdk_version := $(shell echo ${CM_PLATFORM_SDK_VERSION}-1 | bc) +cm_last_released_sdk_version := $(CM_PLATFORM_SDK_VERSION) .PHONY: check-cm-public-api checkapi-cm : check-cm-public-api