Fix android.process.media got killed when capture

android.process.media has a very low priority as Cached app in background.
When snapdragon camera using ContentResolver and do query/updating it will
promot to foreground priority, but there may have some race condition
that lmk in the progress to kill media, and AMS want set to foreground.
So, keep this process as foreground during the whole ActivityLife time,
by hold a query cursor onCreate and destory onStop.

CRs-Fixed: 984061
Change-Id: I530fddfa240030ad84dc09b599ad783f6a2f21e0
1 file changed