Well in the new Sonic they're made him the police off to arrest Shadow.
Look I'm probably too old to give a shit about this anymore, but god damn do I hate how out of character movie Sonic is.
Sonic is an anarchist. He hates cops, that's true of all the mainline games.
Even that anime from the 2000s got that right.
Movie Sonic is a wimpy uncool dweeb that want's to be a cop. I couldn't think of anything more not-Sonic than that.
And if this is anything like the game universe then Shadow will join the army afterwards