commit | bb621f2df4740f43c31c62916f33085f54036f0e | [log] [tgz] |
---|---|---|
author | Andreas Gampe <[email protected]> | Tue Apr 16 14:49:42 2019 -0700 |
committer | Andreas Gampe <[email protected]> | Tue Apr 16 14:52:14 2019 -0700 |
tree | c3eee02945be325346f65bbbaeeff2ebbde6bd80 | |
parent | bc17e4b328a4ce1146c7b23798c7aa7f03ee0c6d [diff] |
PreloadCheck: Add support for regex checking Add some reflection hackery to retrieve boot classpath dex files. This requires unstripped jars. Then use DexFile APIs to retrieve all classes, and run a check if the given regular exception matches. Use the new infrastructure to check that NoPreloadHolder classes are not initialized. Test: atest --test-mapping frameworks/base/tools/preload-check Change-Id: Ic19e950647e5827d3c3ec4a7109553f39be7f43a