There’s a discussion already on integrating the camera’s motion sensor. It did work in ST’s testing, but it’s not ready to be released yet due to the Samsung Techwin app also being installed on the phone. This discussion goes into some detail, specifically post #81: