[DO NOT MERGE] Backport BAL restrictions from S to R, this blocks apps from using Alarm
Manager to bypass BAL restrictions.

Test: atest BackgroundActivityLaunchTest
Bug: 195756028
Change-Id: Ifa3f79bc74c10d0ac8322079f2e6e3e0ba476b0f
8 files changed