I have a Google Nexus 5.
Recently i had a problem about WI-FI, it just could not be turned on. I've found many suggestions how to fix that. None of them but turning on in safe mode solved the problem.
As i know, safe mode disables third party apps, which potentially can cause a problem.
I wonder how can i detect exactly which app caused wifi problem ?
What i think now is brute force approach, that is, to delete all the apps one by one and see what happens.
android.permission.CHANGE_WIFI_STATE
. You may use Izzy's answer to list those app in fewer steps or my command-line based answer.