Ignore "use pre-dump" flag if no data is available
In some cases dumpstate might be requested to create a bugreport with "use pre-dump" flag,
even if no pre-dumped data is available on disk.
In such cases dumpstate should ignore the "use pre-dump" flag.
Example scenario where the pre-dumped data would not be available:
1. Pre-dump data
2. Start bugreport + "use pre-dump" flag (USE AND REMOVE THE PRE-DUMP FROM DISK)
3. Start bugreport + "use pre-dump" flag (NO PRE-DUMP AVAILABLE ON DISK)
Bug: 327322141
Test: atest com.android.os.bugreports.tests.BugreportManagerTest
Change-Id: Ice75f18437064daad98857c8de8a07c7e2994e0c
Ignore-AOSP-First: depends on changes not available in AOSP
(e.g. I343813929a537c601132dd15db5e2c4d3fbbdcb1)
1 file changed