设置允许横竖屏

设置允许横竖屏

 

niming@ubuntu:/home/user/workspace2/niming/a33-v2.0/android/frameworks/base/packages/SystemUI$ git diff  16302c7bfc784761cd1cff15073e87111ce3cba6 1124b990b9d51b67f9a4c0560679627449ee976f
diff --git a/core/res/res/drawable-sw480dp-nodpi/default_wallpaper.jpg b/core/res/res/drawable-sw480dp-nodpi/default_wallpaper.jpg
new file mode 100644
index 0000000..6bb0b5e
Binary files /dev/null and b/core/res/res/drawable-sw480dp-nodpi/default_wallpaper.jpg differ
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index d3aa980..9ed6b82 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -374,7 +374,7 @@
 
     <!-- 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>
 
     <!-- If true, the direction rotation is applied to get to an application's requested
          orientation is reversed.  Normally, the model is that landscape is
@@ -585,7 +585,7 @@
     <bool name="config_enableLockBeforeUnlockScreen">false</bool>
 
     <!-- Disable lockscreen rotation by default -->
-    <bool name="config_enableLockScreenRotation">false</bool>
+    <bool name="config_enableLockScreenRotation">true</bool>
 
     <!-- Enable lockscreen translucent decor by default -->
     <bool name="config_enableLockScreenTranslucentDecor">true</bool>

 

 

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值