onTaskRemoved being called on App Launch on Android 14/Samsungs

On Android 14, and only on Samsung devices, if an activity starts a service in onCreate, the service calls onTaskRemoved immediately. this is basically happening on app launch, even though onTaskRemoved is only supposed to be called when the user removes the App from the Task Switcher. Why is onTaskRemoved getting triggered so early? The App is not being romoved at this time. Any insight would be appreciated.

Hi,
Did you find the issue only with Samsung?
If yes, then you can reach Developer Support for analysis. Please attach the reproduction route and dumpstate log with the problem details.

Thanks,
Shamima
Samsung Developer Program team