[automerger skipped] Replace direct pid writes with setting task profiles am: 6c245b42f5 am: 8e5f470c97 -s ours am: 66faa3aba1 -s ours

am skip reason: Change-Id I3e06e25a75cf79674d8381b3356c64790fd5a597 with SHA-1 7a5ff88143 is in history

Change-Id: If871b62ecb9aef93715507794fad9ae8266869f8