diff options
| author | razorloves <razorloves@gmail.com> | 2017-07-03 23:29:40 -0500 |
|---|---|---|
| committer | LorDClockaN <lordclockan@gmail.com> | 2017-07-21 20:09:11 +0200 |
| commit | ce9fe95b44e1006bd2c2db20e7aa448d7c593d7d (patch) | |
| tree | 299c0d35209f467e95129105a644066e05b27258 | |
| parent | d54c41b8b2c40c82dfdf88a21b3bbb6ecfb6fe21 (diff) | |
hammerhead: lower the slow charging threshold
The default slow charge threshold in the framework is set to 5000000
microwatts. This assumes the devices oem wall charger output is 1a @ 5v.
The oem lg nexus 5 wall charger can only output 1.1a @ 4.8v at it's max.
Then that is further reduced to around 1a @ 4.3v by the charging driver
in the kernel. This results in the lock screen incorrectly displaying
"Charging slowly" all the time.
Prior to nougat the threshold was based on microampers and was set to
1000000, which the charger/device could easily do, resulting in the lock
screen displaying "Charging".
This change lowers the threshold from 5000000 to 4200000 microwatts so
that wall chargers show "Charging" on the lock screen, returning it to
stock marshmallow behavior.
Note: This threshold only affects what is displayed on the lock sceen.
It does not affect actual charging current.
BUGBASH-39
Change-Id: Ib8f0636864d4ca6be536ec418cee9809f197488d
| -rw-r--r-- | overlay/frameworks/base/packages/Keyguard/res/values/config.xml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/overlay/frameworks/base/packages/Keyguard/res/values/config.xml b/overlay/frameworks/base/packages/Keyguard/res/values/config.xml new file mode 100644 index 0000000..4e92cc7 --- /dev/null +++ b/overlay/frameworks/base/packages/Keyguard/res/values/config.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2009, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<!-- These resources are around just to allow their values to be customized --> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <!-- Threshold in micro watts below which a charger is rated as "slow"; 1A @ 4.2V --> + <integer name="config_chargingSlowlyThreshold">4200000</integer> + +</resources> |
