Add framework.aidl as prerequisite of api-stubs
So that aidl can pull in framework.aidl when building against current sdk.
See http://b/issue?id=2666578
Change-Id: If45ff10a7ffa1f14e421ec50d6c07636236b2b8e
diff --git a/Android.mk b/Android.mk
index c6036c0..4b1d150 100644
--- a/Android.mk
+++ b/Android.mk
@@ -474,7 +474,8 @@
include $(BUILD_DROIDDOC)
-$(full_target): $(framework_built)
+# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
+$(full_target): $(framework_built) $(gen)
$(INTERNAL_PLATFORM_API_FILE): $(full_target)
$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))