Add commands to modify settings, ref #11

mz-dev
Zhuang Ma 8 years ago
parent ab1b4c9581
commit 88817f2711
  1. 72
      README.en.md
  2. 72
      README.md

@ -73,6 +73,10 @@ Other languages: [:cn: Chinese](./README.md)
* [CPU Information](#cpu-information)
* [Memory Information](#memory-information)
* [More hardware and system properties](#more-hardware-and-system-properties)
* [Modify Settings](#modify-settings)
* [Resolution](#resolution)
* [Screen density](#screen-density-1)
* [Overscan](#overscan)
* [Utility functions](#utility-functions)
* [Screenshots](#screenshots)
* [Recording Screen](#recording-screen)
@ -1261,6 +1265,15 @@ Physical size: 1080x1920
The device's screen resolution is 1080px * 1920px.
If resolution has been changed by command, output may be:
```sh
Physical size: 1080x1920
Override size: 480x1024
```
It says that screen's original resolution is 1080px * 1920px, currently is 480px * 1024px.
### Screen density
command:
@ -1277,6 +1290,15 @@ Physical density: 420
The device screen density of 420dpi.
If screen density has been changed by command, output may be:
```sh
Physical density: 480
Override density: 160
```
It says that originla screen density is 480dpi, currently is 160dpi.
### Display Parameters
command:
@ -1573,6 +1595,56 @@ In output also includes some other useful information, they can also be `adb she
| dalvik.vm.heapsize | each application's memory cap |
| ro.sf.lcd_density | screen density |
## Modify Settings
### Resolution
command:
```sh
adb shell wm size 480x1024
```
It means change the resolution to 480px * 1024px.
Reset to original resolution:
```sh
adb shell wm size reset
```
### Screen density
command:
```sh
adb shell wm density 160
```
It means change the screen density to 160dpi.
Reset to original screen density:
```sh
adb shell wm density reset
```
### Overscan
command:
```sh
adb shell wm overscan 0,0,0,200
```
Four parameters are left, top, right and bottom margin pixels to the edge, command above means leave 200px in screen bottom clean.
Reset to original overscan:
```sh
adb shell wm overscan reset
```
## Utility functions
### Screenshots

@ -73,6 +73,10 @@ Other languages: [:gb: English](./README.en.md)
* [CPU 信息](#cpu-信息)
* [内存信息](#内存信息)
* [更多硬件与系统属性](#更多硬件与系统属性)
* [修改设置](#修改设置)
* [分辨率](#分辨率)
* [屏幕密度](#屏幕密度-1)
* [显示区域](#显示区域)
* [实用功能](#实用功能)
* [屏幕截图](#屏幕截图)
* [录制屏幕](#录制屏幕)
@ -1261,6 +1265,15 @@ Physical size: 1080x1920
该设备屏幕分辨率为 1080px * 1920px。
如果使用命令修改过,那输出可能是:
```sh
Physical size: 1080x1920
Override size: 480x1024
```
表明设备的屏幕分辨率原本是 1080px * 1920px,当前被修改为 480px * 1024px。
### 屏幕密度
命令:
@ -1277,6 +1290,15 @@ Physical density: 420
该设备屏幕密度为 420dpi。
如果使用命令修改过,那输出可能是:
```sh
Physical density: 480
Override density: 160
```
表明设备的屏幕密度原来是 480dpi,当前被修改为 160dpi。
### 显示屏参数
命令:
@ -1573,6 +1595,56 @@ adb shell cat /system/build.prop
| dalvik.vm.heapsize | 每个应用程序的内存上限 |
| ro.sf.lcd_density | 屏幕密度 |
## 修改设置
### 分辨率
命令:
```sh
adb shell wm size 480x1024
```
表示将分辨率修改为 480px * 1024px。
恢复原分辨率命令:
```sh
adb shell wm size reset
```
### 屏幕密度
命令:
```sh
adb shell wm density 160
```
表示将屏幕密度修改为 160dpi。
恢复原屏幕密度命令:
```sh
adb shell wm density reset
```
### 显示区域
命令:
```sh
adb shell wm overscan 0,0,0,200
```
四个数字分别表示距离左、上、右、下边缘的留白像素,以上命令表示将屏幕底部 200px 留白。
恢复原显示区域命令:
```sh
adb shell wm overscan reset
```
## 实用功能
### 屏幕截图

Loading…
Cancel
Save