diff options
author | Tianjie Xu <xunchang@google.com> | 2019-05-15 22:59:39 +0200 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2019-07-24 20:36:03 +0200 |
commit | 164c60a4f3de934bab7035114546e9500cd8f232 (patch) | |
tree | 0311dd6f33655ae9b5f1aec1847405bcd54673fb /install | |
parent | Merge "Add command line parser for simulator" (diff) | |
download | android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.gz android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.bz2 android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.lz android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.xz android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.tar.zst android_bootable_recovery-164c60a4f3de934bab7035114546e9500cd8f232.zip |
Diffstat (limited to 'install')
-rw-r--r-- | install/install.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/install/install.cpp b/install/install.cpp index 09b88392a..9d67b0105 100644 --- a/install/install.cpp +++ b/install/install.cpp @@ -60,7 +60,8 @@ using namespace std::chrono_literals; static constexpr int kRecoveryApiVersion = 3; -// Assert the version defined in code and in Android.mk are consistent. +// We define RECOVERY_API_VERSION in Android.mk, which will be picked up by build system and packed +// into target_files.zip. Assert the version defined in code and in Android.mk are consistent. static_assert(kRecoveryApiVersion == RECOVERY_API_VERSION, "Mismatching recovery API versions."); // Default allocation of progress bar segments to operations @@ -621,6 +622,8 @@ InstallResult InstallPackage(Package* package, const std::string_view package_id InstallResult result; std::vector<std::string> log_buffer; + ui->Print("Supported API: %d\n", kRecoveryApiVersion); + ui->Print("Finding update package...\n"); LOG(INFO) << "Update package id: " << package_id; if (!package) { |