Loading cmds/installd/otapreopt_chroot.cpp +4 −3 Original line number Original line Diff line number Diff line Loading @@ -72,9 +72,10 @@ static std::vector<apex::ApexFile> ActivateApexPackages() { static void DeactivateApexPackages(const std::vector<apex::ApexFile>& active_packages) { static void DeactivateApexPackages(const std::vector<apex::ApexFile>& active_packages) { for (const apex::ApexFile& apex_file : active_packages) { for (const apex::ApexFile& apex_file : active_packages) { const std::string& package_path = apex_file.GetPath(); const std::string& package_path = apex_file.GetPath(); apex::Status status = apex::deactivatePackage(package_path); base::Result<void> status = apex::deactivatePackage(package_path); if (!status.Ok()) { if (!status) { LOG(ERROR) << "Failed to deactivate " << package_path << ": " << status.ErrorMessage(); LOG(ERROR) << "Failed to deactivate " << package_path << ": " << status.error(); } } } } } } Loading Loading
cmds/installd/otapreopt_chroot.cpp +4 −3 Original line number Original line Diff line number Diff line Loading @@ -72,9 +72,10 @@ static std::vector<apex::ApexFile> ActivateApexPackages() { static void DeactivateApexPackages(const std::vector<apex::ApexFile>& active_packages) { static void DeactivateApexPackages(const std::vector<apex::ApexFile>& active_packages) { for (const apex::ApexFile& apex_file : active_packages) { for (const apex::ApexFile& apex_file : active_packages) { const std::string& package_path = apex_file.GetPath(); const std::string& package_path = apex_file.GetPath(); apex::Status status = apex::deactivatePackage(package_path); base::Result<void> status = apex::deactivatePackage(package_path); if (!status.Ok()) { if (!status) { LOG(ERROR) << "Failed to deactivate " << package_path << ": " << status.ErrorMessage(); LOG(ERROR) << "Failed to deactivate " << package_path << ": " << status.error(); } } } } } } Loading