| # Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| def extractmarker(apk_or_dex, build=True): |
| stdout = toolhelper.run('extractmarker', [apk_or_dex], build=build, return_stdout=True) |
| result = argparse.ArgumentParser( |
| description='Relayout a given APK using a startup profile.') |
| result.add_argument('--no-build', |
| help='To disable building using gradle') |
| options, args = result.parse_known_args(argv) |
| options, args = parse_options(argv) |
| build = not options.no_build |
| print(extractmarker(apk_or_dex, build=build)) |
| if __name__ == '__main__': |
| sys.exit(main(sys.argv[1:])) |