diff --git a/power-libperfmgr/aidl/Power.cpp b/power-libperfmgr/aidl/Power.cpp index 5d2c9f5..bf07d7d 100644 --- a/power-libperfmgr/aidl/Power.cpp +++ b/power-libperfmgr/aidl/Power.cpp @@ -155,8 +155,8 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) { ndk::ScopedAStatus Power::isModeSupported(Mode type, bool *_aidl_return) { bool supported = HintManager::GetInstance()->IsHintSupported(toString(type)); - // LOW_POWER handled insides PowerHAL specifically - if (type == Mode::LOW_POWER) { + // LOW_POWER and DOUBLE_TAP_TO_WAKE handled insides PowerHAL specifically + if (type == Mode::LOW_POWER || type == Mode::DOUBLE_TAP_TO_WAKE) { supported = true; } LOG(INFO) << "Power mode " << toString(type) << " isModeSupported: " << supported;