- usage: wm [subcommand] [options]
- wm size [reset|WxH|WdpxHdp]
- wm density [reset|DENSITY]
- wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]
- wm scaling [off|auto]
- wm screen-capture [userId] [true|false]
-
- wm size: return or override display size.
- width and height in pixels unless suffixed with 'dp'.
-
- wm density: override display density.
-
- wm overscan: set overscan area for display.
-
- wm scaling: set display scaling mode.
-
- wm screen-capture: enable/disable screen capture.
-
- wm dismiss-keyguard: dismiss the keyguard, prompting the user for auth if necessary.
-
- wm surface-trace: log surface commands to stdout in a binary format.
查看当前的分辨率:
wm size
设置当前输出分辨率:
wm size 1280x1024
adb root //提示read only filysystem时执行此命令获取root权限,
adb remount
adb pull /system/build.prop D:\
//在build.prop末尾添加一行 ro.sf.lcd_density=240
adb push D:\build.prop /system/
adb shell
cd /system/
chmod 644 build.prop //没有修改权限将导致手机起不来
Y:\xxxx\device\qcom\xxxx\system.prop
ro.sf.lcd_density=240 改这个值,然后重新编译system.img