通过ADB命令可控制手机屏幕旋转设置。"adb shell settings put system accelerometer_rotation 0"用于关闭自动旋转功能,"adb shell settings put system user_rotation X"可手动设置显示方向(X为0-3的数值,对应不同方向)。这两个命令组合使用可实现屏幕方向的固定控制。
adb shell settings put system accelerometer_rotation 0 # 关闭自动旋转屏幕 adb shell settings put system user_rotation 3 # 调整显示方向 可选 0 1 2 3