1. A method of handling a patch on an electronic device, the method comprising: receiving, at a communications interface of the electronic device, a forward patch and a reverse index file, the reverse index file identifying regions of similarity between an old binary image and a new binary image; generating, at a processor of the electronic device, a reverse patch from the new binary image, the old binary image and the reverse index file; and applying, at the processor of the electronic device, the reverse patch to the new binary image to obtain at least a portion of the old binary image.