a7xelte: disable fingerprint sensor when screen is off
authorChristian Abegg <christian.abegg@gmail.com>
Sat, 24 Feb 2018 22:22:30 +0000 (23:22 +0100)
committerSourajit Karmakar <sourajit.karmakar@gmail.com>
Tue, 7 Jul 2020 15:00:08 +0000 (11:00 -0400)
commite04b0d452746cd5c9e39f57ef8062f01a9ca10ad
tree36f622ed1eb896d89c64aee4a434993e1d09b5f2
parent4a17e4686364560db1d8f79707bb6a8e6fb0a575
a7xelte: disable fingerprint sensor when screen is off

When the screen is off, the fingerprint sensor scans every second for
a finger which causes unwanted battery drain. Disabling the sensor
when the device is sleeping extends the standby time by a factor of
about 2-3x.
As the fingerprint reader is also the power button, this doesn't
hinder its usage.

Change-Id: I347f5b060723ca663c683786ea10c3efe8a18782
Ref: BUGBASH-1422
overlay/frameworks/base/packages/SystemUI/res/values/lineage_config.xml [new file with mode: 0644]