If you literally mean "legal," I can't imagine that spoofing an iPhone is illegal. (And having been a lawyer, I have a pretty good imagination in that arena.)