[automerger skipped] Merge "Fix the case where restricted mode allowed reasons are ignored" into sc-v2-dev am: ff733363f6 -s ours

am skip reason: Merged-In I5e616fd1e9a916ad9a367b4391c85c1febbf1f6b with SHA-1 0b4cafdae8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16459268

Change-Id: Ib0ed9fcad86361d85484e85449d5430c05cf2936