content: A factory reset basically dumps the /data partition and rebuilds it from the /system partition. If a bad app were to put itself in the /system partition, then a factory reset wouldn't get rid of it, only a complete ROM reinstall would, since that overwrites every partition the phone uses.