Aint no way in H*LL an illegal immigrant/resident in Japan would or could even go into a Japanese DMV and get a Japanese drivers license. It would be a no brainer to not go in there.
If found out they were not on legal resident status, they would be stopped right at the DMV "uketsuke" information booth, politely told to wait over on the side for a few minutes <<"ちょっと此方を少々お待ちくださ">>and within a few minutes a Japanese police officer would be summoned to the DMV office, they would be detained, questioned, held in lock up with other visa overstayers or visa violators, and deported right straight out of Narita Airport probably within 48 hours, with a scarlet stamp on their passport disallowing them to enter Japan for another 10 years. They might not even be allowed to go back to their apartment to get their matters in order. And not a single Japanese would shed a tear about it.
LOL
That’s keeping it real Japanese style! Ya gotta love it!