Revert^2 "Use VisitDirectDepsProxy in GenerateBuildActions and remove the"

This reverts commit b51cd7100365dad2e27366402e7aab55bae09a7d.

Reason for revert: Reland the change since the depending cl was merged.

Change-Id: I88cbdc1b26a8ab9c91f33ec65ff43b80f324b832
diff --git a/android/module.go b/android/module.go
index 58ae885..3e71397 100644
--- a/android/module.go
+++ b/android/module.go
@@ -1932,9 +1932,7 @@
 
 	if m.Enabled(ctx) {
 		// ensure all direct android.Module deps are enabled
-		ctx.VisitDirectDeps(func(m Module) {
-			ctx.validateAndroidModule(m, ctx.OtherModuleDependencyTag(m), ctx.baseModuleContext.strictVisitDeps)
-		})
+		ctx.VisitDirectDepsProxy(func(m ModuleProxy) {})
 
 		if m.Device() {
 			// Handle any init.rc and vintf fragment files requested by the module.  All files installed by this