[Sony Xperia XZ1]Remapping camera button
Try this:
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper
It works on my Xperia x compact. It's just a workaround. On my phone the problem is with camera button that was deasappeared after the rom unlocking aldo with drm fixed in...