frameworks/base: add SmartCover support

config part:

https://gerrit.nameless-rom.org/#/c/7597/

Change-Id: I1e196eeffd0b83d7445c2394648649939b67c6f4