- Previously, when running, mkboot recovery.img recovery, the second argument can't be stat when attempting to determine it's original size.
- I included a file check for the path to properly handle this situation which also allows the ability to unpack an image from a separate directory rather than having the image inside the project directory.
- Following commands have been tested to work for the second command argument:
mkboot /sdcard/recovery.img recoveryfolder
mkboot recovery.img recoveryfolder
mkboot ./recovery.img recoveryfolder
mkboot ~/sdcard/recovery.img recoveryfolder
- This project will work on linux. Confirmed working on Ubuntu 15.04.
I have added a wrapper script which manipulates the limited usage of a shebang that allows the real mkboot script to be executed by the bash binary from within the project directory.
This eliminates the previous requirement of having to place bash at /system/xbin.