There is no opt-out inside a StrictMode tree. To exclude code, move the StrictMode boundary lower in the tree.