Merge "Revert "Revert^2: Change command-line flags of hiddenapi""

This commit is contained in:
Paul Hobbs 2018-10-26 17:22:35 +00:00 committed by Gerrit Code Review
commit 27ec8b868e
1 changed files with 3 additions and 4 deletions

View File

@ -2672,10 +2672,9 @@ $(2): $(1) $(HIDDENAPI) $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST) \
$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST) $(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST)
@rm -rf $(dir $(2)) @rm -rf $(dir $(2))
@mkdir -p $(dir $(2)) @mkdir -p $(dir $(2))
for INPUT_DEX in `find $(dir $(1)) -maxdepth 1 -name "classes*.dex" | sort`; do \ find $(dir $(1)) -maxdepth 1 -name "classes*.dex" | xargs -I{} cp -f {} $(dir $(2))/; \
echo "--input-dex=$$$${INPUT_DEX}"; \ find $(dir $(2)) -maxdepth 1 -name "classes*.dex" | sort | sed 's/^/--dex=/' \
echo "--output-dex=$(dir $(2))/`basename $$$${INPUT_DEX}`"; \ | xargs $(HIDDENAPI) encode \
done | xargs $(HIDDENAPI) encode \
--light-greylist=$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST) \ --light-greylist=$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST) \
--dark-greylist=$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) \ --dark-greylist=$(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) \
--blacklist=$(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST) --blacklist=$(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST)