summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2018-11-21 15:27:41 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2018-11-28 21:28:10 +0800
commit7271d39376570033a45b77eb1593be51d36db36b (patch)
tree0803268f225e8db69745a6207fe8eeb77e5b73e6
parentc1875b5a3364f679a4ae482dfe5bdc4f3538e207 (diff)
downloadhikey-7271d39376570033a45b77eb1593be51d36db36b.tar.gz
device-common.mk: set PRODUCT_SHIPPING_API_LEVELandroid-wear-8.0.0_r2
to make CTS android.os.cts.BuildTest#testSdkInt pass Here we set it to 25 first, since set to 26 or later needs to support gatekeeper function, which makes the build failed to boot to homescreen with the default aosp implementation. Will set it to 28 or the latest api number when we have all the necessary features supported. Test: cts-tradefed run commandAndExit cts -m CtsOsTestCases -t android.os.cts.BuildTest#testSdkInt Change-Id: Ibdebe816e24674599488bc36d6fe9ade2d152613 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--device-common.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk
index 12d3d0ef..6a0def2b 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -29,6 +29,19 @@ endif
# Set vendor kernel path
PRODUCT_VENDOR_KERNEL_HEADERS := device/linaro/hikey/kernel-headers
+# Hikey was first supported from Marshmallow 6.0, API level 23
+# PRODUCT_SHIPPING_API_LEVEL is required from Pie build by the CTS test of
+# CtsOsTestCases android.os.cts.BuildTest#testSdkInt
+# as reported here:
+# https://bugs.linaro.org/show_bug.cgi?id=4068
+# https://source.android.com/setup/start/build-numbers
+# Here we set it to 25 first, because Gatekeeper function
+# needs to be supported when set to 26 or above,
+# which we could not boot successfully with the default implementation
+# enabled yet. Will back to set it to the latest number when we have
+# all necessary features supported.
+PRODUCT_SHIPPING_API_LEVEL := 25
+
# Set custom settings
DEVICE_PACKAGE_OVERLAYS := device/linaro/hikey/overlay
ifneq (,$(filter $(TARGET_PRODUCT),hikey960_tv hikey_tv))