Skip to content

DSU compatibility #286

Closed Answered by chenxiaolong
Unb0rn asked this question in Q&A
May 17, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Yep, this is possible as long as the main OS is signed by your own key (so that you're able to modify it).

The keys used for verifying DSUs are stored in first_stage_ramdisk/avb/*.avbpubkey in the ramdisk of the init_boot or vendor_boot partition.

The process would look something like this:

  1. Extract init_boot or vendor_boot from the main OS's OTA
  2. Unpack the ramdisk
  3. Copy your public key avb_pkmd.bin to the ramdisk's first_stage_ramdisk/avb/ directory and rename it to have the .avbpubkey extension
  4. Repack the ramdisk
  5. Patch the main OS's OTA with avbroot and include the modified init_boot/vendor_boot
  6. Now, the main OS is able to boot any DSU image signed by your key

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Unb0rn
Comment options

@chenxiaolong
Comment options

@chenxiaolong
Comment options

Answer selected by Unb0rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants