Forked from https://android.googlesource.com/device/lge/hammerhead/