I have an issue with CM11 on my Sony. When I enable device encryption, all sensors turn off.
Wiping /data partition makes them work again.
So I guess this is due to permission or config issue below /data.
Can you tell me what config files Android creates below /data that controls the sensors?
Maybe I can find manually a config file that triggers this bug after encrypting...