简体   繁体   中英

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

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

I changed it to:

adb shell am display-size 800x480

and it worked

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM