Clean up standalone-apex-files build rule.

- Use a single macro for all APEX file extraction.
- Try both .apex file and flattened APEX directory.
- Propagate script errors better.
- Fix bug with prebuilt Conscrypt .apex file which didn't extract lib
  files because the target directory didn't exist.
- Remove a number of libraries that no longer comes from the ART APEX.
  They are installed by normal Soong modules instead.
- Remove some stale comments.

Test: m installclean && m build-art-target-golem
  before and after CL, compare output of
  `sha1sum out/target/product/armv8/system/*/* | sort -k2`
  The only difference is that some files now get properly extracted
  from the Conscrypt APEX:
  > 9c376cdb465a876d2cc638b71184d680dd84bb17  out/target/product/armv8/system/lib/libcrypto.so
  > 704a6191ae9f0b5302277fdda06918aa9f360eb0  out/target/product/armv8/system/lib/libjavacrypto.so
  > f60a44f35e8cc8c048f2c2b0718cd2e47dfc41b4  out/target/product/armv8/system/lib/libssl.so
Bug: 152255951
Change-Id: I25070c15b1515b0436c61000e3f388b6c9bcc9ae
1 file changed