my Sony Xperia Z1 compact is shooting photos inside my pocket. I do not know what is triggering it there. Is it he physical button. How can I stop this?
I guess there is 2 possible situations :
1. Long press on camera button will wake up the phone and launch camera app and then it could shoot in your pocket
2. Power button turns on the screen and by mistake activate camera shortcut in your pocket
I don't know if camera button action can be easily changed.
For the shortcut there is a xposed module called "Screen Tweaks" which can disable camera shortcut