Merge "Dedup hidden API rule generation" am: 2bc8b3a646

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1707572

Change-Id: I7d9edfc6383ba6efbc62714c12aa415cb9a45cfd