Pixelstats: porting from p21 am: f9c2f03287

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

Change-Id: Ic372c7a12d5885a8fa669c779e8de73a44a8161f
This commit is contained in:
Denny cy Lee 2022-03-15 03:16:24 +00:00 committed by Automerger Merge Worker
commit 8073afbf9f
2 changed files with 6 additions and 1 deletions

View file

@ -214,6 +214,8 @@ on init
chown system system /sys/devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom
chown system system /sys/devices/platform/10970000.hsi2c/i2c-4/4-0050/eeprom
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom
chown system system /dev/battery_history
chmod 0644 /dev/battery_history
# Modem temperature driver
chown radio system /sys/devices/platform/cp-tm1/cp_temp

View file

@ -35,12 +35,14 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
.SlowioWriteCntPath = UFSHC_PATH(slowio_write_cnt),
.SlowioUnmapCntPath = UFSHC_PATH(slowio_unmap_cnt),
.SlowioSyncCntPath = UFSHC_PATH(slowio_sync_cnt),
.CycleCountBinsPath = "/sys/class/power_supply/battery/cycle_counts",
.UFSLifetimeA = UFSHC_PATH(health_descriptor/life_time_estimation_a),
.UFSLifetimeB = UFSHC_PATH(health_descriptor/life_time_estimation_b),
.UFSLifetimeC = UFSHC_PATH(health_descriptor/life_time_estimation_c),
.F2fsStatsPath = "/sys/fs/f2fs/",
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
.EEPROMPath = "/dev/battery_history",
.SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp",
.SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion",
.SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat",
@ -57,7 +59,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
const struct UeventListener::UeventPaths ueventPaths = {
.AudioUevent = "/devices/virtual/amcs/amcs",
};
.WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id",
.TypeCPartnerUevent = "PRODUCT_TYPE="};
int main() {
LOG(INFO) << "starting PixelStats";