Prevent apps from affecting the scanner via hook.