ported from htc one max release sources-t6ul-3.4.10-g6180948