c/p from https://github.com/OpenSEMC/android_device_sony_fuji-common/commit/9234888682efb9bf75c52b8c449fc2007ae3f2ec