A/B OTA upgrade failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A/B OTA upgrade failed

Jump to solution
2,460 Views
caoying
Contributor II

参考Android_User's Guide.pdf

update_engine_client  --payload=file:///sdcard/payload.bin --update --headers="FILE_HASH=sM+qbLMlZ9qWQ6ZIq0AmpZXFAdWzT2OTHfueIF0sci8= \ FILE_SIZE=396181160 \ METADATA_HASH=7+44UIriB9jwJ8EOkSqc+i0QI7jxV67sctHwLNOXlkM= \ METADATA_SIZE=58790"

06-21 17:26:51.616  2029  2029 I update_engine: [0621/172651.616640:INFO:delta_performer.cc(1549)] Verifying payload using public key: /etc/update_engine/update-payload-key.pub.pem
06-21 17:26:51.616  2029  2029 E update_engine: [0621/172651.616734:ERROR:delta_performer.cc(1563)] VerifyPayload failure: payload_hash_calculator_.raw_hash() == update_check_response_hash
06-21 17:26:51.616  2029  2029 E update_engine: [0621/172651.616828:ERROR:download_action.cc(397)] Download of file:///sdcard/payload.bin failed due to payload verification error.

差分包或全包都报这样的错误,请帮忙分析!

0 Kudos
1 Solution
1,943 Views
caoying
Contributor II

Thanks! The issue is fixed.

My command format has some wrong. Modify like below is OK.

update_engine_client  --payload=file:///sdcard/payload.bin --update --headers="FILE_HASH=Afax6nZgj9olKMHlWtCR+6MR57f7rxZj/gbElfmIhRY=
FILE_SIZE=396182858
METADATA_HASH=w7Ptcfwfb4zChWEJNT+O0Pi/hHnBhlWMj+xWkfA9h4I=
METADATA_SIZE=58790"

View solution in original post

0 Kudos
2 Replies
1,944 Views
caoying
Contributor II

Thanks! The issue is fixed.

My command format has some wrong. Modify like below is OK.

update_engine_client  --payload=file:///sdcard/payload.bin --update --headers="FILE_HASH=Afax6nZgj9olKMHlWtCR+6MR57f7rxZj/gbElfmIhRY=
FILE_SIZE=396182858
METADATA_HASH=w7Ptcfwfb4zChWEJNT+O0Pi/hHnBhlWMj+xWkfA9h4I=
METADATA_SIZE=58790"

0 Kudos
1,943 Views
caoying
Contributor II

based on imx-p9.0.0_2.1.0-auto-ga

0 Kudos