Merge changes from topic "ag28295029" into main

* changes:
  Use the new enum value to check if we grant BAL permission
  Update tests to check start mode
  Remove extra check for isPendingIntentBackgroundActivityLaunchAllowedByPermission