Port of https://github.com/areshinakya/android_device_sony_kumquat/commit/9c2647b6969368187e4fd265a0a070799937b81d