frameworks/base: add SmartCover support

Change-Id: I0b2802b97692c2d1e49c9ce5dced0edd625c7ece
Signed-off-by: Roman Birg <roman@cyngn.com>