update_engine requires update_engine_payload_key.
This ensures update-payload-key.pub.pem is installed whenever
update_engine is added to PRODUCT_PACKAGES.
Bug: 130516531
Test: Build aosp_arm64-userdebug w/o setting AB_OTA_UPDATER. Check that
/system/etc/update_engine/update-payload-key.pub.pem is available.
Test: Build aosp_taimen-userdebug. Check that
/system/etc/update_engine/update-payload-key.pub.pem is available
in the built system and recovery images.
Change-Id: Iea282025f2ba1dd3c46c764c13f768b84553b59e
diff --git a/Android.bp b/Android.bp
index 8b1730b..ce43bea 100644
--- a/Android.bp
+++ b/Android.bp
@@ -293,7 +293,10 @@
],
static_libs: ["libupdate_engine_android"],
- required: ["cacerts_google"],
+ required: [
+ "cacerts_google",
+ "update_engine_payload_key",
+ ],
srcs: ["main.cc"],
init_rc: ["update_engine.rc"],
@@ -366,7 +369,10 @@
},
},
- required: ["android.hardware.boot@1.0-impl-wrapper.recovery"],
+ required: [
+ "android.hardware.boot@1.0-impl-wrapper.recovery",
+ "update_engine_payload_key.recovery",
+ ],
}
// libupdate_engine_client (type: shared_library)