Pretty print metadata xml file to make it easier to read

The process_compat_config.py script can generate two separate XML
files. One for consumption by the device and a separate metadata XML
file that are merged together and used for various tools and tests.

In preparation for including the metadata into the sdk snapshot, which
will be checked into git this change pretty prints the metadata to make
it easier to read and review the differences.

Forces the binary and test to use python3 as ElementTree.indent was
only added in 3.9.

Bug: 232401814
Test: atest --host process-compat-config-test CtsAppCompatHostTestCases
Change-Id: I2c7efc68722eefeca397f7b4d257d5b0c0679920
3 files changed
tree: 5b8e7139cc5a96073c3fc4c02252dcdb3b3a270a
  1. build/
  2. hiddenapi/
  3. java/
  4. javatest/
  5. Android.mk
  6. OWNERS
  7. README.md
README.md

Platform compat tools

Tools for Android App Compat (go/android-compat).

What's in here?

├── build # python helper scripts for build
├── java # All Java source files; directories follow corresponding java packages
│   └── android
│       ├── compat
│       │   └── annotation # Annotations used for go/compat-framework and go/unsupportedappusage
│       └── processor
│           └── compat  # Java annotation processors for annotations defined in src/
│               ├── changeid # Creates compat_config xml files from @ChangeId constants
│               └── unsupportedappusage # Creates csv files with source positions for @UnsupportedAppUsage elements
└── javatest # Tests for source files defined under java/