Tasker lets you intercept Samsung S Pen gestures to do whatever you want
Samsung’s S Pen is a powerful tool for getting work done, whether you’re jotting down notes, marking up documents, or using gestures within apps. Wouldn’t it be cool if you could customize what the gestures do? With Tasker, you can.
João Dias, the developer of Tasker, discovered how to intercept the gesture events triggered by the S Pen. Using Tasker, users can choose from more than 350 actions to customize the S Pen experience like never before. For example, you can turn on your smart lights, toggle Do Not Disturb mode, put your device to sleep, and much more.
Here’s a video from the developer that demonstrates some of what you can do once you hook up S Pen gestures to Tasker:
Tasker is able to intercept S Pen events once it’s granted the READ_LOGS permission, a permission that allows an app to read Android’s system logs. In order to grant Tasker this permission, you need to do so manually via ADB. Once you download Tasker, you can create a profile using an S Pen gesture entry in the system log as the context. Then you can then tie a series of actions (or a single action) to that context. Since Tasker can be programmed to do basically anything, the customization possibilities are limitless.
Note that only Samsung devices with Bluetooth-enabled S Pens support gestures, which include the Galaxy Note 9 and up and the Galaxy Tab S6 and later. Also, your device needs to be running the stock firmware, as custom ROMs likely won’t send the exact same messages in the logcat for each gesture. Lastly, Tasker is limited to the gestures you can configure in the “Air Gestures” settings on the device.
Tasker is available from the Google Play Store for $3.49, though you can download a 7-day trial version from the developer’s website.