I ask this question because I read somewhere that there was a Chinese smartphone with in-built malware which could not removed even by rooting.
(I searched the article everywhere but couldn't find it. So, no source. Sorry!)
Is there a possibility that any kind of malware or virus, that could harm your device and/or your privacy, will remain even after rooting your device?
EDIT: By rooting, I actually meant rooting and then flashing a custom ROM, i.e, reinstall android. Sorry for the confusion.
Can malware and viruses persist after this?