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:
parent
1bb29d8296
commit
dd610eb720
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue