commit | 486d694bd2a35101445d1e3ed363124d151b1d15 | [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 | 60d79518d42405c66eec302992ff299841570405 [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