summaryrefslogtreecommitdiffstats
path: root/tools/dumpkey
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dumpkey')
-rw-r--r--tools/dumpkey/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dumpkey/Android.mk b/tools/dumpkey/Android.mk
index 31549146d..c528c3bf9 100644
--- a/tools/dumpkey/Android.mk
+++ b/tools/dumpkey/Android.mk
@@ -14,9 +14,14 @@
LOCAL_PATH := $(call my-dir)
+# Pre Oreo trees have dumpkey defined elsewhere in the tree
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
+
include $(CLEAR_VARS)
LOCAL_MODULE := dumpkey
LOCAL_SRC_FILES := DumpPublicKey.java
LOCAL_JAR_MANIFEST := DumpPublicKey.mf
LOCAL_STATIC_JAVA_LIBRARIES := bouncycastle-host
include $(BUILD_HOST_JAVA_LIBRARY)
+
+endif