Here's a fix for soft buttons on Samsung Galaxy S4 i9505.
My phone got wet in the jeans (riding moto in rain). After taking it apart and have it sit in rice for a night, the soft buttons were still not working and the gyroscope sensor would fail the test (pictures all upside down, random...