Cleanup and update recovery_keys.c from CyanogenMod