/* * ThermalActionShutdown.cpp * * Copyright (C) 2016 Spreadtrum Communications Inc. */ #include #include "ThermalActionShutdown.h" #include "alog.h" #undef LOG_TAG #define LOG_TAG "ThermalActionShutdown" namespace android { void ThermalActionShutdown::doAction() { ALOGI("do,===>%s, mArg:%s, mFileNode:%s", mDevice.c_str(), mArg.c_str(), mFileNode.c_str()); system("poweroff"); //property_set(ANDROID_RB_PROPERTY, "shutdown"); } }; // namespace android