How to get the screen resolution of android mobile phone with adb command


#### 1. Common method:

    adb shell dumpsys window displays |head -n 3 The

output is similar to the following information:

    WINDOW MANAGER DISPLAY CONTENTS (dumpsys window displays)
      Display: mDisplayId=0
          init=1080x1920 440dpi cur=1080x1920 app=1080x1920 rng= 1080x1025-1920x1865

1080x1920 is the screen resolution.

#### 2. Qualcomm platform

    adb shell wm size

output:

    Physical size: 1080x1920

from: http://www.yinqisen.cn/blog-333.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326608013&siteId=291194637