Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 359b1ff6 authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

Make dumpstate bugreport names as tmp if called by API

Since we are migrating away from dumpstate being directly triggered,
only API will be calling dumpstate. API would pass final bugreport file
fds to dumpstate, that implies dumpstate bugreport files are
getting copied over. Marking these files with a suffix of -tmp as:
* These (bugreport .zip and screenshot .png) files are eventually
  getting deleted.
* These (bugreport .zip and screenshot .png) file names can be used
by API callers (as the final bugreport names) for consistency.
Since the files are in the same dir, need to add suffix to differentiate.

Bug: 126862297
Test: * Build and flash to the device
      * Turn on Settings feature flag to use the bugreport API
      * Take interactive and full bugreports
      * run `adb shell ls /bugreports` while bugreports are being
        generated and after the bugreport is captured
      * Can see tmp files when the bugreport is in progress
      * Output file names same as before

Change-Id: Ia88e373a373d573d9c1e089924290b9526a3d2e1
parent 07d6361a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment