sdm660-common: power-libperfmgr: 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
This commit is contained in:
LuK1337 2019-12-07 23:51:29 +01:00 committed by OdSazib
parent 1bb29d8296
commit dd610eb720
No known key found for this signature in database
GPG key ID: 0954440B60470871

View file

@ -144,7 +144,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: