Delegate bugreport consent for system apps.

For system apps with the required permission and an in-built consent page, the report will be approved and the bugreport consent popup will be skipped.

Bug: 324046728
PWG consultation: b/285006273
Test: Build and flash image. Trigger the Send Feedback flow from settings. Ensure the OS bugreport consent popup is skipped. Check logs to verify consent was delegated.

atest CtsRootBugreportTestCases

Flag: android.os.allow_consentless_bugreport_delegated_consent

Change-Id: I720531386a21f32e5dafcd4d9994d4a54c7921bc
2 files changed