CodePudding user response:
Android output resolution is also unable to change the dynamic, now can't modify the command, only by modifying the kernel code set fixed resolution or their best by EDID output resolution,CodePudding user response:
Does not support dynamic switchCodePudding user response:
WindowManagerService. JavaCodePudding user response:
WindowManagerService. JavaPrivate void readForcedDisplayPropertiesLocked (final DisplayContent DisplayContent) {
String sizeStr=Settings. Global. Get String (mContext. GetContentResolver (), Settings. Global. DISPLAY_SIZE_FORCED);
DisplayContent. UpdateBaseDisplayMetrics (width, height, displayContent mBaseDisplayDensity);
Is actually the adb shell wm size 1280 x1600
The adb shell wm size 1000 x1600
The adb shell wm size 2560 x1600
The adb shell wm density reset
The adb command execution function