A friend who is in prison wants me to try to get him the third stimulus check so does he need to file 2020 taxes for that? Am I legally allowed to do it for him?

I don't want to get in any trouble so I want to make sure it's ok before I do anything. Honestly, I'm at a loss as how to help him get the next check and Google didn't help me too much.