Ported from latest xperias.