[Android Software Development] osm0sis:
I'm very pleased to announce AIK-mobile now supports being run from within a file explorer app (also known as a sourced execution; using the . or source command). This previously wasn't known possible due to limitations of Android's specific fork of mksh (MirBSD Korn Shell) not even conforming to the usual mksh methods, but thanks to @Lanchon getting the wheels turning I figured out a workaround! Now that this is possible I've also added support for the script auto-selecting the first found .img in its working directory (excluding image-new.img) so basic unpack/edit/repack can be accomplished on mobile in a few taps without any command-line. :D

All you have to do is use a file explorer app that supports script execution (I prefer FX File Explorer, which also has a nice built-in text editor), copy the target .img to /data/local/AIK-mobile and execute the unpackimg.sh script from within the app. You can long-tap the script output to review and then when you return from the execution dialog split_img and ramdisk are available for use in the text editor, and repackimg.sh and cleanup.sh are just another few taps away. You can even easily add command-line options to the execution of repackimg.sh for --original or --level support all without ever seeing an actual shell command prompt. 🙌

Also, long requested, AIK-mobile and AIK-Linux are now up on GitHub as branches in my Android Image Kitchen repo, so we can all track the script changes more easily. In other related news, now that I've got sourced execution working like this, I've relaunched my old "Flashify Script zip" as "Flashlt v2.0" to provide both the recovery flashable zip for image flashing, as well as an AIK-mobile-style /data/local script which can flash an image and also be used to dump an image from boot, recovery or radio/modem partitions on EMMC and MTD devices. This is now available in my Odds and Ends thread. Pretty much everything you could need for image editing on-the-go. (y)

Here are some screenshots showing the new AIK-mobile in action:

Album Link

This took a fair amount of my time off this week, so if you like the progress I'm making on this project, or enjoy anything else I've done on xda, please do hit the donate link from my profile. Thanks for your support!

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

- Work around lack of $BASH_SOURCE-style script name discovery for Android's mksh to allow sourced (. or source command prefix) execution of the scripts, e.g. from a File Explorer app. (AIK-mobile)

- Fix detection of path with linked (or sourced) execution (thanks Lanchon).

- When no file name is supplied use the first one found in the working directory to allow avoiding the shell entirely when executing within a File Explorer.

- Fix sudo root ramdisk detection on some distros. (AIK-Linux)

- Fix sudo root ramdisk cleanup from within unpackimg. (AIK-Linux)

- Update busybox binary (1.24.2) with the latest official patches and fixes from my repo. (AIK-mobile)

More on my own build changes in the commits here: https://github.com/osm0sis/android-busybox-ndk.

Installation information and details on each edition can be found in 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.