Skip to content

Instantly share code, notes, and snippets.

@jack-webb
Created October 1, 2022 15:06
Show Gist options
  • Save jack-webb/8232d4acbe5adf4d6f44a12508e4b25c to your computer and use it in GitHub Desktop.
Save jack-webb/8232d4acbe5adf4d6f44a12508e4b25c to your computer and use it in GitHub Desktop.
Change screen configuration with ADB
# Emulate any screen config
adb shell wm size 3200x1440 # The pixel size of the display
adb shell wm density 288 # Called "Display Size" or "Screen Zoom" in Settings
adb shell settings put system font_scale 0.5 # Any floating point number, common values are between 0.85 and 1.3
# Reset screen config back to default
adb shell wm size reset
adb shell wm density reset
adb shell settings put system font_scale 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment