How to disable flashlight in lock screen in Lollipop on Xcover 3? Since upgrading my Samsung Galaxy Xcover 3 phone to Android 5.1 Lollipop, I've noticed that the flashlight keeps getting turned on in my pocket. Apparently, pressing the "Xcover button" on the side of the phone will now toggle the flashlight on and off even in the lock screen.

I've tried to find some way to turn this behavior off, but I'm not seeing anything in the settings that would look promising. My attemps to Google for a solution just yield instructions for enabling flaslight access from the lock screen on versions prior to Lollipop.

Short of getting a more robust case for my phone, how can I keep my pockets from shining in the dark?
Today my girlfriend's father ask me how to solve it.
I've just written an lightweight app (7kB) which does nothing at all.

Download it from here and set as your XCover button app :)