提高音量键接听 Whatsapp 语音电话

Volume up key to answer Whatsapp voice call

我想做的是在我的 Raspberry Pi 运行 [上使用 Tasker(或其他任何东西)使用音量键(USB 听筒 phone)接听 whatsapp 语音电话 Android pie,我已经按照以下步骤操作,swape 工作正常,但是当来电响铃时,它似乎不起作用并且无法做到这一点,希望有人有办法解决这个问题,谢谢提前!

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

我能够使用 Button Mapper 应用程序解决此问题,我将音量键与耳机挂钩键码键绑定在一起。