This method will completely disable the camera button. You’ll need a rooted phone with Xposed framework installed.
Install the Xposed module Physical Button Music Control (PBMC), enable, reboot, open the module and say ‘no thanks’ when it offers to create a bunch of default chains on first launch.
- Tap the ‘+’ icon
- Tap ‘Advanced chain’.
- Give it a name, any name.
- Tap ‘Add key’
- Tap CHANGE and press the camera key.
- Check the box marked ‘Pressed’.
- Delay will be at 0ms, no need to change this.
- Tap OK.
- Slide “Vibration” to 0ms.
- Tap the bar marked “SCREEN OFF”
- Check the box marked “SCREEN ON”
- Tap OK.
- Make sure the very bottom option, “Cancel original key functions”, is checked.
- Tap the floppy disk icon to save settings.
- It should work immediately, so give it a try.