Install the update-payload-key in the recovery image as well.
The update-payload-key is required to verify the contents of the OTA in recovery while sideloading an update. Bug: 27178350 TEST=`make` builds a boot.img with the payload key in recovery. Change-Id: I04616979023b84aa4a1feb6916db2b2725b25c54
This commit is contained in:
@@ -767,6 +767,10 @@ $(TARGET_OUT_ETC)/update_engine/update-payload-key.pub.pem: $(addsuffix .x509.pe
|
|||||||
$(hide) rm -f $@
|
$(hide) rm -f $@
|
||||||
$(hide) mkdir -p $(dir $@)
|
$(hide) mkdir -p $(dir $@)
|
||||||
$(hide) openssl x509 -pubkey -noout -in $< > $@
|
$(hide) openssl x509 -pubkey -noout -in $< > $@
|
||||||
|
|
||||||
|
ALL_DEFAULT_INSTALLED_MODULES += $(TARGET_RECOVERY_ROOT_OUT)/etc/update_engine/update-payload-key.pub.pem
|
||||||
|
$(TARGET_RECOVERY_ROOT_OUT)/etc/update_engine/update-payload-key.pub.pem: $(TARGET_OUT_ETC)/update_engine/update-payload-key.pub.pem
|
||||||
|
$(hide) cp -f $< $@
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user