Skip to content

Conversation

@foresto
Copy link

@foresto foresto commented Oct 13, 2025

When attempting to follow the LineageOS Signing Builds instructions, sign_target_files_apks fails with a backtrace and the message:

KeyError: 'avb_avbtool'

The tool is expecting misc_info.txt to contain an 'avb_avbtool' entry, which is written by build/make/core/Makefile only if BOARD_AVB_ENABLE is true. This patch sets that variable, along with a few more that the Makefile requires with it, as recommended here:

https://gitlab.com/LineageOS/issues/android/-/issues/3388

https://review.lineageos.org/c/LineageOS/android_device_xiaomi_sdm845-common/+/308710

fixes #121

When attempting to follow the LineageOS Signing Builds instructions,
sign_target_files_apks fails with a backtrace and the message:

    KeyError: 'avb_avbtool'

The tool is expecting misc_info.txt to contain an 'avb_avbtool' entry,
which is written by build/make/core/Makefile only if BOARD_AVB_ENABLE
is true. This patch sets that variable, along with a few more that the
Makefile requires with it, as recommended here:

https://gitlab.com/LineageOS/issues/android/-/issues/3388

https://review.lineageos.org/c/LineageOS/android_device_xiaomi_sdm845-common/+/308710

fixes whatawurst#121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build signing tool sign_target_files_apks fails with KeyError: 'avb_avbtool'

1 participant