I have been playing with some commands and wondered what would happen if I set a wrong screen resolution on my S7 Edge.
adb shell wm size 1080x1922
The answer is that you get stuck in a bootloop.
Now I'm wondering how to escape the bootloop.
Safe mode also bootloops.
Resetting it while booting didn't help:
adb shell wm size reset
Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)