summaryrefslogtreecommitdiffstats
path: root/tools/recovery_l10n/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/recovery_l10n/Android.mk')
-rw-r--r--tools/recovery_l10n/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/recovery_l10n/Android.mk b/tools/recovery_l10n/Android.mk
index 937abd1e1..9fb797cf3 100644
--- a/tools/recovery_l10n/Android.mk
+++ b/tools/recovery_l10n/Android.mk
@@ -1,5 +1,9 @@
# Copyright 2012 Google Inc. All Rights Reserved.
+
+# Prevent RecoveryLocalizer already defined errors in older trees
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 24; echo $$?),0)
+
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
@@ -10,3 +14,5 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
include $(BUILD_PACKAGE)
+
+endif