Skip to content
Commit 4fe5d002 authored by Nikhil Kumar's avatar Nikhil Kumar
Browse files

Refactor Bug report flow to work for all ADMIN users

With the existing implementation only the primary user is allowed
to take bug report and approve authorization for bug and inicdent
reports to be taken.

With hsum (Headlesss SYSTEM user mode) implementation primary user will always run in background. we need to refactor the bugreport flow so that it can be triggered by any admin user.

The following components has been refactored to allow any ADMIN user to trigger the bugreport, see progress notification, pass user inputs in case of interactive bugreport and share the bugreport. Though the actual bugreport (dumpstate) will always run on user 0 only the user visible components and components responsible to trigger the bugreport and track progress ex- shell, any approved bundled app like betterbug will run on the current foreground admin user.

1. ActivityManagerService.requestBugReportWithDescription has been
modified to send BUGREPORT_REQUESTED broadcast to the caller user.
2. BugReportManagerServiceImpl has been modified to enable
any admin user to initiate the bug report.
3. BugReportProgressService has been modified to send BUGREPORT_FINISHED
broadcast to the shell context user.
4. IncidentCompanionService and PendingReports has been modifed to let
any admin user provide feedback and authorization for bug and inicdent
reports to be taken.

Bug: 256583570
Test: atest BugreportManagerTest
Test: Manually tested that admin users are allowed to take bug report.

Change-Id: Ib22775e7ad998369404cf15cdc220c9b4019b296
parent cb699221
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment