commit | 51f38fb6f3858b1431eb63586079a4550795721c | [log] [tgz] |
---|---|---|
author | Pascal Muetschard <pmuetschard@google.com> | Tue Aug 23 12:40:59 2022 +0200 |
committer | Pascal Muetschard <pmuetschard@google.com> | Tue Aug 23 17:40:56 2022 +0200 |
tree | a71f0435a7e2c1e8d9ced6272c9c7803de369221 | |
parent | acf735b3abaa513e3b8846750a3d864d6a00b787 [diff] |
Check the DeviceConfig permission early. This causes the permission error to be thrown from the thread that creates the JankMonitor rather than some background thread. This makes it easier to debug the permission error and can prevent crashes due to unhandled exceptions from background threads. Change-Id: I942c705342962ce6e15ae5cd6041dc85f6f83a95