Skip to content
Snippets Groups Projects
Commit cc2f60c1 authored by Joshua Watt's avatar Joshua Watt Committed by Mattijs Korpershoek
Browse files

android_ab: Fixes: Fix backup offset calculation


The backup offset is in bytes, but was incorrectly be interpreted as
blocks, leading to it being written to the wrong location. Fix the
calculation, clarify that ANDROID_AB_BACKUP_OFFSET is in bytes and must
be a multiple of the block size, and add a runtime check to validate the
offset.

Signed-off-by: default avatarJoshua Watt <JPEWhacker@gmail.com>
Reviewed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Fixes: 3430f24b ("android_ab: Try backup booloader_message")
Link: https://lore.kernel.org/r/20240828143924.3987331-1-JPEWhacker@gmail.com


Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
parent 1312faac
No related branches found
Tags ti-v2021.04-rc4
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment