Merge "Move package verifier from libinstall to libotautil"

This commit is contained in:
Jacky Liu 2021-12-24 14:27:38 +00:00 committed by Gerrit Code Review
commit 86df64785a
16 changed files with 18 additions and 16 deletions

View file

@ -105,12 +105,9 @@ cc_library_static {
srcs: [
"adb_install.cpp",
"asn1_decoder.cpp",
"fuse_install.cpp",
"install.cpp",
"package.cpp",
"snapshot_utils.cpp",
"verifier.cpp",
"wipe_data.cpp",
"wipe_device.cpp",
"spl_check.cpp",

View file

@ -24,7 +24,7 @@
#include <ziparchive/zip_archive.h>
#include "package.h"
#include "otautil/package.h"
#include "recovery_ui/ui.h"
enum InstallResult {

View file

@ -19,7 +19,7 @@
#include <string>
#include <vector>
#include "install/package.h"
#include "otautil/package.h"
#include "recovery_ui/device.h"
// Wipes the current A/B device, with a secure wipe of all the partitions in RECOVERY_WIPE.

View file

@ -46,13 +46,13 @@
#include <android-base/strings.h>
#include <android-base/unique_fd.h>
#include "install/package.h"
#include "install/spl_check.h"
#include "install/verifier.h"
#include "install/wipe_data.h"
#include "otautil/error_code.h"
#include "otautil/package.h"
#include "otautil/paths.h"
#include "otautil/sysutil.h"
#include "otautil/verifier.h"
#include "private/setup_commands.h"
#include "recovery_ui/ui.h"
#include "recovery_utils/roots.h"

View file

@ -35,7 +35,7 @@
#include "bootloader_message/bootloader_message.h"
#include "install/install.h"
#include "install/package.h"
#include "otautil/package.h"
#include "recovery_ui/device.h"
#include "recovery_ui/ui.h"

View file

@ -34,16 +34,21 @@ cc_library_static {
// Minimal set of files to support host build.
srcs: [
"asn1_decoder.cpp",
"dirutil.cpp",
"package.cpp",
"paths.cpp",
"rangeset.cpp",
"sysutil.cpp",
"verifier.cpp",
],
shared_libs: [
"libbase",
"libcrypto",
"libcutils",
"libselinux",
"libziparchive",
],
export_include_dirs: [

View file

@ -26,7 +26,7 @@
#include <ziparchive/zip_archive.h>
#include "verifier.h"
#include "otautil/verifier.h"
enum class PackageType {
kMemory,

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "install/package.h"
#include "otautil/package.h"
#include <string.h>
#include <unistd.h>

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "install/verifier.h"
#include "otautil/verifier.h"
#include <errno.h>
#include <stdio.h>

View file

@ -48,12 +48,12 @@
#include "install/adb_install.h"
#include "install/fuse_install.h"
#include "install/install.h"
#include "install/package.h"
#include "install/snapshot_utils.h"
#include "install/wipe_data.h"
#include "install/wipe_device.h"
#include "otautil/boot_state.h"
#include "otautil/error_code.h"
#include "otautil/package.h"
#include "otautil/paths.h"
#include "otautil/sysutil.h"
#include "recovery_ui/screen_ui.h"

View file

@ -17,7 +17,7 @@
#include "fuzzer/FuzzedDataProvider.h"
#include "install/install.h"
#include "install/package.h"
#include "otautil/package.h"
#include "recovery_ui/stub_ui.h"
std::unique_ptr<Package> CreatePackage(std::vector<uint8_t>& content) {

View file

@ -26,7 +26,7 @@
#include <ziparchive/zip_writer.h>
#include "common/test_constants.h"
#include "install/package.h"
#include "otautil/package.h"
class PackageTest : public ::testing::Test {
protected:

View file

@ -35,8 +35,8 @@
#include <ziparchive/zip_writer.h>
#include "common/test_constants.h"
#include "install/package.h"
#include "install/verifier.h"
#include "otautil/package.h"
#include "otautil/verifier.h"
#include "otautil/sysutil.h"
using namespace std::string_literals;