Implement consentless bugreport mechanism
When required conditions are met, bugreport could be approved silently: 1. BugreportMode allows consentless bugreport. 2. Current build type is "userdebug" or "eng". 3. Caller has its OP_CAPTURE_CONSENTLESS_BUGREPORT_ON_USERDEBUG_BUILD App-Op ALLOWED. - Adds an IsConsentlessBugreportAllowed() function in dumpstate.cpp. The function checks BugreportMode and returns false when mode is BUGREPORT_MODE_TELEPHONY: BUGREPORT_MODE_TELEPHONY mode bug reports MUST obtain user consent every time. - In Dumpstate::MaybeCheckUserConsent(), pass the consentless bugreport allowance info to IncidentCompanionService.authorizeReport() through its flags param. Ignore-AOSP-First: Consentless bugreport is a pixel-only feature at first. Legal tracker bug: 262936053 Privacy tracker bug: 262936015 Security tracker bug: 265360498 Bug: 259436697 Bug: 262628255 Bug: 263163716 Test: builds Test: Manual test Change-Id: If4decae0c92b79d5157f421c0721b6a1db184ad4
Loading
Please register or sign in to comment