Error on running “adb shell wm density 240” for changing Android device density

狂风中的少年 提交于 2019-12-02 08:08:46

问题


I want to resize the screen on Android device. When I run the following commands:

adb shell wm density 240

or

adb shell wm size 800x480

I get error:

/system/bin/sh: wm: not found.

Why? How can I resolve that?

I should mention that my device is rooted and its model is Asus transformer TF101


回答1:


I changed it to:

adb shell am display-size 800x480

and it worked




回答2:


wm (Window Manager) is not available on Jelly Bean and older devices. for pre jelly bean use

adb shell am display-density 240

or

adb shell am display-size 800x480


来源:https://stackoverflow.com/questions/30839523/error-on-running-adb-shell-wm-density-240-for-changing-android-device-density

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!