mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-12-05 01:37:02 +00:00
16 lines
404 B
C++
16 lines
404 B
C++
#include <iostream>
|
|
#include <unistd.h>
|
|
#include <vendor/mediatek/hardware/mtkpower/1.0/IMtkPower.h>
|
|
|
|
using ::vendor::mediatek::hardware::mtkpower::V1_0::IMtkPower;
|
|
using ::android::sp;
|
|
|
|
int main(int argc, char **argv) {
|
|
auto svc = IMtkPower::getService();
|
|
if(svc == nullptr) {
|
|
std::cerr << "Failed getting IMtkPower" << std::endl;
|
|
return -1;
|
|
}
|
|
svc->mtkPowerHint(atoi(argv[1]), atoi(argv[2]));
|
|
}
|