diff --git a/core/dex_preopt.mk b/core/dex_preopt.mk index ab06375a29..7e38ae8fd7 100644 --- a/core/dex_preopt.mk +++ b/core/dex_preopt.mk @@ -76,9 +76,7 @@ $(INTERNAL_PLATFORM_HIDDENAPI_STUB_FLAGS): PRIVATE_HIDDENAPI_STUBS_CORE_PLATFORM $(INTERNAL_PLATFORM_HIDDENAPI_STUB_FLAGS): $(HIDDENAPI) $(HIDDENAPI_STUBS) \ $(HIDDENAPI_STUBS_SYSTEM) $(HIDDENAPI_STUBS_TEST) \ $(HIDDENAPI_STUBS_CORE_PLATFORM) - for INPUT_DEX in $(PRIVATE_DEX_INPUTS); do \ - find `dirname $${INPUT_DEX}` -maxdepth 1 -name "classes*.dex"; \ - done | sort | sed 's/^/--boot-dex=/' | xargs $(HIDDENAPI) list \ + $(HIDDENAPI) list $(addprefix --boot-dex=,$(PRIVATE_DEX_INPUTS)) \ --public-stub-classpath=$(call normalize-path-list, $(PRIVATE_HIDDENAPI_STUBS)) \ --public-stub-classpath=$(call normalize-path-list, $(PRIVATE_HIDDENAPI_STUBS_SYSTEM)) \ --public-stub-classpath=$(call normalize-path-list, $(PRIVATE_HIDDENAPI_STUBS_TEST)) \