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
1 file changed