以Firefly AIO-3399C(AI)板為示例,其中~/proj/firefly-rk3399-Industry/為Android 7.1的源碼和bundle倉庫的工作目錄(http://wiki.t-firefly.com/AIO-3399C/compile_android_industry_firmware.html)
1、打開 ~/proj/firefly-rk3399-Industry/device/rockchip/rk3399/rk3399_firefly_aioc_ai_lvds/system.prop文件
2、修改ro.sf.fakerotation=false至ro.sf.fakerotation=true
3、修改ro.sf.hwrotation=0至ro.sf.hwrotation=90
4、保存並重新編譯生成img,更新固件即可
上述在LVDS接口液晶屏上得到了驗證。
但重力傳感器的自動旋轉還要繼續研究!