Fake App Context Configuration Provider
RemoteLeakCanaryWorkerService is running in the :leakcanary process, and androidx startup only initializes WorkManager in the main process. In RemoteWorkerService.onCreate(), WorkManager has not been init, so it would crash. We can't blindly call init() as developers might be calling WorkManager.initialize() from Application.onCreate() for all processes, in which case a 2nd init would fail. So we want to init if nothing has init WorkManager before. But there's no isInit() API. However, WorkManager will automatically pull in the application context and if that context implements Configuration.Provider then it'll pull the configuration from it. So we cheat WorkManager by returning a fake app context that provides our own custom configuration.