After entering wm size 1920x1080 in terminal I was unable to reset this setting.

Now I have TWRP running and no information about how wm store its parameters in memory. Using adb is not possible (for adb shell wm size reset) as I cannot unlock phone (nor with usb keyboard nor with usb mouse)

So the quiestion is: how to reset changes of wm command or unlock a phone with usb keyboard or mouse (graphical key)?

  • Adb commands don't need the lock screen to be unlocked to work.
    – Firelord
    Feb 16, 2021 at 18:21

1 Answer 1


I found a solution. Type in console:

wm size reset

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .