Move build_xml_api_file and use to only .mk where it is needed

Bug: 122332514
Test: atest CtsDevicePolicyManagerTestCases
      atest -p cts/tests/signature

Change-Id: I520979a7c6124b2776ddfa2a4773863eb328aa69
2 files changed