For research purposes, we are developing an app/widget to track in the background the touch gestures that are made using the phone, regardless of the application. It is possible to do it? We were looking for ways to do it but we only found ways to track the gestures only inside an app.