PixelStat: Suez: Porting wireless charging am: 4c3d1f2369 am: 39d43e59fb

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881199

Change-Id: Ie73f417b438785249abf118faf888bd6912fc9b5
This commit is contained in:
Denny cy Lee 2021-06-29 01:48:41 +00:00 committed by Automerger Merge Worker
commit a02b90827d

View file

@ -40,14 +40,14 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
.EEPROMPath = "/dev/battery_history"};
const char *const kAudioUevent = "/devices/virtual/amcs/amcs";
const char *const kSSOCDetailsPath = "/sys/class/power_supply/battery/ssoc_details";
const struct UeventListener::UeventPaths ueventPaths = {
.AudioUevent = "/devices/virtual/amcs/amcs",
.WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id"};
int main() {
LOG(INFO) << "starting PixelStats";
UeventListener ueventListener(kAudioUevent, kSSOCDetailsPath);
UeventListener ueventListener(ueventPaths);
std::thread listenThread(&UeventListener::ListenForever, &ueventListener);
listenThread.detach();