diff options
author | 2022-04-26 14:51:24 +0000 | |
---|---|---|
committer | 2022-04-28 22:01:08 +0000 | |
commit | f248074fb47428c11af0754b9a73eaa206c215cb (patch) | |
tree | 8b8ce9f65061fc7d07356a6a2da5ee9b0ca9d4aa /tools/aapt2/Main.cpp | |
parent | 85875a83501d3bdc551cbddcecc26bab4617b06a (diff) |
Implementation of 'aapt2 apkinfo' command.
Bug: b/228950123
Test: Dump_test.cpp, ApkInfo_test.cpp
Change-Id: Ibc63d826df5b7e83a1e61560a2d2fcad471c128d
Diffstat (limited to 'tools/aapt2/Main.cpp')
-rw-r--r-- | tools/aapt2/Main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/aapt2/Main.cpp b/tools/aapt2/Main.cpp index b249c6c128e1..e47bd67c4b8d 100644 --- a/tools/aapt2/Main.cpp +++ b/tools/aapt2/Main.cpp @@ -24,11 +24,11 @@ #include <iostream> #include <vector> +#include "Diagnostics.h" #include "android-base/stringprintf.h" #include "android-base/utf8.h" #include "androidfw/StringPiece.h" - -#include "Diagnostics.h" +#include "cmd/ApkInfo.h" #include "cmd/Command.h" #include "cmd/Compile.h" #include "cmd/Convert.h" @@ -72,6 +72,7 @@ class MainCommand : public Command { AddOptionalSubcommand(util::make_unique<OptimizeCommand>()); AddOptionalSubcommand(util::make_unique<ConvertCommand>()); AddOptionalSubcommand(util::make_unique<VersionCommand>()); + AddOptionalSubcommand(util::make_unique<ApkInfoCommand>(diagnostics)); } int Action(const std::vector<std::string>& args) override { |