Replace direct pid writes with setting task profiles am: 6c245b42f5 am: 8e5f470c97 am: f18936c451

Change-Id: I4fda3485efd1cc91b3ec0d89bdaeed919b639b06