Change palm rejection enabling value
It looks like we cache the remote configuration value in some instances,
so we'll resolve this by changing the value we use to enable/disable it,
and also remove the propagation criteria and use "experiments" and
"launches" instead.
Bug: 239675985
Test: flashed device and confirmed that palm rejection is disabled
Change-Id: I9c764ed3402d9244e6dd5928d3ca8388491f7175
diff --git a/services/inputflinger/UnwantedInteractionBlocker.cpp b/services/inputflinger/UnwantedInteractionBlocker.cpp
index a8e495f..38e2c78 100644
--- a/services/inputflinger/UnwantedInteractionBlocker.cpp
+++ b/services/inputflinger/UnwantedInteractionBlocker.cpp
@@ -69,8 +69,8 @@
static bool isPalmRejectionEnabled() {
std::string value = toLower(
server_configurable_flags::GetServerConfigurableFlag(INPUT_NATIVE_BOOT,
- PALM_REJECTION_ENABLED, "false"));
- if (value == "true" || value == "1") {
+ PALM_REJECTION_ENABLED, "0"));
+ if (value == "1") {
return true;
}
return false;