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

Commit 2f531771 authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Add btsnoop_hci.log to bugreport zip (1/2)

Bug: 28672558
Test: Manual
Merged-In: I2995a9fd0e8be031c022ef8f275aae35265ba452
Change-Id: I2995a9fd0e8be031c022ef8f275aae35265ba452
parent f9f04003
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -675,6 +675,9 @@ static void dumpstate(const std::string& screenshot_path, const std::string& ver
    for_each_tid(show_wchan, "BLOCKED PROCESS WAIT-CHANNELS");
    for_each_tid(show_wchan, "BLOCKED PROCESS WAIT-CHANNELS");
    for_each_pid(show_showtime, "PROCESS TIMES (pid cmd user system iowait+percentage)");
    for_each_pid(show_showtime, "PROCESS TIMES (pid cmd user system iowait+percentage)");


    /* Dump Bluetooth HCI logs */
    add_dir("/data/misc/bluetooth/logs", true);

    if (!screenshot_path.empty()) {
    if (!screenshot_path.empty()) {
        MYLOGI("taking late screenshot\n");
        MYLOGI("taking late screenshot\n");
        take_screenshot(screenshot_path);
        take_screenshot(screenshot_path);
+2 −1
Original line number Original line Diff line number Diff line
@@ -828,7 +828,8 @@ bool drop_root_user() {
    }
    }


    gid_t groups[] = { AID_LOG, AID_SDCARD_R, AID_SDCARD_RW,
    gid_t groups[] = { AID_LOG, AID_SDCARD_R, AID_SDCARD_RW,
            AID_MOUNT, AID_INET, AID_NET_BW_STATS, AID_READPROC };
            AID_MOUNT, AID_INET, AID_NET_BW_STATS, AID_READPROC,
            AID_BLUETOOTH };
    if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
    if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
        MYLOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
        MYLOGE("Unable to setgroups, aborting: %s\n", strerror(errno));
        return false;
        return false;