1. 程式人生 > >[Android][FWK]支援轉屏屬性設定

[Android][FWK]支援轉屏屬性設定

支援轉屏屬性設定:

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下,再重啟手機。