If location is disabled via "Disallow Location" quick setting when the phone starts and enabled later, Android must be restarted to get location services working.
How to reproduce:
Disallow location in the quick settings.
Restart the phone.
Allow location in the quick settings.
Start an Android application using location services, such as OsmAnd+ or GPSTest. Location cannot be obtained.
Restart Android or the whole phone.
Now the location services in Android applications work.
If location is disabled via "Disallow Location" quick setting when the phone starts and enabled later, Android must be restarted to get location services working.
How to reproduce: