Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
112 views
in Technique[技术] by (71.8m points)

android - How to change display resolution using ADB or programmatically?

I want to know, how to change display resolution and also refresh rate in Android Box or TV. I've tried using below script throught ADB. Lets say I want to change the display resolution from 1920x1080 to 1280x720:

wm size 1280x720
wm density 160

The resolution is successfully changed, but Android still reads resolution as 1920x1080, even after restart. As shown in the picture below :

screen_resolution_in_android_settings

Have I missed something or is there another method to change default screen resolution?

question from:https://stackoverflow.com/questions/66057045/how-to-change-display-resolution-using-adb-or-programmatically

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...