Attach the latest .cpa file to bugreports (gs201).

* Latest is determined by alphabetical order
* To find the .cpa file, unzip the bug report and run
  `tar -xvf dumpstate_board.bin`
* The .cpa file can then be found under the `camera/` directory
* This can be disabled with the prop
  `vendor.camera.debug.camera_performance_analyzer.attach_to_bugreport`

Bug: 191169822
Test: m -j
Change-Id: Iee7fbe45dfd5bbd67af0e5ebd965884b84e531ff
This commit is contained in:
Michael Eastwood 2021-08-16 13:28:38 -07:00
parent 5710123448
commit bdd18706de
2 changed files with 18 additions and 3 deletions

View file

@ -30,13 +30,10 @@ namespace implementation {
using ::android::hardware::dumpstate::V1_1::DumpstateMode;
using ::android::hardware::dumpstate::V1_1::DumpstateStatus;
using ::android::hardware::dumpstate::V1_1::IDumpstateDevice;
using ::android::hardware::hidl_array;
using ::android::hardware::hidl_handle;
using ::android::hardware::hidl_string;
using ::android::hardware::hidl_vec;
using ::android::hardware::Return;
using ::android::hardware::Void;
using ::android::sp;
struct DumpstateDevice : public IDumpstateDevice {
public:
@ -88,6 +85,7 @@ struct DumpstateDevice : public IDumpstateDevice {
void dumpModem(int fd, int fdModem);
void dumpRilLogs(int fd, std::string destDir);
void dumpGpsLogs(int fd, std::string destDir);
void dumpCameraLogs(int fd, const std::string &destDir);
};
} // namespace implementation