How to permanently disable Avast

Under Settings → Troubleshooting there is an option to put Avast in Passive Mode.
It’ll just be an on demand scanner with no real-time protection.