I own a Galaxy S4 I9505 device.
Earlier I was running the stock based Custom ROM (Imperium 16.1, Android 4.4.2) on my S4 and there was no problem at all. That ROM gave me supreme performance, stability and battery life.
And then official Lollipop (5.0.1) was released by Samsung. I flashed the latest stock based custom Lollipop ROM on my device and the problem started.
Now what happens is ... **after I flash a ROM everything is working fine. But then after some uncertain period all the sensors stop working on the device.
Sometimes the issue is resolved by a simple restart, at times I have to clear the Cache and sometimes I have to clear the Cache and Dalvik Cache**.
All the sensors start working and suddenly after some time, all the sensors stop working.
I have tried all stock based Custom Lollipop ROMs and even AOSP based Lollipop ROMs, but this problem is persistent with all the Lollipop ROMS.
I am not able to decipher if this is a Software or Hardware issue.
Can anyone help me on this? Has anyone faced this type of problem?