[Android Software/Hacking General [Developers Only]] osm0sis:
A few updates!

First, nano has another official update. :good:

I've also added a new 00-resizesystem.sh addon.d script to the OP to help devices where the /system partition has been resized to hold larger ROM/GApps packages, but the ROM in use has system.dat format zips with no resizing functionality, so the extra space would get lost in a ROM delta flash, breaking things when GApps attempted to restore. My script determines the system partition location on any emmc device, then resizes the system partition to its maximum before the GApps restore occurs. :cowboy:

Next, I'm pleased to report that with the gappsintegrator v9 update all known issues are resolved! Massive thanks to [MENTION=5849464]mikeoswego[/MENTION] for his work on the major fixes for the packages.xml entry edits (resolving the longstanding issue of multiple apps redownloading during the integration process - turns out because their entries were getting eaten up with the one prior), and implementing the runtime-permissions.xml backup/restore functionality for the workaround blacklisted apps (so that user apps retain their granted permissions after a forcerebuild), as well as his time testing and problem-solving with me on Hangouts. There is a forced reboot during the restore process so don't be alarmed. :highfive:

I then combined my rough draft version of the runtime-permissions.xml backup/restore with his and fixed a few other outstanding issues like the date being incorrect at times in the log, etc. and I also raised the timeout for writing to sdcard to 900 seconds (15 minutes) since I had reports it was writing to /data/local on older devices. :D

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!

UPDATE-nano.Terminal.Editor.v2.6.3-signed.zip:

- update to latest nano official source.

gappsintegrator: v9 - improve Marshmallow breakage workaround, fix optimization, many fixes/improvements:

- backup/restore runtime-permissions.xml (thanks [MENTION=5849464]mikeoswego[/MENTION]) to a specific subdirectory and simplify check/naming

- add single-line packages.xml entry fix (thanks [MENTION=5849464]mikeoswego[/MENTION]) to Lollipop, fixing multiple app redownloads during optimizations

- alphabetize /data/app filter for possible future similar OEM stock app additions (ex. Motorola, thanks [MENTION=5849464]mikeoswego[/MENTION]), and Marshmallow updated blacklist (thanks [MENTION=5849464]mikeoswego[/MENTION]) for breakage workaround

- increase sdcard writability wait limit to 15 minutes to better accomodate slower devices

- rewrite use of busybox for broken/limited toolbox implementations of chmod (thanks [MENTION=5849464]mikeoswego[/MENTION]) into a compatibility check using busybox as a fallback

- wait for date to stop being epoch (Jan 1 1970) during boot to record earliest accurate processing start time, and ensure accurate timestamps for filesystem operations

- add basename, cut and dirname to basic script environment checks

https://github.com/osm0sis/gappsintegrator/commit/b1e9b42b48fd3eeba13eadc421c238ba4fd82bc4

also merged/cherry-picked Minor updates and Major updates from [MENTION=5849464]mikeoswego[/MENTION].

Download via GitHub's raw copy of the latest version, or extract it from the repo zip. :good:

AK2 also saw a new minor commit this week following a conversation with [MENTION=3639717]Perseus[/MENTION], and I continue to pick away at a major update for AIK. ;)