Crash on ForegroundServices only on Samsung S25 Android 15 devices

Hello,

My apps are regularly crashing on Galaxy S25, S25+, and S25 Ultra phones running Android 15 when I start a location foreground service.

The stacktrace is the following :

 Fatal Exception: java.lang.RuntimeException
Unable to start service com.xxx.xxx.xxx.xxx.xxx.MyService@63d8dad with Intent { cmp=com.xxx.xxx/com.xxx.xxx.xxx.xxx.xxx.xxx }: java.lang.SecurityException: Starting FGS with type location callerApp=ProcessRecord{573629e 11564:com.xxx.xxx/u0a379} targetSDK=35 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permission 

The stacktrace indicates that neither approximate nor precise location permission has been granted by the user, but this is indeed the case.

Hello,

Please create a support ticket in the Samsung Developer Technical Support portal detailing the issue.

Best Regards,
Ahsan