diff --git a/Android.mk b/Android.mk index fee8fd4536c22be6782580f78451c31540bc6677..44c1ef61af1773398eeece2cc938029870cad339 100644 --- a/Android.mk +++ b/Android.mk @@ -47,7 +47,7 @@ $(foreach pf, $(BOARD_SEPOLICY_REPLACE), \ build_policy = $(foreach type, $(1), \ $(foreach expanded_type, $(notdir $(wildcard $(addsuffix /$(type), $(LOCAL_PATH)))), \ $(if $(filter $(expanded_type), $(BOARD_SEPOLICY_REPLACE)), \ - $(wildcard $(addsuffix $(expanded_type), $(dir $(sepolicy_replace_paths)))), \ + $(wildcard $(addsuffix $(expanded_type), $(sort $(dir $(sepolicy_replace_paths))))), \ $(LOCAL_PATH)/$(expanded_type) \ ) \ ) \