[Android Software Development] osm0sis:
Maaaaany improvements, and now using the proper AVB verity keys. For image format updates, I've added another variant of AOSP-PXA magic thanks to the ongoing research of @akuhak, Barnes & Noble Nook image support, Rockchip KRNL ramdisk image support, and Samsung/Spreadtrum DHTB header support thanks to the excellent work of @jedld and @chiefwigms.

The kernel_dump binary has been updated to the latest version to fix AIK-mobile Sony SIN unsigning/unpacking on arm64 and possibly other architectures, but I want to note that while the binary now has SIN v4 support I can't add it to AIK (nor does it really make sense to) since it's literally just .tar.gz of an AOSP standard image, similar to Samsung's packaging for ODIN, and therefore easily unpacked by a user beforehand.

In addition to perusing the extensive changelogs below, I recommend following the GitHub links, since there have been lots of little fixes to the included binaries I build as well; mkbootfs now supports Magisk rooted images, and mkbootimg/unpackbootimg now properly support the current AOSP method of handling extended cmdlines up to 1536 characters, to name a couple of examples.

As always, the AIK Build Farm has been updated accordingly. Have fun!

NOTE: Downloads are hosted on the XDA DevDB Project Downloads page since AIK-mobile exceeds the 20mb zip attachment size limit. These are now also direct-linked in the OP which should get around any issues from downloading via Tapatalk/XDA Labs or without an account, as I noticed the download rates and counts were pretty much cut in half on the last version.

I work on these projects in my limited time off, so if you like the progress I'm making, or enjoy anything else I've done on xda, please do hit the donate link from my profile. Thanks for your support!

Android Image Kitchen v2.9:

- rename AVB magic detection to the more accurate "AVB signing v1"

- add .pem certificate support to AVB signing and switch default re-signing to the correct AOSP "verity" keys (https://github.com/aosp-mirror/plat...894e648dbc3d8d237b183/target/product/security)

- rename pxa1088- tools to pxa- since they also work on the Samsung/Marvell PXA1908 board

- add workaround for malformed ramdisks without leading directory entries and/or with absolute filenames using the root path

- add workaround for devices with broken header/missing hash, or which accept AOSP standard as well as their own variant with an offset hash, by assuming "sha1" on repack if "unknown" hash type is detected

- update mkbootfs, mkbootimg, unpackbootimg, pxa-mkbootimg and pxa-unpackbootimg binaries from my repos

- fix support for paths/filenames with spaces in some cases due to missing quotes

- fix false positive magic detections in AOSP bootimg sub-magic

- add Barnes & Noble Nook kernel signature "Green Loader" detection and split out the loader header+kernel to unpack/repack

- fix AVB signature detection in some scenarios

- add magic detection for AOSP-PXA "028" variant

- add Rockchip KRNL header detection and use rkcrc to repack

- suppress gunzip "trailing garbage" warning on improperly split ramdisks

- add workaround for Unicode characters in the image path by using the 8.3 shortname version of the path

- add Samsung/Spreadtrum DHTB header detection and use dhtbsign on repack

- update lz4 binary (1.8.0)

- update slimmed magic file (from file 5.32) with my own fixes

- update kernel_dump binary (07.Jun.2017)

- update dumpimage and mkimage binaries (2017.09)

- update to the latest Cygwin binaries and libraries

AIK-mobile v2.9 + AIK-Linux v2.9:

- rename AVB magic detection to the more accurate "AVB signing v1"

- add .pem certificate support to AVB signing and switch default re-signing to the correct AOSP "verity" keys (https://github.com/aosp-mirror/plat...894e648dbc3d8d237b183/target/product/security)

- rename pxa1088- tools to pxa- since they also work on the Samsung/Marvell PXA1908 board

- fix MTK and Loki support on devices with poor toolbox implementations by using busybox for all mv -f commands (AIK-mobile)

- add workaround for malformed ramdisks without leading directory entries and/or with absolute filenames using the root path

- add workaround for devices with broken header/missing hash, or which accept AOSP standard as well as their own variant with an offset hash, by assuming "sha1" on repack if "unknown" hash type is detected

- improve tail magic testing time on large files dramatically by detecting trailing NUL/00 padding and dumping only the preceding 4096 bytes (AIK-mobile)

- update mkbootfs, mkbootimg, unpackbootimg, pxa-mkbootimg and pxa-unpackbootimg binaries from my repos

- fix support for paths/filenames with spaces

- update Magisk support for full online installs in Magisk Manager (AIK-mobile)

- fix aik --restore with Magisk (AIK-mobile)

- fix aik --restore on devices with broken mount command by using busybox instead (AIK-mobile)

- fix false positive magic detections in AOSP bootimg sub-magic

- fix aik --restore and --uninstall /su and /magisk detection on more restrictive SELinux devices (AIK-mobile)

- add Barnes & Noble Nook kernel signature "Green Loader" detection and split out the loader header+kernel to unpack/repack

- fix AVB signature detection in some scenarios (AIK-Linux)

- add magic detection for AOSP-PXA "028" variant

- update busybox binary (1.27.2) with the latest patches and fixes from my repo (AIK-mobile)

- add BINDSBIN SuperSU support to installer and aik --restore/--uninstall commands (AIK-mobile)

- add Rockchip KRNL header detection and use rkcrc to repack

- suppress gunzip "trailing garbage" warning on improperly split ramdisks (AIK-Linux)

- add Samsung/Spreadtrum DHTB header detection and use dhtbsign on repack

- update lz4 binary (1.8.0)

- update file binary (5.32) (AIK-mobile)

- update slimmed magic file (from file 5.32) with my own fixes

- update kernel_dump binary (07.Jun.2017)

- update dumpimage and mkimage binaries (2017.09)

More on my own build changes in the commits here: https://github.com/osm0sis/mkbootfs;

https://github.com/osm0sis/mkbootimg; https://github.com/osm0sis/pxa-mkbootimg; https://github.com/osm0sis/dhtbsign; https://github.com/osm0sis/android-busybox-ndk.

Installation information and details on each edition can be found in the OP for Win32 or the AIK-mobile and AIK-Linux initial release notes.

If you are reporting a problem with your device, please clearly state your device name and model/variant as well as provide a link to the image file.