Yeah, I'm fairly certain you could run it on an android device using termux.
You'll likely need to root the phone to get the OS not to kill the termux process due to idleness though.