power: Follow symlinks when writing to dt2w toggle path
* Some devices tend to symlink touchpanel related toggles
to common path due to having to deal with different panels.
Change-Id: I429e4c5acfbcd3ff26a019f919fbe880692160bd
diff --git a/Power.cpp b/Power.cpp
index ba8af81..4f0d757 100644
--- a/Power.cpp
+++ b/Power.cpp
@@ -71,7 +71,7 @@
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: