You need to have at least one hacked switch somewhere in the process (either yours or your friend’s) if you want to manipulate save games.
If you just want to hack in pokemon but don’t need to modify your save, you always could trade over the internet with a Sysbot.