From 546a34227703c5f32a9e239961730559f2e63f08 Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Mon, 9 May 2022 15:32:56 +0800 Subject: [PATCH] powerstats: add NFC state residency stats Bug: 227402176 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: Iff54b2b1c4be531222c6b0dc601b2b6838ccd5af Signed-off-by: Darren Hsu --- powerstats/service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/powerstats/service.cpp b/powerstats/service.cpp index 159a427..5887942 100644 --- a/powerstats/service.cpp +++ b/powerstats/service.cpp @@ -63,6 +63,7 @@ int main() { addGs201CommonDataProviders(p); addDisplay(p); + addNFC(p, "/sys/devices/platform/10970000.hsi2c/i2c-4/i2c-st21nfc/power_stats"); const std::string instance = std::string() + PowerStats::descriptor + "/default"; binder_status_t status = AServiceManager_addService(p->asBinder().get(), instance.c_str());