Skip to content

Commit

Permalink
update overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Huawei-Dev committed Aug 11, 2017
1 parent 087cd98 commit 150831e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,21 @@
config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
<bool name="config_automatic_brightness_available">true</bool>

<!-- Indicate whether closing the lid causes the device to go to sleep and opening
it causes the device to wake up.
The default is false. -->
<bool name="config_lidControlsSleep">true</bool>

<!-- Indicate whether to allow the device to suspend when the screen is off
due to the proximity sensor. This resource should only be set to true
if the sensor HAL correctly handles the proximity sensor as a wake-up source.
Otherwise, the device may fail to wake out of suspend reliably.
The default is false. -->
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>

<!-- Define Google play service package for FRP-->
<string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string>

<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">4</integer>
Expand Down Expand Up @@ -246,6 +261,34 @@
config to 7. -->
<integer name="config_deviceHardwareWakeKeys">64</integer>

<!-- Control the behavior when the user long presses the home button
0 - Nothing
1 - Menu key
2 - Recent apps view in SystemUI
3 - Launch assist intent
4 - Voice Search
5 - In-app Search
This needs to match the constants in
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java-->

<integer name="config_longPressOnHomeBehavior">3</integer>

<!-- Control the behavior when the user long presses the app switch button.
0 - Nothing
1 - Menu key
2 - Recent apps view in SystemUI
3 - Launch assist intent
4 - Voice Search
5 - In-app Search
This needs to match the constants in
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java-->

<integer name="config_longPressOnAppSwitchBehavior">1</integer>

<!-- If enabled, capacitive keys will only light up when pressed.
Otherwise, the buttons will light up whenever the user interacts with the device -->
<bool name="config_buttonLightOnKeypressOnly">true</bool>

<!-- Indicate whether the SD card is accessible without removing the battery. -->
<bool name="config_batterySdCardAccessibility">true</bool>

Expand Down
2 changes: 2 additions & 0 deletions overlay/frameworks/base/core/res/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@
<value>1761</value>
<value>1948</value>
</array>
<allow-in-power-save package="com.google.android.gms" />
<allow-in-data-usage-save package="com.google.android.gms" />
</device>

0 comments on commit 150831e

Please sign in to comment.