Add new APIs to get device state

No match.