commit | dc9c08b9001e2b892ccbc7dc2c86a53ab5964b63 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Mar 25 18:09:35 2019 -0700 |
committer | Yifan Hong <elsk@google.com> | Tue Mar 26 15:51:55 2019 -0700 |
tree | cae42c19ed00a23d0552cf2920c1e5a12baae95a | |
parent | f959fffc1c8ce9fcf1665a2e39ab6add986d9e6e [diff] |
charger: android_get_control_file on last_kmsg Call android_get_control_file on last_kmsg files if the file descriptor is provided by init. Also, uses base::Read(File|Fd)ToString functions to read the files (because load_file doesn't support fd arguments). Test: charger mode Test: manual kernel panic, then start charger; seen last kmsg. Bug: 129138950 Change-Id: Idd3376e349f29586a1e66faab2c0f1bf73e0eda5