[Android Software Development] osm0sis:
Here's a fairly rapid-fire release to follow up on the major release of AIK v3.0, fixing a couple quick things since I want to be able to rest on my laurels for a bit after this! ;)

Most notably this adds the missing SIN support to macOS in AIK-Linux, with many thanks to [MENTION=4120742]munjeni[/MENTION] for the quick turnaround. It also works around the more difficult recovery execution of AIK-mobile due to it now using su, which of course doesn't exist in recovery; this will restore compatibility with any TWRP themes which use it for repacking recovery images, provided they are using the provided setup script snippet.

I have now allowed unpacking/repacking images without either a ramdisk or zImage since Huawei Treble devices have started this practice using an otherwise normal AOSP format. Lastly I have also reluctantly added a --nosudo mode to AIK-Linux to attempt to unpack/repack without sudo using the same cpio trick as Windows to ensure a working ramdisk, forcing all ownership in the repacked ramdisk as root:root. Please note this is not best practice, there is potential for file ownership from OEM ramdisks to not always be root:root, and some ramdisks simply will not unpack correctly as user on Linux, so the default will remain sudo, and people should adapt their ramdisk file editing practices accordingly.

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'd noticed the download rates and counts were pretty much cut in half on the first versions served from the DevDB.

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 v3.1:

- allow unpack/repack of AOSP and U-Boot images with no ramdisk, and AOSP images with no zImage

AIK-mobile v3.1 + AIK-Linux v3.1:

- remove old files before installation to ensure no deprecated files are present (AIK-mobile)

- fix recovery execution of scripts (with /system mounted - see instructions) by detecting if booted, thus whether to use su or not (AIK-mobile)

- do not show cleanup message if there is an error removing files

- add kernel_dump binaries for Sony SIN support to macOS (AIK-Linux)

- increase empty make_ext4fs .img size to 64mb to accomodate very large ramdisks (AIK-mobile)

- fix exit vs. return in some places (AIK-mobile)

- fix error catching from repack commands

- add --nosudo to attempt to avoid using sudo for unpack/repack (AIK-Linux)

- allow unpack/repack of AOSP and U-Boot images with no ramdisk, and AOSP images with no zImage

- fix errors when attempting repack with no files (AIK-mobile)

- fix installation with Magisk v15+ (AIK-mobile)

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.