To get default dimension:

adb shell wm size

To get default density:

adb shell wm density

To change dimension:

adb shell wm size XXX

To change density:

adb shell wm density XXX

Here is the list of few models:

MODEL				RESOLUTION	DPI	NOTES			ADDED
Samsung Galaxy S9		1080x2220	420	overridden by default	2021
Samsung Galaxy A20		1080x2340	420				2021
Huawei P30 Pro			1080x2340	480				2021

Nexus 6				1440x2560	560
Samsung Galaxy S6		1440x2560	640
Samsung Galaxy Tab S2 8		1536x2048	320
Sony Xperia Tablet Z		1920x1200	240

Sample usage:

adb shell wm size 1440x2560
adb shell wm density 200

To reset resolution:

adb shell wm size reset 

To reset density:

adb shell wm density reset

Or call them at once:

adb shell wm size-density reset reset

I used information from application I’ve attached >>>HERE< <<

sorsare

By sorsare

Leave a Reply

Your email address will not be published. Required fields are marked *




Enter Captcha Here :