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
diff --git a/build/tasks/apicheck.mk b/build/tasks/apicheck.mk
index 4bb60c2..7fa1cc4 100644
--- a/build/tasks/apicheck.mk
+++ b/build/tasks/apicheck.mk
@@ -26,7 +26,7 @@
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