summaryrefslogtreecommitdiffstats
path: root/install/Android.bp
diff options
context:
space:
mode:
authorKelvin Zhang <zhangkelvin@google.com>2021-05-20 22:22:10 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-20 22:22:10 +0200
commitafaae8389db0db7d45fd1771e2e94986e0e3cc68 (patch)
tree5708ec0c41a4c119e2d57d1f40cf536199a733af /install/Android.bp
parent[automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 48a7e7dd7b -s ours (diff)
parentCheck SPL downgrade before install OTA in recovery (diff)
downloadandroid_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.tar
android_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.tar.gz
android_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.tar.bz2
android_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.tar.lz
android_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.tar.xz
android_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.tar.zst
android_bootable_recovery-afaae8389db0db7d45fd1771e2e94986e0e3cc68.zip
Diffstat (limited to 'install/Android.bp')
-rw-r--r--install/Android.bp41
1 files changed, 41 insertions, 0 deletions
diff --git a/install/Android.bp b/install/Android.bp
index 8c88bd01e..e239ddc4e 100644
--- a/install/Android.bp
+++ b/install/Android.bp
@@ -26,6 +26,7 @@ cc_defaults {
defaults: [
"recovery_defaults",
+ "libspl_check_defaults",
],
shared_libs: [
@@ -49,12 +50,51 @@ cc_defaults {
"librecovery_utils",
"libotautil",
"libsnapshot_nobinder",
+ "ota_metadata_proto_cc",
// external dependencies
"libvintf",
],
}
+cc_test_host {
+ name: "libinstall_host_unittests",
+ defaults: [
+ "libspl_check_defaults"
+ ],
+ srcs: [
+ "spl_check_unittests.cpp",
+ ],
+ static_libs: [
+ "libspl_check",
+ ],
+}
+
+cc_defaults {
+ name: "libspl_check_defaults",
+ static_libs: [
+ "libbase",
+ "ota_metadata_proto_cc",
+ "liblog",
+ "libziparchive",
+ "libz",
+ "libprotobuf-cpp-lite",
+ ],
+}
+
+cc_library_static {
+ name: "libspl_check",
+ recovery_available: true,
+ host_supported: true,
+ defaults: [
+ "libspl_check_defaults",
+ ],
+ srcs: ["spl_check.cpp"],
+ export_include_dirs: [
+ "include",
+ ],
+}
+
cc_library_static {
name: "libinstall",
recovery_available: true,
@@ -73,6 +113,7 @@ cc_library_static {
"verifier.cpp",
"wipe_data.cpp",
"wipe_device.cpp",
+ "spl_check.cpp",
],
header_libs: [