Find ContentResolver.query(...) calls
ProprietaryContentResolver.query(...) blocks the calling thread for the full lifetime of the underlying IPC and cursor walk. Wrap the call in withContext(Dispatchers.IO) { … }, expose it as a Flow (contentResolver.observe(uri)-style), or move to a Room @Query if the data is backed by SQLite.
org. openrewrite. kotlin. android. FindContentResolverQuery$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. android. FindContentResolverQuery$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.