'Sony headphones - how to programmatically start quick attention mode

I have Sony headphones WH-1000XM3 and I like the functionality of being able to hear suroundings when touching the right earpiece,but sometimes I turn the functionality off and setup on app takes time, sometimes I want it for longer time and pressing head is not comfortable.

Is there a way I can connect to headphones and programatically start this feature, for example some simple app/widget with turning on off that function from connected phone?

For starters maybe how could I listen to the communication between phone and headphones when touching the button. Maybe its not possible to initiate that mode just from phone, but there is no hardware button, its somehow programmed in headphones.

Do you have some suggestions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source