what i'm trying to do is answering a whatsapp voice call with volume keys (usb handset phone) using Tasker (or anything else) on my Raspberry Pi running Android pie, i have followed the following step and the swape is working properly, but when the incoming call rings it doesn't seem to work and fails to do that, hope someone would have a way to solve this problem, thanks in advance!
Whatsapp Answer (6)
A1: [X] Play Ringtone [ Type:Notification Sound: Stream:5 ]
A2: Run Shell [ Command:input swipe 275 575 275 400 Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: ]
A3: Take Call
Profile: Answer (7)
Restore: no
Event: Volume Long Press [ Type:Volume Down Additional Time (Check Help):* ]
Enter: Whatsapp Answer (6)
A1: [X] Play Ringtone [ Type:Notification Sound: Stream:5 ]
A2: Run Shell [ Command:input swipe 275 575 275 400 Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: ]
A3: Take Call
I was able to resolve this problem using Button Mapper app, with which i've bind vol keys with headsethook keycode key.