ADB更改Android设备屏幕显示方向

您所在的位置:网站首页 怎么强行旋转屏幕 ADB更改Android设备屏幕显示方向

ADB更改Android设备屏幕显示方向

2024-06-26 08:57| 来源: 网络整理| 查看: 265

adb shell settings put system accelerometer_rotation 0  关闭自动旋转屏幕 

adb shell settings put system user_rotation 3  调整显示方向  可选 0 1 2 3 

user_rotation Values:

0 # Protrait 1 # Landscape 2 # Protrait Reversed 3 # Landscape Reversed

accelerometer_rotation Values:

0 # Stay in the current rotation 1 # Rotate the content of the screen import android.provider.Settings; // You can get ContentResolver from the Context Settings.System.putInt(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION, 0); Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, 3);

使用ADB更改Android设备方向 | (1r1g.com)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3