recovery: match API to AOSP

Change-Id: I96e910e1fdb27027c775431de27364b70b83865f
See: http://review.cyanogenmod.org/#/c/52047/