DISCLAIMER: I will not be held liable for any damages or bricked head units as a result of any attempt to reproduce the following. Proceed at your own risk!
While messing around in ADB, I found where the screen resolution values are stored (allegedly) persistently:
Connect to vehicle via ADB...