I am providing an app which can log light sensor data of a smartphone. Following modification of the app is required
1. In the app, light sensor data is being saved. You need to deploy following logic.
If Light sensor data > 500, save 1
If Light sensor data<500 save 0
2. If saved value matches with a certain pattern like 11100011 then the watch will shut down.
Remember, you have to provide the shut down function correctly. I may need to test the app in a rooted phone to get all the permission for shutting down the phone programmatically.
I can even provide the code that can measure the light sensor data and check for a certain pattern. Just the shut down function is needed to add in the app.