summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-12-07 23:51:29 +0100
committerLuK1337 <priv.luk@gmail.com>2019-12-07 23:54:35 +0100
commit0db671a26287909fd2a866bcac07268bfb696d22 (patch)
treee6f31880f6cf56975cdbc3aa929ee37725343dee
parent6e8e0911dbd5e75e9931c5e175e19daf5f35bf61 (diff)
downloadvendor_qcom_opensource_power-lineage-17.0.zip
vendor_qcom_opensource_power-lineage-17.0.tar.gz
vendor_qcom_opensource_power-lineage-17.0.tar.bz2
power: Follow symlinks when writing to dt2w toggle pathlineage-17.0
* Some devices tend to symlink touchpanel related toggles to common path due to having to deal with different panels. Change-Id: I429e4c5acfbcd3ff26a019f919fbe880692160bd
-rw-r--r--Power.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Power.cpp b/Power.cpp
index ba8af81..4f0d757 100644
--- a/Power.cpp
+++ b/Power.cpp
@@ -71,7 +71,7 @@ Return<void> Power::setFeature(Feature feature, bool activate) {
switch (feature) {
#ifdef TAP_TO_WAKE_NODE
case Feature::POWER_FEATURE_DOUBLE_TAP_TO_WAKE:
- ::android::base::WriteStringToFile(activate ? "1" : "0", TAP_TO_WAKE_NODE);
+ ::android::base::WriteStringToFile(activate ? "1" : "0", TAP_TO_WAKE_NODE, true);
break;
#endif
default: