recovery: match API to AOSP

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