[Android Software Development] osm0sis:
IT'S HAPPENING! Sony ELF image format support (repacks as AOSP format for unlocked bootloaders) and MTK header unpack/repack support are here! This also fully integrates Loki support (no more add-on required), brings the mkbootfs support for Motorola special ramdisk files to Windows, and brings the rooted Pixel support I added to mkbootfs - plus the Nougat os version+os security patch level support I backported, and larger pre-header support for mkbootimg/unpackbootimg - to all platforms. The AIK Build Farm has also been updated accordingly. Many thanks to [MENTION=4675598]shoey63[/MENTION] for patiently testing ELF support! :highfive:

The file binary is back to having broken Android compiles again from 5.28 onward but I found the offending commit, reverted it in my local builds and reported it to the developers, so we've got 5.29-git included for this release.

Now I'm off to update the OPs since I finally get to remove a few items from the "Confirmed Not Working Devices" list. ;):cowboy::victory:

Edit

: See here for the "hotfix" for a regression on pathless filenames within the AIK-mobile and AIK-Linux working directory.

Flashlt v2.5 is available over in my Odds and Ends thread as well in case anyone missed it. It has a number of improvements including added --trim for trim-only functionality on any file and an accompanying standalone trimit.sh wrapper script!

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.5:

- improve empty directory detection in repackimg

- fix repeat commandline execution by setting a local environment

- update mkbootimg, unpackbootimg and mkbootfs binaries from my repos

- add os_version/os_patch_level support to unpack/repack

- fix .dotfile (hidden) and 000 permission (restricted) directory/file access

- add loki header detection and integrate loki_tool support from the previously separate AIK v2.x Loki Add-on

- add elf header detection and use unpackelf to split kernel.elf images

- skip over split_img files on repack that might be missing from an elf file

- add mtk header detection and use mkmtkhdr to generate new headers before repack

- handle weird circumstances where mtk headers exist in zImage only or ramdisk only, by assuming missing ramdisk header type is "rootfs" (may be later changed to "recovery" in the split_img/*-mtktype file if needed) and generating headers during repack on all if found on any during unpack

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

- add --help argument to all .bat scripts

- update to the last Cygwin binaries and libraries (2.5.2) that support Windows XP

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

- update to latest versions of set_perm and set_perm_recursive from my Complete Shell Zip Documentation to support recoveries (CM) currently without awk (AIK-mobile)

- fix lz4 ramdisk repacking when unpacked with --sudo (AIK-Linux)

- add --uninstall argument to aik shortcut to automate package removal (AIK-mobile)

- update /su mount script (AIK-mobile)

- fix aik shortcut execution on Nougat shell (doesn't allow cross-device symlinks to work anymore) (AIK-mobile)

- update mkbootimg, unpackbootimg and mkbootfs binaries from my repos

- update file binary (5.29-git) (AIK-mobile)

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

- update xz binary (5.2.3) (AIK-mobile)

- update lz4 binary (1.7.5)

- add --help argument to aik shortcut (AIK-mobile) and all .sh scripts

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

- add elf, loki and mtk support (per the above changelog)

- add /system/system (Pixel) and basic Magisk (installs to /magisk/aik-mobile/system/bin) support to installer and aik shortcut (AIK-mobile)

More on my own build changes in the commits here: https://github.com/osm0sis/mkbootimg; https://github.com/osm0sis/mkbootfs; https://github.com/osm0sis/unpackelf; https://github.com/osm0sis/mkmtkhdr; https://github.com/osm0sis/lokitool; 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.