- update apex mounting support for Android 11+
- check before mounts, fix persist mount on Virtual A/B
- fix apex mounts on fastboot boot'd TWRP
- support Android 12 .capex (compressed apex) files
- fix some (bad) OEM prop files including entries twice, use last entry like live system
- add useful mount debugging stderr for logs
- don't unmount any existing apex at start of flash
- support AMLogic devices where A-only sets slot=normal
- correct build.prop locations for getprop replacements
- support /metadata mount as a safer alternative to /persist
- refactor mount_all and umount_all
- use OLD_PATH for exceptions where busybox causes conflicts
- abort apex loop mounts early if failing
- work around loop mounts on newer Lineage-based recoveries by changing shell context
Include 'ro.system.product.cpu.abilist', 'ro.vendor.product.cpu.abilist' and 'ro.odm.product.cpu.abilist' in the search.
Set 'device_architecture' using 'ro.product.cpu.abilist' if it matches 'ro.system.product.cpu.abilist'.
If 'device_architecture' was not set, try to set it from another prop value.
- If exists, use 'ro.system.product.cpu.abilist'
- If exists, use 'ro.vendor.product.cpu.abilist'
- If exists, use 'ro.odm.product.cpu.abilist'
- Fall back to 'ro.product.cpu.abi' if it still exists.
- Give up and set it to what ever 'ro.product.cpu.abilist' returns.
- fix /system/bin/* execution on recoveries using LD_CONFIG_FILE
- add additional BOOTCLASSPATH entry for /apex mounts
- try to preserve a working /etc/fstab on AOSP Q-based recovery and newer
- fix sloppy/unpredictable `cmd && this || that` statements by being a bit more POSIX to avoid any potential issues when stdout/err are redirected
- do apex mounts before /system bind to always ensure a working underlying shell environment
- improve support for mounting dynamic/logical partitions from /dev/block/mapper
- don't rely on props if possible: determine dynamic/logical partitions from /dev/block/mapper presence, and detect slots more robustly using props and cmdline
- clean up all use of test