by Matthew Lawrence
Version 1 (November 17, 2017)
Download (103 downloads)
This will prevent your phone's screen from turning on when you insert/remove your wired headphones.
This is the first flow I've made and can only confirm it to be working on Samsung Galaxy S7. There's probably a more elegant solution but it appears to work.