Originally Posted by kooduquestchin
Thanks Sasank360 for the reply but that does not answer the original question.
I just want to know if doing a factory reset would wipe out all potential viruses/malware ?. My point is, are the setup files/folders protected somehow that viruses can't get in there ?, or not ?. I mean if a virus or some kind of malware was able to get in with those setup files or folders then a factory reset would be useless, right ?.
Perhaps I should have elaborated.
When you do factory reset you format DATA, CACHE, DALVIK partitions. System partition is untouched.
"""""" So if virus is on system partition then factory reset will be of no use. """""" - Answer to condition -1.
When You flash a stock ROM or any custom rom , the standard procedure includes wiping DATA , DALVIK , CACHE and SYSTEM partitions.
Since virus , if exists, resides only in above 4 partitions flashing stock/custom ROMs will remove that. Good luck.