[Android][FWK]支持转屏属性设置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/champwang/article/details/81164907

支持转屏属性设置:

platform/frameworks/base / core/res/res/values/config.xml

     <!-- If true, the screen can be rotated via the accelerometer in all 4
          rotations as the default behavior. -->
-    <bool name="config_allowAllRotations">false</bool>
+    <bool name="config_allowAllRotations">true</bool>

修改后,重新编译,    
./mk project_name mm frameworks/base/core/res,
再push生成的 framework-res.apk 到手机的system/framework下,再重启手机。   

猜你喜欢

转载自blog.csdn.net/champwang/article/details/81164907