I am sorry i will try to be clear. Here is what happens:
Auto-loki OFF:
After flashing a ROM, I have to flash loki-doki.zip (attached) and it works.
After flashing recovery I have to flash loki-recovery.zip (attached) and it works.
Auto-loki ON:
After flashing a ROM, the recovery correctly identifies that boot.img is not loki'd. The recovery then tries to loki-patch boot.img, but fails with the output
Code:
Checking if loki-fying is needed
/dev/block/platform/msm_sdcc.1/by-name/boot needs lokifying.
[+] loki_patch v2.1
E:[-] Failed to mmap aboot.
E:Error loki-ifying the recovery image.
After this, I flash loki-doki.zip, which loki-paches boot.img correctly without errors, and I can boot into the ROM.
After flashing your unified jflte recovery, the recovery correctly identifies that recovery.img is not loki'd. The recovery then tries to loki-patch recovery.img, but fails with the output
Code:
Checking if loki-fying is needed
/dev/block/platform/msm_sdcc.1/by-name/recovery needs lokifying.
[+] loki_patch v2.1
E:[-] Failed to mmap aboot.
E:Error loki-ifying the recovery image.
After this, I flash loki-recovery.zip which loki-paches recovery.img correctly without errors.
Both loki-doki.zip and loki-recovery.zip are doing the exact same thing that auto-loki tries to do, i.e., copy aboot.img and boot.img (or recovery.img) to a temporary folder, patch boot.img (or recovery.img) using aboot.img and reflash boot.img (or recovery.img) to the boot (or recovery) partition, and yet, the zips succeed and auto-loki fails.
Hope this helps. As i said, its not a big deal since i have the zips and flashing them is just one extra step..