by Leon Wilk
Toggle between specified resolution and default.
WARNING! Make sure USB debugging is enabled before use. If you use a silly resolution, you WILL lock yourself out (mess up the screen). If you do lock yourself out, connect over adb shell, and run:
su -c "wm size reset"
The flow asks for the new resolution on first run and saves it to file Automation/resolution.txt - you can edit or delete this file if you want a different resolution.