applying recovery keys patch from http://review.cyanogenmod.org/#/c/62877/