sm7125: Fix FOD on AOD

Change-Id: I6ff4ac0397bfa9e9cdb7bf373b4316a8540cec5a
fourteen-wip
Simon1511 3 years ago
parent 990af8801b
commit 8338172f7d
  1. 3
      fingerprint/BiometricsFingerprint.cpp
  2. 40
      overlay/frameworks/base/core/res/res/values/config.xml
  3. 3
      overlay/frameworks/base/packages/SystemUI/res/values/config.xml
  4. 2
      overlay/frameworks/base/packages/SystemUI/res/values/lineage_config.xml

@ -121,7 +121,7 @@ Return<void> SehBiometricsFingerprint::onFingerDown(uint32_t, uint32_t, float, f
stringToVec(SEH_AOSP_FQNAME), SehBiometricsFingerprint::requestResult);
std::thread([this]() {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::this_thread::sleep_for(std::chrono::milliseconds(400));
if (!mPreviousBrightness.empty()) {
set(BRIGHTNESS_PATH, mPreviousBrightness);
mPreviousBrightness = "";
@ -134,7 +134,6 @@ Return<void> SehBiometricsFingerprint::onFingerUp() {
sehRequest(SEH_FINGER_STATE, SEH_PARAM_RELEASED,
stringToVec(SEH_AOSP_FQNAME), SehBiometricsFingerprint::requestResult);
set(TSP_CMD_PATH, "fod_enable,0");
return Void();
}

@ -828,7 +828,7 @@
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<!-- Whether the display blanks itself when transition from a doze to a non-doze state -->
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_displayBlanksAfterDoze">false</bool>
<!-- ComponentName of a dream to show whenever the system would otherwise have
gone to sleep. When the PowerManager is asked to go to sleep, it will instead
@ -844,46 +844,18 @@
turned off and the screen off animation has been performed. -->
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<!-- Power Management: Specifies whether to decouple the auto-suspend state of the
device from the display on/off state.
When false, autosuspend_disable() will be called before the display is turned on
and autosuspend_enable() will be called after the display is turned off.
This mode provides best compatibility for devices using legacy power management
features such as early suspend / late resume.
When true, autosuspend_display() and autosuspend_enable() will be called
independently of whether the display is being turned on or off. This mode
enables the power manager to suspend the application processor while the
display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to autosuspend.h for details.
-->
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">17</integer>
<!-- Power Management: Specifies whether to decouple the interactive state of the
device from the display on/off state.
When false, setInteractive(..., true) will be called before the display is turned on
and setInteractive(..., false) will be called after the display is turned off.
This mode provides best compatibility for devices that expect the interactive
state to be tied to the display state.
<!-- Allow automatic adjusting of the screen brightness while dozing in low power state. -->
<bool name="config_allowAutoBrightnessWhileDozing">true</bool>
When true, setInteractive(...) will be called independently of whether the display
is being turned on or off. This mode enables the power manager to reduce
clocks and disable the touch controller while the display is on.
<!-- Control whether the always on display mode is enabled by default. This value will be used
during initialization when the setting is still null. -->
<bool name="config_dozeAlwaysOnEnabled">true</bool>
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to power.h for details.
-->
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<!-- If true, the display will be shifted around in ambient mode. -->
<bool name="config_enableBurnInProtection">true</bool>

@ -20,9 +20,6 @@
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<!-- Doze: does this device support STATE_DOZE? -->
<bool name="doze_display_state_supported">true</bool>
<!-- The radius of the enrollment progress bar, in dp -->
<integer name="config_udfpsEnrollProgressBar" translatable="false">
70

@ -15,7 +15,7 @@
with a rear-mounted sensor want this, but certain devices have
the sensor embedded in the power key and listening all the time
causes a poor experience. -->
<bool name="config_fingerprintWakeAndUnlock">false</bool>
<bool name="config_fingerprintWakeAndUnlock">true</bool>
<!-- HBM type of UDFPS overlay.
0 - GLOBAL HBM

Loading…
Cancel
Save