I've been trying to get the camera to work on a bootloader locked and unrooted device, but haven't had much luck.
So far, I've noticed by running getprop that the key "vendor.camera.sensor.name.front" has the name of the configs in the vendor partition but there isn't any entry for the back camera ("vendor.camera.sensor.name.back"). The vendor partition's /etc/permissions folder also has an XML file called android.hardware.camera.front.xml but not android.hardware.camera.back.xml.
I'm trying to rule out as many software problems as possible before either sending the phone in for service or opening it up myself to check if the camera is connected physically. There is a mention of the phone's camera connector coming undone on the Sony forum, but I'm hoping that's not the case.
Phone Software Version: 1311-7920_52.1.A.3.137
File System Version: GENERIC_52.1.A.3.137
S1 Boot Version: 1310-7079_X_Boot_SDM845_LA2.0.1_Q_208
ETS Software Version: 1310-7474_4
Customization Version: 1313-4500_R1C
Rooting status: Never rooted
Bootloader: Never unlocked