Move package verifier from libinstall to libotautil
So it can be used by device-specific codes. Bug: 184693830 Test: m; atest recovery_unit_test Change-Id: I5885334c1bd04214c9cc295f2337306261a1735c
This commit is contained in:
parent
9113d57446
commit
068329e977
16 changed files with 18 additions and 16 deletions
|
@ -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",
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <ziparchive/zip_archive.h>
|
||||
|
||||
#include "package.h"
|
||||
#include "otautil/package.h"
|
||||
#include "recovery_ui/ui.h"
|
||||
|
||||
enum InstallResult {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <ziparchive/zip_archive.h>
|
||||
|
||||
#include "verifier.h"
|
||||
#include "otautil/verifier.h"
|
||||
|
||||
enum class PackageType {
|
||||
kMemory,
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "install/package.h"
|
||||
#include "otautil/package.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "install/verifier.h"
|
||||
#include "otautil/verifier.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue