Suspending screen capture and recording and screen mirroring functions on mobile devices