
清空记录
历史记录
取消
清空记录
历史记录

<waterfallAreaCompressionSizeWhenHorzontal>0</waterfallAreaCompressionSizeWhenHorzontal> <!-- Indicates orientation of the built-in screen --> <!-- 0: Orientation::UNSPECIFIED --> <!-- 1: Orientation::VERTICAL 2: Orientation::HORIZONTAL--> <!-- 3: Orientation::REVERSE_VERTICAL 4: Orientation::REVERSE_HORIZONTAL --> <buildInDefaultOrientation>2</buildInDefaultOrientation>
修改buildInDefaultOrientation参数值为:2
./build.sh --product-name purple_pi_oh --ccache --no-prebuilt-sdk
依次选择对应的镜像即可,如下图所示:
最后点击执行,如下图所示:
方法二-推送文件方式修改
将修改好的文件推送到开发板系统中也可以实现屏幕的旋转功能,命令如下:
#挂载⽂件系统,将设备改为可读可写 hdc shell mount -o remount,rw / #xxx为本地的display_manager_config.xml hdc file send xxx /system/etc/window/resources/ #重启设备 hdc shell reboot
