Google document suggests us to run this command to Check whether an app performs background starts.
adb shell device_config put activity_manager \
default_fgs_starts_restriction_notification_enabled true
However, it does not say clearly what is the result. Is it some system notification? What is the content of the notification? Do I need to keep the phone unlocked or not?
Here is the link to the document. https://developer.android.com/guide/components/foreground-services#background-start-restrictions-check