port this: https://github.com/Agontuk/android_device_sony_kumquat/commit/da5b85098e3388cf9143f53228602f185546766c