22 lines
486 B
C++
22 lines
486 B
C++
/*
|
|
* ThermalActionShutdown.cpp
|
|
*
|
|
* Copyright (C) 2016 Spreadtrum Communications Inc.
|
|
*/
|
|
#include <cstdlib>
|
|
#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
|