credo si possa fare anche prendendo il file boot.img dallo zip della rom che installi.
domanda: per applicare l' hack boot-cm4.1.9999-mem.img fate questi passaggi?
Copy the bootimg on to your sdcard.
Go into recovery console and enter the commands below.
mount sdcard (enter)
mount system (enter)
flash_image boot /sdcard/"nome nuovo boot.img" (enter)
reboot
bisogna fare anche qualcosa con il file mem.patch.txt che ho trovato nel thread di XDA?